@things-factory/dataset 5.0.6 → 5.0.10
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/client/pages/data-key-set/data-key-set-list-page.js +1 -1
- package/dist-server/controllers/create-data-sample.js +2 -4
- package/dist-server/controllers/create-data-sample.js.map +1 -1
- package/dist-server/controllers/data-use-case.js.map +1 -1
- package/dist-server/controllers/index.js +3 -16
- package/dist-server/controllers/index.js.map +1 -1
- package/dist-server/controllers/jasper-report.js +3 -5
- package/dist-server/controllers/jasper-report.js.map +1 -1
- package/dist-server/index.js +6 -19
- package/dist-server/index.js.map +1 -1
- package/dist-server/middlewares/index.js.map +1 -1
- package/dist-server/migrations/index.js.map +1 -1
- package/dist-server/routes.js.map +1 -1
- package/dist-server/service/data-item/data-item-mutation.js +73 -0
- package/dist-server/service/data-item/data-item-mutation.js.map +1 -0
- package/dist-server/service/data-item/data-item-query.js +104 -0
- package/dist-server/service/data-item/data-item-query.js.map +1 -0
- package/dist-server/service/data-item/data-item-type.js +93 -0
- package/dist-server/service/data-item/data-item-type.js.map +1 -0
- package/dist-server/service/data-item/data-item.js +46 -54
- package/dist-server/service/data-item/data-item.js.map +1 -1
- package/dist-server/service/data-item/index.js.map +1 -1
- package/dist-server/service/data-key-set/data-key-item-type.js +19 -27
- package/dist-server/service/data-key-set/data-key-item-type.js.map +1 -1
- package/dist-server/service/data-key-set/data-key-set-mutation.js +39 -50
- package/dist-server/service/data-key-set/data-key-set-mutation.js.map +1 -1
- package/dist-server/service/data-key-set/data-key-set-query.js +34 -45
- package/dist-server/service/data-key-set/data-key-set-query.js.map +1 -1
- package/dist-server/service/data-key-set/data-key-set-type.js +33 -44
- package/dist-server/service/data-key-set/data-key-set-type.js.map +1 -1
- package/dist-server/service/data-key-set/data-key-set.js +30 -38
- package/dist-server/service/data-key-set/data-key-set.js.map +1 -1
- package/dist-server/service/data-key-set/index.js.map +1 -1
- package/dist-server/service/data-ooc/data-ooc-mutation.js +15 -26
- package/dist-server/service/data-ooc/data-ooc-mutation.js.map +1 -1
- package/dist-server/service/data-ooc/data-ooc-query.js +39 -50
- package/dist-server/service/data-ooc/data-ooc-query.js.map +1 -1
- package/dist-server/service/data-ooc/data-ooc-subscription.js +7 -18
- package/dist-server/service/data-ooc/data-ooc-subscription.js.map +1 -1
- package/dist-server/service/data-ooc/data-ooc-type.js +42 -50
- package/dist-server/service/data-ooc/data-ooc-type.js.map +1 -1
- package/dist-server/service/data-ooc/data-ooc.js +78 -86
- package/dist-server/service/data-ooc/data-ooc.js.map +1 -1
- package/dist-server/service/data-ooc/index.js.map +1 -1
- package/dist-server/service/data-sample/data-sample-mutation.js +8 -19
- package/dist-server/service/data-sample/data-sample-mutation.js.map +1 -1
- package/dist-server/service/data-sample/data-sample-query.js +46 -57
- package/dist-server/service/data-sample/data-sample-query.js.map +1 -1
- package/dist-server/service/data-sample/data-sample-type.js +27 -35
- package/dist-server/service/data-sample/data-sample-type.js.map +1 -1
- package/dist-server/service/data-sample/data-sample.js +66 -74
- package/dist-server/service/data-sample/data-sample.js.map +1 -1
- package/dist-server/service/data-sample/index.js.map +1 -1
- package/dist-server/service/data-sensor/data-sensor-mutation.js +33 -44
- package/dist-server/service/data-sensor/data-sensor-mutation.js.map +1 -1
- package/dist-server/service/data-sensor/data-sensor-query.js +39 -50
- package/dist-server/service/data-sensor/data-sensor-query.js.map +1 -1
- package/dist-server/service/data-sensor/data-sensor-type.js +60 -68
- package/dist-server/service/data-sensor/data-sensor-type.js.map +1 -1
- package/dist-server/service/data-sensor/data-sensor.js +48 -56
- package/dist-server/service/data-sensor/data-sensor.js.map +1 -1
- package/dist-server/service/data-sensor/index.js.map +1 -1
- package/dist-server/service/data-set/data-item-type.js +43 -51
- package/dist-server/service/data-set/data-item-type.js.map +1 -1
- package/dist-server/service/data-set/data-set-mutation.js +45 -56
- package/dist-server/service/data-set/data-set-mutation.js.map +1 -1
- package/dist-server/service/data-set/data-set-query.js +91 -102
- package/dist-server/service/data-set/data-set-query.js.map +1 -1
- package/dist-server/service/data-set/data-set-type.js +89 -100
- package/dist-server/service/data-set/data-set-type.js.map +1 -1
- package/dist-server/service/data-set/data-set.js +67 -75
- package/dist-server/service/data-set/data-set.js.map +1 -1
- package/dist-server/service/data-set/index.js.map +1 -1
- package/dist-server/service/data-set-history/data-set-history-query.js +74 -71
- package/dist-server/service/data-set-history/data-set-history-query.js.map +1 -1
- package/dist-server/service/data-set-history/data-set-history-type.js +6 -14
- package/dist-server/service/data-set-history/data-set-history-type.js.map +1 -1
- package/dist-server/service/data-set-history/data-set-history.js +76 -74
- package/dist-server/service/data-set-history/data-set-history.js.map +1 -1
- package/dist-server/service/data-set-history/event-subscriber.js +2 -7
- package/dist-server/service/data-set-history/event-subscriber.js.map +1 -1
- package/dist-server/service/data-set-history/index.js.map +1 -1
- package/dist-server/service/data-spec/data-spec-manager.js.map +1 -1
- package/dist-server/service/data-spec/data-spec-query.js +11 -22
- package/dist-server/service/data-spec/data-spec-query.js.map +1 -1
- package/dist-server/service/data-spec/data-spec.js +26 -34
- package/dist-server/service/data-spec/data-spec.js.map +1 -1
- package/dist-server/service/data-spec/index.js.map +1 -1
- package/dist-server/service/index.js +9 -22
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +7 -7
- package/server/service/data-set/data-set.ts +1 -1
- package/server/service/data-set-history/data-set-history-query.ts +11 -0
- package/server/service/data-set-history/data-set-history.ts +8 -0
- package/yarn-error.log +23244 -0
@@ -1,110 +1,102 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
2
|
var _a, _b, _c;
|
12
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
4
|
exports.DataOocList = exports.DataOocPatch = exports.NewDataOoc = void 0;
|
5
|
+
const tslib_1 = require("tslib");
|
14
6
|
const type_graphql_1 = require("type-graphql");
|
15
7
|
const shell_1 = require("@things-factory/shell");
|
16
8
|
const data_ooc_1 = require("./data-ooc");
|
17
9
|
let NewDataOoc = class NewDataOoc {
|
18
10
|
};
|
19
|
-
__decorate([
|
11
|
+
tslib_1.__decorate([
|
20
12
|
(0, type_graphql_1.Field)(),
|
21
|
-
__metadata("design:type", String)
|
13
|
+
tslib_1.__metadata("design:type", String)
|
22
14
|
], NewDataOoc.prototype, "name", void 0);
|
23
|
-
__decorate([
|
15
|
+
tslib_1.__decorate([
|
24
16
|
(0, type_graphql_1.Field)({ nullable: true }),
|
25
|
-
__metadata("design:type", String)
|
17
|
+
tslib_1.__metadata("design:type", String)
|
26
18
|
], NewDataOoc.prototype, "description", void 0);
|
27
|
-
__decorate([
|
19
|
+
tslib_1.__decorate([
|
28
20
|
(0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
|
29
|
-
__metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
|
21
|
+
tslib_1.__metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
|
30
22
|
], NewDataOoc.prototype, "dataSet", void 0);
|
31
|
-
__decorate([
|
23
|
+
tslib_1.__decorate([
|
32
24
|
(0, type_graphql_1.Field)({ nullable: true }),
|
33
|
-
__metadata("design:type", Number)
|
25
|
+
tslib_1.__metadata("design:type", Number)
|
34
26
|
], NewDataOoc.prototype, "dataSetVersion", void 0);
|
35
|
-
__decorate([
|
27
|
+
tslib_1.__decorate([
|
36
28
|
(0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
|
37
|
-
__metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
|
29
|
+
tslib_1.__metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
|
38
30
|
], NewDataOoc.prototype, "dataSample", void 0);
|
39
|
-
__decorate([
|
31
|
+
tslib_1.__decorate([
|
40
32
|
(0, type_graphql_1.Field)(type => data_ooc_1.DataOocStatus, { nullable: true }),
|
41
|
-
__metadata("design:type", String)
|
33
|
+
tslib_1.__metadata("design:type", String)
|
42
34
|
], NewDataOoc.prototype, "state", void 0);
|
43
|
-
__decorate([
|
35
|
+
tslib_1.__decorate([
|
44
36
|
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
45
|
-
__metadata("design:type", typeof (_c = typeof shell_1.ScalarObject !== "undefined" && shell_1.ScalarObject) === "function" ? _c : Object)
|
37
|
+
tslib_1.__metadata("design:type", typeof (_c = typeof shell_1.ScalarObject !== "undefined" && shell_1.ScalarObject) === "function" ? _c : Object)
|
46
38
|
], NewDataOoc.prototype, "data", void 0);
|
47
|
-
__decorate([
|
39
|
+
tslib_1.__decorate([
|
48
40
|
(0, type_graphql_1.Field)({ nullable: true }),
|
49
|
-
__metadata("design:type", String)
|
41
|
+
tslib_1.__metadata("design:type", String)
|
50
42
|
], NewDataOoc.prototype, "rawData", void 0);
|
51
|
-
__decorate([
|
43
|
+
tslib_1.__decorate([
|
52
44
|
(0, type_graphql_1.Field)({ nullable: true }),
|
53
|
-
__metadata("design:type", String)
|
45
|
+
tslib_1.__metadata("design:type", String)
|
54
46
|
], NewDataOoc.prototype, "source", void 0);
|
55
|
-
__decorate([
|
47
|
+
tslib_1.__decorate([
|
56
48
|
(0, type_graphql_1.Field)({ nullable: true }),
|
57
|
-
__metadata("design:type", Boolean)
|
49
|
+
tslib_1.__metadata("design:type", Boolean)
|
58
50
|
], NewDataOoc.prototype, "ooc", void 0);
|
59
|
-
__decorate([
|
51
|
+
tslib_1.__decorate([
|
60
52
|
(0, type_graphql_1.Field)({ nullable: true }),
|
61
|
-
__metadata("design:type", Boolean)
|
53
|
+
tslib_1.__metadata("design:type", Boolean)
|
62
54
|
], NewDataOoc.prototype, "oos", void 0);
|
63
|
-
__decorate([
|
55
|
+
tslib_1.__decorate([
|
64
56
|
(0, type_graphql_1.Field)({ nullable: true }),
|
65
|
-
__metadata("design:type", String)
|
57
|
+
tslib_1.__metadata("design:type", String)
|
66
58
|
], NewDataOoc.prototype, "workDate", void 0);
|
67
|
-
__decorate([
|
59
|
+
tslib_1.__decorate([
|
68
60
|
(0, type_graphql_1.Field)({ nullable: true }),
|
69
|
-
__metadata("design:type", String)
|
61
|
+
tslib_1.__metadata("design:type", String)
|
70
62
|
], NewDataOoc.prototype, "workShift", void 0);
|
71
|
-
__decorate([
|
63
|
+
tslib_1.__decorate([
|
72
64
|
(0, type_graphql_1.Field)({ nullable: true }),
|
73
|
-
__metadata("design:type", Date)
|
65
|
+
tslib_1.__metadata("design:type", Date)
|
74
66
|
], NewDataOoc.prototype, "collectedAt", void 0);
|
75
|
-
NewDataOoc = __decorate([
|
67
|
+
NewDataOoc = tslib_1.__decorate([
|
76
68
|
(0, type_graphql_1.InputType)()
|
77
69
|
], NewDataOoc);
|
78
70
|
exports.NewDataOoc = NewDataOoc;
|
79
71
|
let DataOocPatch = class DataOocPatch {
|
80
72
|
};
|
81
|
-
__decorate([
|
73
|
+
tslib_1.__decorate([
|
82
74
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
83
|
-
__metadata("design:type", String)
|
75
|
+
tslib_1.__metadata("design:type", String)
|
84
76
|
], DataOocPatch.prototype, "id", void 0);
|
85
|
-
__decorate([
|
77
|
+
tslib_1.__decorate([
|
86
78
|
(0, type_graphql_1.Field)(type => data_ooc_1.DataOocStatus, { nullable: true }),
|
87
|
-
__metadata("design:type", String)
|
79
|
+
tslib_1.__metadata("design:type", String)
|
88
80
|
], DataOocPatch.prototype, "state", void 0);
|
89
|
-
__decorate([
|
81
|
+
tslib_1.__decorate([
|
90
82
|
(0, type_graphql_1.Field)({ nullable: true }),
|
91
|
-
__metadata("design:type", String)
|
83
|
+
tslib_1.__metadata("design:type", String)
|
92
84
|
], DataOocPatch.prototype, "correctiveAction", void 0);
|
93
|
-
DataOocPatch = __decorate([
|
85
|
+
DataOocPatch = tslib_1.__decorate([
|
94
86
|
(0, type_graphql_1.InputType)()
|
95
87
|
], DataOocPatch);
|
96
88
|
exports.DataOocPatch = DataOocPatch;
|
97
89
|
let DataOocList = class DataOocList {
|
98
90
|
};
|
99
|
-
__decorate([
|
91
|
+
tslib_1.__decorate([
|
100
92
|
(0, type_graphql_1.Field)(type => [data_ooc_1.DataOoc]),
|
101
|
-
__metadata("design:type", Array)
|
93
|
+
tslib_1.__metadata("design:type", Array)
|
102
94
|
], DataOocList.prototype, "items", void 0);
|
103
|
-
__decorate([
|
95
|
+
tslib_1.__decorate([
|
104
96
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
105
|
-
__metadata("design:type", Number)
|
97
|
+
tslib_1.__metadata("design:type", Number)
|
106
98
|
], DataOocList.prototype, "total", void 0);
|
107
|
-
DataOocList = __decorate([
|
99
|
+
DataOocList = tslib_1.__decorate([
|
108
100
|
(0, type_graphql_1.ObjectType)()
|
109
101
|
], DataOocList);
|
110
102
|
exports.DataOocList = DataOocList;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-ooc-type.js","sourceRoot":"","sources":["../../../server/service/data-ooc/data-ooc-type.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"data-ooc-type.js","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QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACR;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACZ,IAAI;+CAAA;AAzCP,UAAU;IADtB,IAAA,wBAAS,GAAE;GACC,UAAU,CA0CtB;AA1CY,gCAAU;AA6CvB,IAAa,YAAY,GAAzB,MAAa,YAAY;CASxB,CAAA;AAPC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC3B;AAGX;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,wBAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC5B;AAGrB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACD;AARd,YAAY;IADxB,IAAA,wBAAS,GAAE;GACC,YAAY,CASxB;AATY,oCAAY;AAYzB,IAAa,WAAW,GAAxB,MAAa,WAAW;CAMvB,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,kBAAO,CAAC,CAAC;;0CACT;AAGhB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;0CACN;AALF,WAAW;IADvB,IAAA,yBAAU,GAAE;GACA,WAAW,CAMvB;AANY,kCAAW","sourcesContent":["import { Field, ID, InputType, Int, ObjectType } from 'type-graphql'\n\nimport { ObjectRef, ScalarObject } from '@things-factory/shell'\n\nimport { DataOoc, DataOocStatus } from './data-ooc'\n\n@InputType()\nexport class NewDataOoc {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field(type => ObjectRef, { nullable: true })\n dataSet?: ObjectRef\n\n @Field({ nullable: true })\n dataSetVersion?: number\n\n @Field(type => ObjectRef, { nullable: true })\n dataSample?: ObjectRef\n\n @Field(type => DataOocStatus, { nullable: true })\n state?: DataOocStatus\n\n @Field(type => ScalarObject, { nullable: true })\n data?: ScalarObject\n\n @Field({ nullable: true })\n rawData?: string\n\n @Field({ nullable: true })\n source?: string\n\n @Field({ nullable: true })\n ooc?: boolean\n\n @Field({ nullable: true })\n oos?: boolean\n\n @Field({ nullable: true })\n workDate?: string\n\n @Field({ nullable: true })\n workShift?: string\n\n @Field({ nullable: true })\n collectedAt?: Date\n}\n\n@InputType()\nexport class DataOocPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field(type => DataOocStatus, { nullable: true })\n state?: DataOocStatus\n\n @Field({ nullable: true })\n correctiveAction?: string\n}\n\n@ObjectType()\nexport class DataOocList {\n @Field(type => [DataOoc])\n items: DataOoc[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
@@ -1,16 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
2
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
12
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
4
|
exports.DataOoc = exports.DataOocStatus = void 0;
|
5
|
+
const tslib_1 = require("tslib");
|
14
6
|
const type_graphql_1 = require("type-graphql");
|
15
7
|
const typeorm_1 = require("typeorm");
|
16
8
|
const auth_base_1 = require("@things-factory/auth-base");
|
@@ -39,68 +31,68 @@ let DataOoc = class DataOoc {
|
|
39
31
|
this.key05 = '';
|
40
32
|
}
|
41
33
|
};
|
42
|
-
__decorate([
|
34
|
+
tslib_1.__decorate([
|
43
35
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
44
36
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
45
|
-
__metadata("design:type", String)
|
37
|
+
tslib_1.__metadata("design:type", String)
|
46
38
|
], DataOoc.prototype, "id", void 0);
|
47
|
-
__decorate([
|
39
|
+
tslib_1.__decorate([
|
48
40
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
49
41
|
(0, type_graphql_1.Field)({ nullable: true }),
|
50
|
-
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
42
|
+
tslib_1.__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
51
43
|
], DataOoc.prototype, "domain", void 0);
|
52
|
-
__decorate([
|
44
|
+
tslib_1.__decorate([
|
53
45
|
(0, typeorm_1.RelationId)((dataOoc) => dataOoc.domain),
|
54
|
-
__metadata("design:type", String)
|
46
|
+
tslib_1.__metadata("design:type", String)
|
55
47
|
], DataOoc.prototype, "domainId", void 0);
|
56
|
-
__decorate([
|
48
|
+
tslib_1.__decorate([
|
57
49
|
(0, typeorm_1.Column)(),
|
58
50
|
(0, type_graphql_1.Field)(),
|
59
|
-
__metadata("design:type", String)
|
51
|
+
tslib_1.__metadata("design:type", String)
|
60
52
|
], DataOoc.prototype, "name", void 0);
|
61
|
-
__decorate([
|
53
|
+
tslib_1.__decorate([
|
62
54
|
(0, typeorm_1.Column)({
|
63
55
|
nullable: true
|
64
56
|
}),
|
65
57
|
(0, type_graphql_1.Field)({ nullable: true }),
|
66
|
-
__metadata("design:type", String)
|
58
|
+
tslib_1.__metadata("design:type", String)
|
67
59
|
], DataOoc.prototype, "description", void 0);
|
68
|
-
__decorate([
|
60
|
+
tslib_1.__decorate([
|
69
61
|
(0, typeorm_1.ManyToOne)(type => data_set_1.DataSet),
|
70
62
|
(0, type_graphql_1.Field)(type => data_set_1.DataSet, { nullable: true }),
|
71
|
-
__metadata("design:type", data_set_1.DataSet)
|
63
|
+
tslib_1.__metadata("design:type", data_set_1.DataSet)
|
72
64
|
], DataOoc.prototype, "dataSet", void 0);
|
73
|
-
__decorate([
|
65
|
+
tslib_1.__decorate([
|
74
66
|
(0, typeorm_1.RelationId)((dataOoc) => dataOoc.dataSet),
|
75
|
-
__metadata("design:type", String)
|
67
|
+
tslib_1.__metadata("design:type", String)
|
76
68
|
], DataOoc.prototype, "dataSetId", void 0);
|
77
|
-
__decorate([
|
69
|
+
tslib_1.__decorate([
|
78
70
|
(0, typeorm_1.Column)({ nullable: true }),
|
79
71
|
(0, type_graphql_1.Field)({ nullable: true }),
|
80
|
-
__metadata("design:type", Number)
|
72
|
+
tslib_1.__metadata("design:type", Number)
|
81
73
|
], DataOoc.prototype, "dataSetVersion", void 0);
|
82
|
-
__decorate([
|
74
|
+
tslib_1.__decorate([
|
83
75
|
(0, typeorm_1.Column)({
|
84
76
|
nullable: true
|
85
77
|
}),
|
86
78
|
(0, type_graphql_1.Field)({ nullable: true }),
|
87
|
-
__metadata("design:type", Boolean)
|
79
|
+
tslib_1.__metadata("design:type", Boolean)
|
88
80
|
], DataOoc.prototype, "ooc", void 0);
|
89
|
-
__decorate([
|
81
|
+
tslib_1.__decorate([
|
90
82
|
(0, typeorm_1.Column)({
|
91
83
|
nullable: true
|
92
84
|
}),
|
93
85
|
(0, type_graphql_1.Field)({ nullable: true }),
|
94
|
-
__metadata("design:type", Boolean)
|
86
|
+
tslib_1.__metadata("design:type", Boolean)
|
95
87
|
], DataOoc.prototype, "oos", void 0);
|
96
|
-
__decorate([
|
88
|
+
tslib_1.__decorate([
|
97
89
|
(0, typeorm_1.Column)({
|
98
90
|
nullable: true
|
99
91
|
}),
|
100
92
|
(0, type_graphql_1.Field)({ nullable: true }),
|
101
|
-
__metadata("design:type", String)
|
93
|
+
tslib_1.__metadata("design:type", String)
|
102
94
|
], DataOoc.prototype, "state", void 0);
|
103
|
-
__decorate([
|
95
|
+
tslib_1.__decorate([
|
104
96
|
(0, typeorm_1.Column)({
|
105
97
|
nullable: true,
|
106
98
|
type: DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
@@ -110,72 +102,72 @@ __decorate([
|
|
110
102
|
: 'varchar'
|
111
103
|
}),
|
112
104
|
(0, type_graphql_1.Field)({ nullable: true }),
|
113
|
-
__metadata("design:type", String)
|
105
|
+
tslib_1.__metadata("design:type", String)
|
114
106
|
], DataOoc.prototype, "correctiveAction", void 0);
|
115
|
-
__decorate([
|
107
|
+
tslib_1.__decorate([
|
116
108
|
(0, typeorm_1.Column)({
|
117
109
|
nullable: true
|
118
110
|
}),
|
119
111
|
(0, type_graphql_1.Field)({ nullable: true }),
|
120
|
-
__metadata("design:type", String)
|
112
|
+
tslib_1.__metadata("design:type", String)
|
121
113
|
], DataOoc.prototype, "type", void 0);
|
122
|
-
__decorate([
|
114
|
+
tslib_1.__decorate([
|
123
115
|
(0, typeorm_1.Column)({
|
124
116
|
nullable: true
|
125
117
|
}),
|
126
118
|
(0, type_graphql_1.Field)({ nullable: true }),
|
127
|
-
__metadata("design:type", String)
|
119
|
+
tslib_1.__metadata("design:type", String)
|
128
120
|
], DataOoc.prototype, "useCase", void 0);
|
129
|
-
__decorate([
|
121
|
+
tslib_1.__decorate([
|
130
122
|
(0, typeorm_1.Column)({ nullable: true, default: '' }),
|
131
123
|
(0, type_graphql_1.Field)({ nullable: true }),
|
132
|
-
__metadata("design:type", String)
|
124
|
+
tslib_1.__metadata("design:type", String)
|
133
125
|
], DataOoc.prototype, "key01", void 0);
|
134
|
-
__decorate([
|
126
|
+
tslib_1.__decorate([
|
135
127
|
(0, typeorm_1.Column)({ nullable: true, default: '' }),
|
136
128
|
(0, type_graphql_1.Field)({ nullable: true }),
|
137
|
-
__metadata("design:type", String)
|
129
|
+
tslib_1.__metadata("design:type", String)
|
138
130
|
], DataOoc.prototype, "key02", void 0);
|
139
|
-
__decorate([
|
131
|
+
tslib_1.__decorate([
|
140
132
|
(0, typeorm_1.Column)({ nullable: true, default: '' }),
|
141
133
|
(0, type_graphql_1.Field)({ nullable: true }),
|
142
|
-
__metadata("design:type", String)
|
134
|
+
tslib_1.__metadata("design:type", String)
|
143
135
|
], DataOoc.prototype, "key03", void 0);
|
144
|
-
__decorate([
|
136
|
+
tslib_1.__decorate([
|
145
137
|
(0, typeorm_1.Column)({ nullable: true, default: '' }),
|
146
138
|
(0, type_graphql_1.Field)({ nullable: true }),
|
147
|
-
__metadata("design:type", String)
|
139
|
+
tslib_1.__metadata("design:type", String)
|
148
140
|
], DataOoc.prototype, "key04", void 0);
|
149
|
-
__decorate([
|
141
|
+
tslib_1.__decorate([
|
150
142
|
(0, typeorm_1.Column)({ nullable: true, default: '' }),
|
151
143
|
(0, type_graphql_1.Field)({ nullable: true }),
|
152
|
-
__metadata("design:type", String)
|
144
|
+
tslib_1.__metadata("design:type", String)
|
153
145
|
], DataOoc.prototype, "key05", void 0);
|
154
|
-
__decorate([
|
146
|
+
tslib_1.__decorate([
|
155
147
|
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
156
148
|
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
157
|
-
__metadata("design:type", typeof (_b = typeof shell_1.ScalarObject !== "undefined" && shell_1.ScalarObject) === "function" ? _b : Object)
|
149
|
+
tslib_1.__metadata("design:type", typeof (_b = typeof shell_1.ScalarObject !== "undefined" && shell_1.ScalarObject) === "function" ? _b : Object)
|
158
150
|
], DataOoc.prototype, "partitionKeys", void 0);
|
159
|
-
__decorate([
|
151
|
+
tslib_1.__decorate([
|
160
152
|
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
161
153
|
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
162
|
-
__metadata("design:type", typeof (_c = typeof shell_1.ScalarObject !== "undefined" && shell_1.ScalarObject) === "function" ? _c : Object)
|
154
|
+
tslib_1.__metadata("design:type", typeof (_c = typeof shell_1.ScalarObject !== "undefined" && shell_1.ScalarObject) === "function" ? _c : Object)
|
163
155
|
], DataOoc.prototype, "data", void 0);
|
164
|
-
__decorate([
|
156
|
+
tslib_1.__decorate([
|
165
157
|
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
166
158
|
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
167
|
-
__metadata("design:type", typeof (_d = typeof shell_1.ScalarObject !== "undefined" && shell_1.ScalarObject) === "function" ? _d : Object)
|
159
|
+
tslib_1.__metadata("design:type", typeof (_d = typeof shell_1.ScalarObject !== "undefined" && shell_1.ScalarObject) === "function" ? _d : Object)
|
168
160
|
], DataOoc.prototype, "judgment", void 0);
|
169
|
-
__decorate([
|
161
|
+
tslib_1.__decorate([
|
170
162
|
(0, type_graphql_1.Field)(type => [data_item_type_1.DataItem], { nullable: true }),
|
171
|
-
__metadata("design:type", Array)
|
163
|
+
tslib_1.__metadata("design:type", Array)
|
172
164
|
], DataOoc.prototype, "dataItems", void 0);
|
173
|
-
__decorate([
|
165
|
+
tslib_1.__decorate([
|
174
166
|
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
175
167
|
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
176
|
-
__metadata("design:type", typeof (_e = typeof shell_1.ScalarObject !== "undefined" && shell_1.ScalarObject) === "function" ? _e : Object)
|
168
|
+
tslib_1.__metadata("design:type", typeof (_e = typeof shell_1.ScalarObject !== "undefined" && shell_1.ScalarObject) === "function" ? _e : Object)
|
177
169
|
], DataOoc.prototype, "history", void 0);
|
178
|
-
__decorate([
|
170
|
+
tslib_1.__decorate([
|
179
171
|
(0, typeorm_1.Column)({
|
180
172
|
nullable: true,
|
181
173
|
type: DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
@@ -185,79 +177,79 @@ __decorate([
|
|
185
177
|
: 'varchar'
|
186
178
|
}),
|
187
179
|
(0, type_graphql_1.Field)({ nullable: true }),
|
188
|
-
__metadata("design:type", String)
|
180
|
+
tslib_1.__metadata("design:type", String)
|
189
181
|
], DataOoc.prototype, "rawData", void 0);
|
190
|
-
__decorate([
|
182
|
+
tslib_1.__decorate([
|
191
183
|
(0, typeorm_1.Column)({
|
192
184
|
nullable: true
|
193
185
|
}),
|
194
186
|
(0, type_graphql_1.Field)({ nullable: true }),
|
195
|
-
__metadata("design:type", String)
|
187
|
+
tslib_1.__metadata("design:type", String)
|
196
188
|
], DataOoc.prototype, "source", void 0);
|
197
|
-
__decorate([
|
189
|
+
tslib_1.__decorate([
|
198
190
|
(0, typeorm_1.Column)({ nullable: true }),
|
199
191
|
(0, type_graphql_1.Field)({ nullable: true }),
|
200
|
-
__metadata("design:type", String)
|
192
|
+
tslib_1.__metadata("design:type", String)
|
201
193
|
], DataOoc.prototype, "workDate", void 0);
|
202
|
-
__decorate([
|
194
|
+
tslib_1.__decorate([
|
203
195
|
(0, typeorm_1.Column)({ nullable: true }),
|
204
196
|
(0, type_graphql_1.Field)({ nullable: true }),
|
205
|
-
__metadata("design:type", String)
|
197
|
+
tslib_1.__metadata("design:type", String)
|
206
198
|
], DataOoc.prototype, "workShift", void 0);
|
207
|
-
__decorate([
|
199
|
+
tslib_1.__decorate([
|
208
200
|
(0, typeorm_1.Column)({ nullable: true }),
|
209
201
|
(0, type_graphql_1.Field)({ nullable: true }),
|
210
|
-
__metadata("design:type", Date)
|
202
|
+
tslib_1.__metadata("design:type", Date)
|
211
203
|
], DataOoc.prototype, "collectedAt", void 0);
|
212
|
-
__decorate([
|
204
|
+
tslib_1.__decorate([
|
213
205
|
(0, typeorm_1.Column)({ nullable: true }),
|
214
206
|
(0, type_graphql_1.Field)({ nullable: true }),
|
215
|
-
__metadata("design:type", Date)
|
207
|
+
tslib_1.__metadata("design:type", Date)
|
216
208
|
], DataOoc.prototype, "correctedAt", void 0);
|
217
|
-
__decorate([
|
209
|
+
tslib_1.__decorate([
|
218
210
|
(0, typeorm_1.CreateDateColumn)(),
|
219
211
|
(0, type_graphql_1.Field)({ nullable: true }),
|
220
|
-
__metadata("design:type", Date)
|
212
|
+
tslib_1.__metadata("design:type", Date)
|
221
213
|
], DataOoc.prototype, "createdAt", void 0);
|
222
|
-
__decorate([
|
214
|
+
tslib_1.__decorate([
|
223
215
|
(0, typeorm_1.UpdateDateColumn)(),
|
224
216
|
(0, type_graphql_1.Field)({ nullable: true }),
|
225
|
-
__metadata("design:type", Date)
|
217
|
+
tslib_1.__metadata("design:type", Date)
|
226
218
|
], DataOoc.prototype, "updatedAt", void 0);
|
227
|
-
__decorate([
|
219
|
+
tslib_1.__decorate([
|
228
220
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
229
221
|
nullable: true
|
230
222
|
}),
|
231
223
|
(0, type_graphql_1.Field)({ nullable: true }),
|
232
|
-
__metadata("design:type", typeof (_f = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _f : Object)
|
224
|
+
tslib_1.__metadata("design:type", typeof (_f = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _f : Object)
|
233
225
|
], DataOoc.prototype, "corrector", void 0);
|
234
|
-
__decorate([
|
226
|
+
tslib_1.__decorate([
|
235
227
|
(0, typeorm_1.RelationId)((dataOoc) => dataOoc.corrector),
|
236
|
-
__metadata("design:type", String)
|
228
|
+
tslib_1.__metadata("design:type", String)
|
237
229
|
], DataOoc.prototype, "correctorId", void 0);
|
238
|
-
__decorate([
|
230
|
+
tslib_1.__decorate([
|
239
231
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
240
232
|
nullable: true
|
241
233
|
}),
|
242
234
|
(0, type_graphql_1.Field)({ nullable: true }),
|
243
|
-
__metadata("design:type", typeof (_g = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _g : Object)
|
235
|
+
tslib_1.__metadata("design:type", typeof (_g = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _g : Object)
|
244
236
|
], DataOoc.prototype, "creator", void 0);
|
245
|
-
__decorate([
|
237
|
+
tslib_1.__decorate([
|
246
238
|
(0, typeorm_1.RelationId)((dataOoc) => dataOoc.creator),
|
247
|
-
__metadata("design:type", String)
|
239
|
+
tslib_1.__metadata("design:type", String)
|
248
240
|
], DataOoc.prototype, "creatorId", void 0);
|
249
|
-
__decorate([
|
241
|
+
tslib_1.__decorate([
|
250
242
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
251
243
|
nullable: true
|
252
244
|
}),
|
253
245
|
(0, type_graphql_1.Field)({ nullable: true }),
|
254
|
-
__metadata("design:type", typeof (_h = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _h : Object)
|
246
|
+
tslib_1.__metadata("design:type", typeof (_h = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _h : Object)
|
255
247
|
], DataOoc.prototype, "updater", void 0);
|
256
|
-
__decorate([
|
248
|
+
tslib_1.__decorate([
|
257
249
|
(0, typeorm_1.RelationId)((dataOoc) => dataOoc.creator),
|
258
|
-
__metadata("design:type", String)
|
250
|
+
tslib_1.__metadata("design:type", String)
|
259
251
|
], DataOoc.prototype, "updaterId", void 0);
|
260
|
-
DataOoc = __decorate([
|
252
|
+
DataOoc = tslib_1.__decorate([
|
261
253
|
(0, typeorm_1.Entity)(),
|
262
254
|
(0, typeorm_1.Index)('ix_data_ooc_0', (dataOoc) => [dataOoc.domain, dataOoc.dataSet, dataOoc.collectedAt], { unique: false }),
|
263
255
|
(0, type_graphql_1.ObjectType)({ description: 'Entity for Out of control data' })
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-ooc.js","sourceRoot":"","sources":["../../../server/service/data-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,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;0DAChB,gBAAI,oBAAJ,gBAAI;wCAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;;0CAChC;AArLP,OAAO;IAHnB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,eAAe,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IACvH,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;GACjD,OAAO,CAsLnB;AAtLY,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} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { Domain, ScalarObject } from '@things-factory/shell'\n\nimport { DataItem } from '../data-set/data-item-type'\nimport { DataSet } from '../data-set/data-set'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\nexport enum DataOocStatus {\n CREATED = 'CREATED',\n REVIEWED = 'REVIEWED',\n CORRECTED = 'CORRECTED'\n}\n\nregisterEnumType(DataOocStatus, {\n name: 'DataOocStatus',\n description: 'Out of control data corrective action process progress status'\n})\n\n@Entity()\n@Index('ix_data_ooc_0', (dataOoc: DataOoc) => [dataOoc.domain, dataOoc.dataSet, dataOoc.collectedAt], { unique: false })\n@ObjectType({ description: 'Entity for Out of control data' })\nexport class DataOoc {\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((dataOoc: DataOoc) => dataOoc.domain)\n domainId?: string\n\n @Column()\n @Field()\n name: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n description?: string\n\n @ManyToOne(type => DataSet)\n @Field(type => DataSet, { nullable: true })\n dataSet?: DataSet\n\n @RelationId((dataOoc: DataOoc) => dataOoc.dataSet)\n dataSetId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n dataSetVersion?: number\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n ooc?: boolean\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n oos?: boolean\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n state?: DataOocStatus\n\n @Column({\n nullable: true,\n type:\n DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'longtext'\n : DATABASE_TYPE == 'oracle'\n ? 'clob'\n : 'varchar'\n })\n @Field({ nullable: true })\n correctiveAction?: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n type?: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n useCase?: string\n\n @Column({ nullable: true, default: '' })\n @Field({ nullable: true })\n key01?: string = ''\n\n @Column({ nullable: true, default: '' })\n @Field({ nullable: true })\n key02?: string = ''\n\n @Column({ nullable: true, default: '' })\n @Field({ nullable: true })\n key03?: string = ''\n\n @Column({ nullable: true, default: '' })\n @Field({ nullable: true })\n key04?: string = ''\n\n @Column({ nullable: true, default: '' })\n @Field({ nullable: true })\n key05?: string = ''\n\n @Column('simple-json', { nullable: true })\n @Field(type => ScalarObject, { nullable: true })\n partitionKeys?: ScalarObject\n\n @Column('simple-json', { nullable: true })\n @Field(type => ScalarObject, { nullable: true })\n data?: ScalarObject\n\n @Column('simple-json', { nullable: true })\n @Field(type => ScalarObject, { nullable: true })\n judgment?: ScalarObject\n\n @Field(type => [DataItem], { nullable: true })\n dataItems?: DataItem[]\n\n @Column('simple-json', { nullable: true })\n @Field(type => ScalarObject, { nullable: true })\n history?: ScalarObject\n\n @Column({\n nullable: true,\n type:\n DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'longtext'\n : DATABASE_TYPE == 'oracle'\n ? 'clob'\n : 'varchar'\n })\n @Field({ nullable: true })\n rawData?: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n source?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n workDate?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n workShift?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n collectedAt?: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n correctedAt?: Date\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, {\n nullable: true\n })\n @Field({ nullable: true })\n corrector?: User\n\n @RelationId((dataOoc: DataOoc) => dataOoc.corrector)\n correctorId?: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((dataOoc: DataOoc) => dataOoc.creator)\n creatorId?: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((dataOoc: DataOoc) => dataOoc.creator)\n updaterId?: string\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/data-ooc/index.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,2DAAqD;AACrD,qDAA+C;AAC/C,mEAA6D;AAEhD,QAAA,QAAQ,GAAG,CAAC,kBAAO,CAAC,CAAA;AACpB,QAAA,SAAS,GAAG,CAAC,6BAAY,EAAE,mCAAe,EAAE,2CAAmB,CAAC,CAAA"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/data-ooc/index.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,2DAAqD;AACrD,qDAA+C;AAC/C,mEAA6D;AAEhD,QAAA,QAAQ,GAAG,CAAC,kBAAO,CAAC,CAAA;AACpB,QAAA,SAAS,GAAG,CAAC,6BAAY,EAAE,mCAAe,EAAE,2CAAmB,CAAC,CAAA","sourcesContent":["import { DataOoc } from './data-ooc'\nimport { DataOocMutation } from './data-ooc-mutation'\nimport { DataOocQuery } from './data-ooc-query'\nimport { DataOocSubscription } from './data-ooc-subscription'\n\nexport const entities = [DataOoc]\nexport const resolvers = [DataOocQuery, DataOocMutation, DataOocSubscription]\n"]}
|
@@ -1,18 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
13
|
-
};
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
3
|
exports.DataSampleMutation = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
16
5
|
const type_graphql_1 = require("type-graphql");
|
17
6
|
const data_sample_1 = require("./data-sample");
|
18
7
|
const data_sample_type_1 = require("./data-sample-type");
|
@@ -23,17 +12,17 @@ let DataSampleMutation = class DataSampleMutation {
|
|
23
12
|
return await (0, create_data_sample_1.createDataSample)(dataSample, context);
|
24
13
|
}
|
25
14
|
};
|
26
|
-
__decorate([
|
15
|
+
tslib_1.__decorate([
|
27
16
|
(0, type_graphql_1.Directive)('@privilege(category: "data-sample", privilege: "mutation", domainOwnerGranted: true)'),
|
28
17
|
(0, type_graphql_1.Directive)('@transaction'),
|
29
18
|
(0, type_graphql_1.Mutation)(returns => data_sample_1.DataSample, { description: 'To create new data sample' }),
|
30
|
-
__param(0, (0, type_graphql_1.Arg)('dataSample')),
|
31
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
32
|
-
__metadata("design:type", Function),
|
33
|
-
__metadata("design:paramtypes", [data_sample_type_1.NewDataSample, Object]),
|
34
|
-
__metadata("design:returntype", Promise)
|
19
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('dataSample')),
|
20
|
+
tslib_1.__param(1, (0, type_graphql_1.Ctx)()),
|
21
|
+
tslib_1.__metadata("design:type", Function),
|
22
|
+
tslib_1.__metadata("design:paramtypes", [data_sample_type_1.NewDataSample, Object]),
|
23
|
+
tslib_1.__metadata("design:returntype", Promise)
|
35
24
|
], DataSampleMutation.prototype, "createDataSample", null);
|
36
|
-
DataSampleMutation = __decorate([
|
25
|
+
DataSampleMutation = tslib_1.__decorate([
|
37
26
|
(0, type_graphql_1.Resolver)(data_sample_1.DataSample)
|
38
27
|
], DataSampleMutation);
|
39
28
|
exports.DataSampleMutation = DataSampleMutation;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-sample-mutation.js","sourceRoot":"","sources":["../../../server/service/data-sample/data-sample-mutation.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"data-sample-mutation.js","sourceRoot":"","sources":["../../../server/service/data-sample/data-sample-mutation.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AAEtE,+CAA0C;AAC1C,yDAAkD;AAElD,6EAAuE;AAEvE,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,yDAAyD,CAAC,CAAA;AAGzF,IAAa,kBAAkB,GAA/B,MAAa,kBAAkB;IAI7B,KAAK,CAAC,gBAAgB,CAAoB,UAAyB,EAAS,OAAY;QACtF,OAAO,MAAM,IAAA,qCAAgB,EAAC,UAAU,EAAE,OAAO,CAAC,CAAA;IACpD,CAAC;CACF,CAAA;AAHC;IAHC,IAAA,wBAAS,EAAC,sFAAsF,CAAC;IACjG,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,wBAAU,EAAE,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;IACtD,mBAAA,IAAA,kBAAG,EAAC,YAAY,CAAC,CAAA;IAA6B,mBAAA,IAAA,kBAAG,GAAE,CAAA;;6CAArB,gCAAa;;0DAElE;AANU,kBAAkB;IAD9B,IAAA,uBAAQ,EAAC,wBAAU,CAAC;GACR,kBAAkB,CAO9B;AAPY,gDAAkB","sourcesContent":["import { Arg, Ctx, Directive, Mutation, Resolver } from 'type-graphql'\n\nimport { DataSample } from './data-sample'\nimport { NewDataSample } from './data-sample-type'\n\nimport { createDataSample } from '../../controllers/create-data-sample'\n\nconst debug = require('debug')('things-factory:dataset:data-sample:data-sample-mutation')\n\n@Resolver(DataSample)\nexport class DataSampleMutation {\n @Directive('@privilege(category: \"data-sample\", privilege: \"mutation\", domainOwnerGranted: true)')\n @Directive('@transaction')\n @Mutation(returns => DataSample, { description: 'To create new data sample' })\n async createDataSample(@Arg('dataSample') dataSample: NewDataSample, @Ctx() context: any): Promise<DataSample> {\n return await createDataSample(dataSample, context)\n }\n}\n"]}
|