@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,22 +1,15 @@
|
|
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;
|
12
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
4
|
exports.DataSetHistory = 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 typeorm_history_1 = require("@anchan828/typeorm-history");
|
17
9
|
const auth_base_1 = require("@things-factory/auth-base");
|
18
10
|
const env_1 = require("@things-factory/env");
|
19
11
|
const shell_1 = require("@things-factory/shell");
|
12
|
+
const data_key_set_1 = require("../data-key-set/data-key-set");
|
20
13
|
const data_item_type_1 = require("../data-set/data-item-type");
|
21
14
|
const data_set_1 = require("../data-set/data-set");
|
22
15
|
const ORMCONFIG = env_1.config.get('ormconfig', {});
|
@@ -26,155 +19,164 @@ let DataSetHistory = class DataSetHistory {
|
|
26
19
|
this.version = 1;
|
27
20
|
}
|
28
21
|
};
|
29
|
-
__decorate([
|
22
|
+
tslib_1.__decorate([
|
30
23
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
31
24
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
32
|
-
__metadata("design:type", String)
|
25
|
+
tslib_1.__metadata("design:type", String)
|
33
26
|
], DataSetHistory.prototype, "id", void 0);
|
34
|
-
__decorate([
|
27
|
+
tslib_1.__decorate([
|
35
28
|
(0, typeorm_1.Column)({ default: 1 }),
|
36
29
|
(0, type_graphql_1.Field)({ nullable: true }),
|
37
|
-
__metadata("design:type", Number)
|
30
|
+
tslib_1.__metadata("design:type", Number)
|
38
31
|
], DataSetHistory.prototype, "version", void 0);
|
39
|
-
__decorate([
|
32
|
+
tslib_1.__decorate([
|
40
33
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
41
34
|
(0, type_graphql_1.Field)({ nullable: true }),
|
42
|
-
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
35
|
+
tslib_1.__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
43
36
|
], DataSetHistory.prototype, "domain", void 0);
|
44
|
-
__decorate([
|
37
|
+
tslib_1.__decorate([
|
45
38
|
(0, typeorm_1.RelationId)((dataSetHistory) => dataSetHistory.domain),
|
46
|
-
__metadata("design:type", String)
|
39
|
+
tslib_1.__metadata("design:type", String)
|
47
40
|
], DataSetHistory.prototype, "domainId", void 0);
|
48
|
-
__decorate([
|
41
|
+
tslib_1.__decorate([
|
49
42
|
(0, typeorm_1.Column)(),
|
50
43
|
(0, type_graphql_1.Field)(),
|
51
|
-
__metadata("design:type", String)
|
44
|
+
tslib_1.__metadata("design:type", String)
|
52
45
|
], DataSetHistory.prototype, "name", void 0);
|
53
|
-
__decorate([
|
46
|
+
tslib_1.__decorate([
|
54
47
|
(0, typeorm_1.Column)({ nullable: true }),
|
55
48
|
(0, type_graphql_1.Field)({ nullable: true }),
|
56
|
-
__metadata("design:type", String)
|
49
|
+
tslib_1.__metadata("design:type", String)
|
57
50
|
], DataSetHistory.prototype, "description", void 0);
|
58
|
-
__decorate([
|
51
|
+
tslib_1.__decorate([
|
59
52
|
(0, typeorm_1.Column)({ nullable: true }),
|
60
53
|
(0, type_graphql_1.Field)({ nullable: true }),
|
61
|
-
__metadata("design:type", Boolean)
|
54
|
+
tslib_1.__metadata("design:type", Boolean)
|
62
55
|
], DataSetHistory.prototype, "active", void 0);
|
63
|
-
__decorate([
|
56
|
+
tslib_1.__decorate([
|
57
|
+
(0, typeorm_1.ManyToOne)(type => data_key_set_1.DataKeySet, { nullable: true }),
|
58
|
+
(0, type_graphql_1.Field)(type => data_key_set_1.DataKeySet, { nullable: true }),
|
59
|
+
tslib_1.__metadata("design:type", data_key_set_1.DataKeySet)
|
60
|
+
], DataSetHistory.prototype, "dataKeySet", void 0);
|
61
|
+
tslib_1.__decorate([
|
62
|
+
(0, typeorm_1.RelationId)((dataSet) => dataSet.dataKeySet),
|
63
|
+
tslib_1.__metadata("design:type", String)
|
64
|
+
], DataSetHistory.prototype, "dataKeySetId", void 0);
|
65
|
+
tslib_1.__decorate([
|
64
66
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.Role, { nullable: true }),
|
65
67
|
(0, type_graphql_1.Field)(type => auth_base_1.Role, { nullable: true }),
|
66
|
-
__metadata("design:type", typeof (_b = typeof auth_base_1.Role !== "undefined" && auth_base_1.Role) === "function" ? _b : Object)
|
68
|
+
tslib_1.__metadata("design:type", typeof (_b = typeof auth_base_1.Role !== "undefined" && auth_base_1.Role) === "function" ? _b : Object)
|
67
69
|
], DataSetHistory.prototype, "entryRole", void 0);
|
68
|
-
__decorate([
|
70
|
+
tslib_1.__decorate([
|
69
71
|
(0, typeorm_1.RelationId)((dataSetHistory) => dataSetHistory.entryRole),
|
70
|
-
__metadata("design:type", String)
|
72
|
+
tslib_1.__metadata("design:type", String)
|
71
73
|
], DataSetHistory.prototype, "entryRoleId", void 0);
|
72
|
-
__decorate([
|
74
|
+
tslib_1.__decorate([
|
73
75
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.Role, { nullable: true }),
|
74
76
|
(0, type_graphql_1.Field)(type => auth_base_1.Role, { nullable: true }),
|
75
|
-
__metadata("design:type", typeof (_c = typeof auth_base_1.Role !== "undefined" && auth_base_1.Role) === "function" ? _c : Object)
|
77
|
+
tslib_1.__metadata("design:type", typeof (_c = typeof auth_base_1.Role !== "undefined" && auth_base_1.Role) === "function" ? _c : Object)
|
76
78
|
], DataSetHistory.prototype, "supervisoryRole", void 0);
|
77
|
-
__decorate([
|
79
|
+
tslib_1.__decorate([
|
78
80
|
(0, typeorm_1.RelationId)((dataSetHistory) => dataSetHistory.supervisoryRole),
|
79
|
-
__metadata("design:type", String)
|
81
|
+
tslib_1.__metadata("design:type", String)
|
80
82
|
], DataSetHistory.prototype, "supervisoryRoleId", void 0);
|
81
|
-
__decorate([
|
83
|
+
tslib_1.__decorate([
|
82
84
|
(0, typeorm_1.Column)({ nullable: true }),
|
83
85
|
(0, type_graphql_1.Field)({ nullable: true }),
|
84
|
-
__metadata("design:type", String)
|
86
|
+
tslib_1.__metadata("design:type", String)
|
85
87
|
], DataSetHistory.prototype, "type", void 0);
|
86
|
-
__decorate([
|
88
|
+
tslib_1.__decorate([
|
87
89
|
(0, typeorm_1.Column)({ nullable: true }),
|
88
90
|
(0, type_graphql_1.Field)({ nullable: true }),
|
89
|
-
__metadata("design:type", String)
|
91
|
+
tslib_1.__metadata("design:type", String)
|
90
92
|
], DataSetHistory.prototype, "entryType", void 0);
|
91
|
-
__decorate([
|
93
|
+
tslib_1.__decorate([
|
92
94
|
(0, typeorm_1.Column)({ nullable: true }),
|
93
95
|
(0, type_graphql_1.Field)({ nullable: true }),
|
94
|
-
__metadata("design:type", String)
|
96
|
+
tslib_1.__metadata("design:type", String)
|
95
97
|
], DataSetHistory.prototype, "entryView", void 0);
|
96
|
-
__decorate([
|
98
|
+
tslib_1.__decorate([
|
97
99
|
(0, typeorm_1.Column)({ nullable: true }),
|
98
100
|
(0, type_graphql_1.Field)({ nullable: true }),
|
99
|
-
__metadata("design:type", String)
|
101
|
+
tslib_1.__metadata("design:type", String)
|
100
102
|
], DataSetHistory.prototype, "monitorType", void 0);
|
101
|
-
__decorate([
|
103
|
+
tslib_1.__decorate([
|
102
104
|
(0, typeorm_1.Column)({ nullable: true }),
|
103
105
|
(0, type_graphql_1.Field)({ nullable: true }),
|
104
|
-
__metadata("design:type", String)
|
106
|
+
tslib_1.__metadata("design:type", String)
|
105
107
|
], DataSetHistory.prototype, "monitorView", void 0);
|
106
|
-
__decorate([
|
108
|
+
tslib_1.__decorate([
|
107
109
|
(0, typeorm_1.Column)({ nullable: true }),
|
108
110
|
(0, type_graphql_1.Field)({ nullable: true }),
|
109
|
-
__metadata("design:type", String)
|
111
|
+
tslib_1.__metadata("design:type", String)
|
110
112
|
], DataSetHistory.prototype, "reportType", void 0);
|
111
|
-
__decorate([
|
113
|
+
tslib_1.__decorate([
|
112
114
|
(0, typeorm_1.Column)({ nullable: true }),
|
113
115
|
(0, type_graphql_1.Field)({ nullable: true }),
|
114
|
-
__metadata("design:type", String)
|
116
|
+
tslib_1.__metadata("design:type", String)
|
115
117
|
], DataSetHistory.prototype, "reportView", void 0);
|
116
|
-
__decorate([
|
118
|
+
tslib_1.__decorate([
|
117
119
|
(0, type_graphql_1.Field)({ nullable: true }),
|
118
|
-
__metadata("design:type", String)
|
120
|
+
tslib_1.__metadata("design:type", String)
|
119
121
|
], DataSetHistory.prototype, "reportTemplate", void 0);
|
120
|
-
__decorate([
|
122
|
+
tslib_1.__decorate([
|
121
123
|
(0, typeorm_1.Column)({ nullable: true }),
|
122
124
|
(0, type_graphql_1.Field)({ nullable: true }),
|
123
|
-
__metadata("design:type", String)
|
125
|
+
tslib_1.__metadata("design:type", String)
|
124
126
|
], DataSetHistory.prototype, "useCase", void 0);
|
125
|
-
__decorate([
|
127
|
+
tslib_1.__decorate([
|
126
128
|
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
127
129
|
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
128
|
-
__metadata("design:type", typeof (_d = typeof shell_1.ScalarObject !== "undefined" && shell_1.ScalarObject) === "function" ? _d : Object)
|
130
|
+
tslib_1.__metadata("design:type", typeof (_d = typeof shell_1.ScalarObject !== "undefined" && shell_1.ScalarObject) === "function" ? _d : Object)
|
129
131
|
], DataSetHistory.prototype, "partitionKeys", void 0);
|
130
|
-
__decorate([
|
132
|
+
tslib_1.__decorate([
|
131
133
|
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
132
134
|
(0, type_graphql_1.Field)(type => [data_item_type_1.DataItem], { nullable: true }),
|
133
|
-
__metadata("design:type", Array)
|
135
|
+
tslib_1.__metadata("design:type", Array)
|
134
136
|
], DataSetHistory.prototype, "dataItems", void 0);
|
135
|
-
__decorate([
|
137
|
+
tslib_1.__decorate([
|
136
138
|
(0, typeorm_1.Column)({ nullable: true }),
|
137
139
|
(0, type_graphql_1.Field)({ nullable: true }),
|
138
|
-
__metadata("design:type", String)
|
140
|
+
tslib_1.__metadata("design:type", String)
|
139
141
|
], DataSetHistory.prototype, "schedule", void 0);
|
140
|
-
__decorate([
|
142
|
+
tslib_1.__decorate([
|
141
143
|
(0, typeorm_1.Column)({ nullable: true }),
|
142
144
|
(0, type_graphql_1.Field)({ nullable: true }),
|
143
|
-
__metadata("design:type", String)
|
145
|
+
tslib_1.__metadata("design:type", String)
|
144
146
|
], DataSetHistory.prototype, "timezone", void 0);
|
145
|
-
__decorate([
|
147
|
+
tslib_1.__decorate([
|
146
148
|
(0, typeorm_1.Column)({ nullable: true }),
|
147
149
|
(0, type_graphql_1.Field)({ nullable: true }),
|
148
|
-
__metadata("design:type", Date)
|
150
|
+
tslib_1.__metadata("design:type", Date)
|
149
151
|
], DataSetHistory.prototype, "createdAt", void 0);
|
150
|
-
__decorate([
|
152
|
+
tslib_1.__decorate([
|
151
153
|
(0, typeorm_1.Column)({ nullable: true }),
|
152
154
|
(0, type_graphql_1.Field)({ nullable: true }),
|
153
|
-
__metadata("design:type", Date)
|
155
|
+
tslib_1.__metadata("design:type", Date)
|
154
156
|
], DataSetHistory.prototype, "updatedAt", void 0);
|
155
|
-
__decorate([
|
157
|
+
tslib_1.__decorate([
|
156
158
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
157
159
|
(0, type_graphql_1.Field)({ nullable: true }),
|
158
|
-
__metadata("design:type", typeof (_e = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _e : Object)
|
160
|
+
tslib_1.__metadata("design:type", typeof (_e = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _e : Object)
|
159
161
|
], DataSetHistory.prototype, "creator", void 0);
|
160
|
-
__decorate([
|
162
|
+
tslib_1.__decorate([
|
161
163
|
(0, typeorm_1.RelationId)((dataSetHistory) => dataSetHistory.creator),
|
162
|
-
__metadata("design:type", String)
|
164
|
+
tslib_1.__metadata("design:type", String)
|
163
165
|
], DataSetHistory.prototype, "creatorId", void 0);
|
164
|
-
__decorate([
|
166
|
+
tslib_1.__decorate([
|
165
167
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
166
168
|
(0, type_graphql_1.Field)({ nullable: true }),
|
167
|
-
__metadata("design:type", typeof (_f = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _f : Object)
|
169
|
+
tslib_1.__metadata("design:type", typeof (_f = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _f : Object)
|
168
170
|
], DataSetHistory.prototype, "updater", void 0);
|
169
|
-
__decorate([
|
171
|
+
tslib_1.__decorate([
|
170
172
|
(0, typeorm_1.RelationId)((dataSetHistory) => dataSetHistory.creator),
|
171
|
-
__metadata("design:type", String)
|
173
|
+
tslib_1.__metadata("design:type", String)
|
172
174
|
], DataSetHistory.prototype, "updaterId", void 0);
|
173
|
-
__decorate([
|
175
|
+
tslib_1.__decorate([
|
174
176
|
(0, typeorm_history_1.HistoryOriginalIdColumn)({ nullable: true }),
|
175
|
-
__metadata("design:type", String)
|
177
|
+
tslib_1.__metadata("design:type", String)
|
176
178
|
], DataSetHistory.prototype, "originalId", void 0);
|
177
|
-
__decorate([
|
179
|
+
tslib_1.__decorate([
|
178
180
|
(0, typeorm_history_1.HistoryActionColumn)({
|
179
181
|
nullable: false,
|
180
182
|
type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
@@ -184,9 +186,9 @@ __decorate([
|
|
184
186
|
: 'smallint',
|
185
187
|
enum: typeorm_history_1.HistoryActionType
|
186
188
|
}),
|
187
|
-
__metadata("design:type", String)
|
189
|
+
tslib_1.__metadata("design:type", String)
|
188
190
|
], DataSetHistory.prototype, "action", void 0);
|
189
|
-
DataSetHistory = __decorate([
|
191
|
+
DataSetHistory = tslib_1.__decorate([
|
190
192
|
(0, typeorm_1.Entity)(),
|
191
193
|
(0, typeorm_1.Index)('ix_data_set_history_0', (dataSetHistory) => [dataSetHistory.originalId, dataSetHistory.version], { unique: true }),
|
192
194
|
(0, typeorm_1.Index)('ix_data_set_history_1', (dataSetHistory) => [dataSetHistory.domain, dataSetHistory.originalId, dataSetHistory.version], { unique: true }),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-set-history.js","sourceRoot":"","sources":["../../../server/service/data-set-history/data-set-history.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"data-set-history.js","sourceRoot":"","sources":["../../../server/service/data-set-history/data-set-history.ts"],"names":[],"mappings":";;;;;AAAA,+CAAoD;AACpD,qCAA8F;AAE9F,gEAKmC;AACnC,yDAAsD;AACtD,6CAA4C;AAC5C,iDAA4D;AAE5D,+DAAyD;AACzD,+DAAqD;AACrD,mDAAuG;AAEvG,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAcpC,IAAa,cAAc,GAA3B,MAAa,cAAc;IAA3B;QAOW,YAAO,GAAW,CAAC,CAAA;IAiI9B,CAAC;CAAA,CAAA;AArIC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;0CACC;AAInB;IAFC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACtB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACE;AAI5B;IAFC,IAAA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c,CAAC,OAAO,CAAC,EACvF,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,eAAK,EACJ,uBAAuB,EACvB,CAAC,cAA8B,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,MAAM,EAAE,cAAc,CAAC,UAAU,EAAE,cAAc,CAAC,OAAO,CAAC,EAC9G,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;GAC5C,cAAc,CAwI1B;AAxIY,wCAAc","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport { Column, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId } from 'typeorm'\n\nimport {\n HistoryActionColumn,\n HistoryActionType,\n HistoryEntityInterface,\n HistoryOriginalIdColumn\n} from '@anchan828/typeorm-history'\nimport { Role, User } from '@things-factory/auth-base'\nimport { config } from '@things-factory/env'\nimport { Domain, ScalarObject } from '@things-factory/shell'\n\nimport { DataKeySet } from '../data-key-set/data-key-set'\nimport { DataItem } from '../data-set/data-item-type'\nimport { DataSet, DataSetEntryType, DataSetMonitorType, DataSetReportType } from '../data-set/data-set'\n\nconst ORMCONFIG = config.get('ormconfig', {})\nconst DATABASE_TYPE = ORMCONFIG.type\n\n@Entity()\n@Index(\n 'ix_data_set_history_0',\n (dataSetHistory: DataSetHistory) => [dataSetHistory.originalId, dataSetHistory.version],\n { unique: true }\n)\n@Index(\n 'ix_data_set_history_1',\n (dataSetHistory: DataSetHistory) => [dataSetHistory.domain, dataSetHistory.originalId, dataSetHistory.version],\n { unique: true }\n)\n@ObjectType({ description: 'Entity for DataSetHistory' })\nexport class DataSetHistory implements HistoryEntityInterface<DataSet> {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @Column({ default: 1 })\n @Field({ nullable: true })\n readonly version: number = 1\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((dataSetHistory: DataSetHistory) => dataSetHistory.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 @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, { nullable: true })\n entryRole?: Role\n\n @RelationId((dataSetHistory: DataSetHistory) => dataSetHistory.entryRole)\n entryRoleId?: string\n\n @ManyToOne(type => Role, { nullable: true })\n @Field(type => Role, { nullable: true })\n supervisoryRole?: Role\n\n @RelationId((dataSetHistory: DataSetHistory) => dataSetHistory.supervisoryRole)\n supervisoryRoleId?: string\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?: ScalarObject\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 createdAt?: Date\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((dataSetHistory: DataSetHistory) => dataSetHistory.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((dataSetHistory: DataSetHistory) => dataSetHistory.creator)\n updaterId?: string\n\n @HistoryOriginalIdColumn({ nullable: true })\n public originalId!: string\n\n @HistoryActionColumn({\n nullable: false,\n type:\n DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'\n ? 'enum'\n : DATABASE_TYPE == 'oracle'\n ? 'varchar2'\n : 'smallint',\n enum: HistoryActionType\n })\n public action!: HistoryActionType\n}\n"]}
|
@@ -1,12 +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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
9
3
|
exports.DataSetHistoryEntitySubscriber = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
10
5
|
const typeorm_1 = require("typeorm");
|
11
6
|
const typeorm_history_1 = require("@anchan828/typeorm-history");
|
12
7
|
const data_set_1 = require("../data-set/data-set");
|
@@ -19,7 +14,7 @@ let DataSetHistoryEntitySubscriber = class DataSetHistoryEntitySubscriber extend
|
|
19
14
|
return data_set_history_1.DataSetHistory;
|
20
15
|
}
|
21
16
|
};
|
22
|
-
DataSetHistoryEntitySubscriber = __decorate([
|
17
|
+
DataSetHistoryEntitySubscriber = tslib_1.__decorate([
|
23
18
|
(0, typeorm_1.EventSubscriber)()
|
24
19
|
], DataSetHistoryEntitySubscriber);
|
25
20
|
exports.DataSetHistoryEntitySubscriber = DataSetHistoryEntitySubscriber;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"event-subscriber.js","sourceRoot":"","sources":["../../../server/service/data-set-history/event-subscriber.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"event-subscriber.js","sourceRoot":"","sources":["../../../server/service/data-set-history/event-subscriber.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AAEzC,gEAAoE;AAEpE,mDAA8C;AAC9C,yDAAmD;AAGnD,IAAa,8BAA8B,GAA3C,MAAa,8BAA+B,SAAQ,yCAAgD;IAClG,IAAW,MAAM;QACf,OAAO,kBAAO,CAAA;IAChB,CAAC;IAED,IAAW,aAAa;QACtB,OAAO,iCAAc,CAAA;IACvB,CAAC;CACF,CAAA;AARY,8BAA8B;IAD1C,IAAA,yBAAe,GAAE;GACL,8BAA8B,CAQ1C;AARY,wEAA8B","sourcesContent":["import { EventSubscriber } from 'typeorm'\n\nimport { HistoryEntitySubscriber } from '@anchan828/typeorm-history'\n\nimport { DataSet } from '../data-set/data-set'\nimport { DataSetHistory } from './data-set-history'\n\n@EventSubscriber()\nexport class DataSetHistoryEntitySubscriber extends HistoryEntitySubscriber<DataSet, DataSetHistory> {\n public get entity() {\n return DataSet\n }\n\n public get historyEntity() {\n return DataSetHistory\n }\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/data-set-history/index.ts"],"names":[],"mappings":";;;AAAA,yDAAmD;AACnD,qEAA8D;AAC9D,yDAAmE;AAEtD,QAAA,QAAQ,GAAG,CAAC,iCAAc,CAAC,CAAA;AAC3B,QAAA,SAAS,GAAG,CAAC,4CAAmB,CAAC,CAAA;AACjC,QAAA,WAAW,GAAG,CAAC,iDAA8B,CAAC,CAAA"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/data-set-history/index.ts"],"names":[],"mappings":";;;AAAA,yDAAmD;AACnD,qEAA8D;AAC9D,yDAAmE;AAEtD,QAAA,QAAQ,GAAG,CAAC,iCAAc,CAAC,CAAA;AAC3B,QAAA,SAAS,GAAG,CAAC,4CAAmB,CAAC,CAAA;AACjC,QAAA,WAAW,GAAG,CAAC,iDAA8B,CAAC,CAAA","sourcesContent":["import { DataSetHistory } from './data-set-history'\nimport { DataSetHistoryQuery } from './data-set-history-query'\nimport { DataSetHistoryEntitySubscriber } from './event-subscriber'\n\nexport const entities = [DataSetHistory]\nexport const resolvers = [DataSetHistoryQuery]\nexport const subscribers = [DataSetHistoryEntitySubscriber]\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-spec-manager.js","sourceRoot":"","sources":["../../../server/service/data-spec/data-spec-manager.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAG1B,MAAM,CAAC,WAAW,CAAC,IAAY;QAC7B,OAAO,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;IAC3C,CAAC;IAED,MAAM,CAAC,gBAAgB,CAAC,IAAY,EAAE,QAAkB;QACtD,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAA;IAC/C,CAAC;IAED,MAAM,CAAC,kBAAkB,CAAC,IAAY;QACpC,OAAO,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;IAC3C,CAAC;IAED,MAAM,CAAC,YAAY;QACjB,OAAO,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,YAAY,CAAC,CAAA;IACpD,CAAC;;AAjBH,0CAkBC;AAjBQ,4BAAY,GAAiC,EAAE,CAAA"}
|
1
|
+
{"version":3,"file":"data-spec-manager.js","sourceRoot":"","sources":["../../../server/service/data-spec/data-spec-manager.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAG1B,MAAM,CAAC,WAAW,CAAC,IAAY;QAC7B,OAAO,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;IAC3C,CAAC;IAED,MAAM,CAAC,gBAAgB,CAAC,IAAY,EAAE,QAAkB;QACtD,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAA;IAC/C,CAAC;IAED,MAAM,CAAC,kBAAkB,CAAC,IAAY;QACpC,OAAO,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;IAC3C,CAAC;IAED,MAAM,CAAC,YAAY;QACjB,OAAO,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,YAAY,CAAC,CAAA;IACpD,CAAC;;AAjBH,0CAkBC;AAjBQ,4BAAY,GAAiC,EAAE,CAAA","sourcesContent":["import { DataSpec } from './data-spec'\n\nexport class DataSpecManager {\n static specRegistry: { [type: string]: DataSpec } = {}\n\n static getDataSpec(type: string): DataSpec {\n return DataSpecManager.specRegistry[type]\n }\n\n static registerDataSpec(type: string, dataSpec: DataSpec) {\n DataSpecManager.specRegistry[type] = dataSpec\n }\n\n static unregisterDataSpec(type: string) {\n delete DataSpecManager.specRegistry[type]\n }\n\n static getDataSpecs(): DataSpec[] {\n return Object.values(DataSpecManager.specRegistry)\n }\n}\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.DataSpecQuery = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
16
5
|
const type_graphql_1 = require("type-graphql");
|
17
6
|
const data_spec_1 = require("./data-spec");
|
18
7
|
const data_spec_manager_1 = require("./data-spec-manager");
|
@@ -28,20 +17,20 @@ let DataSpecQuery = class DataSpecQuery {
|
|
28
17
|
};
|
29
18
|
}
|
30
19
|
};
|
31
|
-
__decorate([
|
20
|
+
tslib_1.__decorate([
|
32
21
|
(0, type_graphql_1.Query)(returns => data_spec_1.DataSpec, { description: 'To fetch a data-spec' }),
|
33
|
-
__param(0, (0, type_graphql_1.Arg)('name')),
|
34
|
-
__metadata("design:type", Function),
|
35
|
-
__metadata("design:paramtypes", [String]),
|
36
|
-
__metadata("design:returntype", data_spec_1.DataSpec)
|
22
|
+
tslib_1.__param(0, (0, type_graphql_1.Arg)('name')),
|
23
|
+
tslib_1.__metadata("design:type", Function),
|
24
|
+
tslib_1.__metadata("design:paramtypes", [String]),
|
25
|
+
tslib_1.__metadata("design:returntype", data_spec_1.DataSpec)
|
37
26
|
], DataSpecQuery.prototype, "dataSpec", null);
|
38
|
-
__decorate([
|
27
|
+
tslib_1.__decorate([
|
39
28
|
(0, type_graphql_1.Query)(returns => data_spec_1.DataSpecList, { description: 'To fetch all data-specs' }),
|
40
|
-
__metadata("design:type", Function),
|
41
|
-
__metadata("design:paramtypes", []),
|
42
|
-
__metadata("design:returntype", data_spec_1.DataSpecList)
|
29
|
+
tslib_1.__metadata("design:type", Function),
|
30
|
+
tslib_1.__metadata("design:paramtypes", []),
|
31
|
+
tslib_1.__metadata("design:returntype", data_spec_1.DataSpecList)
|
43
32
|
], DataSpecQuery.prototype, "dataSpecs", null);
|
44
|
-
DataSpecQuery = __decorate([
|
33
|
+
DataSpecQuery = tslib_1.__decorate([
|
45
34
|
(0, type_graphql_1.Resolver)(data_spec_1.DataSpec)
|
46
35
|
], DataSpecQuery);
|
47
36
|
exports.DataSpecQuery = DataSpecQuery;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-spec-query.js","sourceRoot":"","sources":["../../../server/service/data-spec/data-spec-query.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"data-spec-query.js","sourceRoot":"","sources":["../../../server/service/data-spec/data-spec-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAmD;AACnD,2CAAoD;AACpD,2DAAqD;AAGrD,IAAa,aAAa,GAA1B,MAAa,aAAa;IAExB,QAAQ,CAAc,IAAY;QAChC,OAAO,mCAAe,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;IAC1C,CAAC;IAGD,SAAS;QACP,MAAM,KAAK,GAAG,mCAAe,CAAC,YAAY,EAAE,CAAA;QAE5C,OAAO;YACL,KAAK;YACL,KAAK,EAAE,KAAK,CAAC,MAAM;SACpB,CAAA;IACH,CAAC;CACF,CAAA;AAbC;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,oBAAQ,EAAE,EAAE,WAAW,EAAE,sBAAsB,EAAE,CAAC;IAC1D,mBAAA,IAAA,kBAAG,EAAC,MAAM,CAAC,CAAA;;;4CAAgB,oBAAQ;6CAE5C;AAGD;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,wBAAY,EAAE,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;;;4CAC9D,wBAAY;8CAOxB;AAdU,aAAa;IADzB,IAAA,uBAAQ,EAAC,oBAAQ,CAAC;GACN,aAAa,CAezB;AAfY,sCAAa","sourcesContent":["import { Resolver, Query, Arg } from 'type-graphql'\nimport { DataSpec, DataSpecList } from './data-spec'\nimport { DataSpecManager } from './data-spec-manager'\n\n@Resolver(DataSpec)\nexport class DataSpecQuery {\n @Query(returns => DataSpec, { description: 'To fetch a data-spec' })\n dataSpec(@Arg('name') name: string): DataSpec {\n return DataSpecManager.getDataSpec(name)\n }\n\n @Query(returns => DataSpecList, { description: 'To fetch all data-specs' })\n dataSpecs(): DataSpecList {\n const items = DataSpecManager.getDataSpecs()\n\n return {\n items,\n total: items.length\n }\n }\n}\n"]}
|
@@ -1,77 +1,69 @@
|
|
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;
|
12
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
13
4
|
exports.DataSpecList = exports.DataSpec = exports.DataSpecItem = 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
|
let DataSpecItem = class DataSpecItem {
|
17
9
|
};
|
18
|
-
__decorate([
|
10
|
+
tslib_1.__decorate([
|
19
11
|
(0, type_graphql_1.Field)(),
|
20
|
-
__metadata("design:type", String)
|
12
|
+
tslib_1.__metadata("design:type", String)
|
21
13
|
], DataSpecItem.prototype, "type", void 0);
|
22
|
-
__decorate([
|
14
|
+
tslib_1.__decorate([
|
23
15
|
(0, type_graphql_1.Field)(),
|
24
|
-
__metadata("design:type", String)
|
16
|
+
tslib_1.__metadata("design:type", String)
|
25
17
|
], DataSpecItem.prototype, "label", void 0);
|
26
|
-
__decorate([
|
18
|
+
tslib_1.__decorate([
|
27
19
|
(0, type_graphql_1.Field)(),
|
28
|
-
__metadata("design:type", String)
|
20
|
+
tslib_1.__metadata("design:type", String)
|
29
21
|
], DataSpecItem.prototype, "name", void 0);
|
30
|
-
__decorate([
|
22
|
+
tslib_1.__decorate([
|
31
23
|
(0, type_graphql_1.Field)({ nullable: true }),
|
32
|
-
__metadata("design:type", String)
|
24
|
+
tslib_1.__metadata("design:type", String)
|
33
25
|
], DataSpecItem.prototype, "placeholder", void 0);
|
34
|
-
__decorate([
|
26
|
+
tslib_1.__decorate([
|
35
27
|
(0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
|
36
|
-
__metadata("design:type", typeof (_a = typeof shell_1.ScalarObject !== "undefined" && shell_1.ScalarObject) === "function" ? _a : Object)
|
28
|
+
tslib_1.__metadata("design:type", typeof (_a = typeof shell_1.ScalarObject !== "undefined" && shell_1.ScalarObject) === "function" ? _a : Object)
|
37
29
|
], DataSpecItem.prototype, "property", void 0);
|
38
|
-
DataSpecItem = __decorate([
|
30
|
+
DataSpecItem = tslib_1.__decorate([
|
39
31
|
(0, type_graphql_1.ObjectType)()
|
40
32
|
], DataSpecItem);
|
41
33
|
exports.DataSpecItem = DataSpecItem;
|
42
34
|
let DataSpec = class DataSpec {
|
43
35
|
};
|
44
|
-
__decorate([
|
36
|
+
tslib_1.__decorate([
|
45
37
|
(0, type_graphql_1.Field)(),
|
46
|
-
__metadata("design:type", String)
|
38
|
+
tslib_1.__metadata("design:type", String)
|
47
39
|
], DataSpec.prototype, "name", void 0);
|
48
|
-
__decorate([
|
40
|
+
tslib_1.__decorate([
|
49
41
|
(0, type_graphql_1.Field)({ nullable: true }),
|
50
|
-
__metadata("design:type", String)
|
42
|
+
tslib_1.__metadata("design:type", String)
|
51
43
|
], DataSpec.prototype, "description", void 0);
|
52
|
-
__decorate([
|
44
|
+
tslib_1.__decorate([
|
53
45
|
(0, type_graphql_1.Field)({ nullable: true }),
|
54
|
-
__metadata("design:type", String)
|
46
|
+
tslib_1.__metadata("design:type", String)
|
55
47
|
], DataSpec.prototype, "help", void 0);
|
56
|
-
__decorate([
|
48
|
+
tslib_1.__decorate([
|
57
49
|
(0, type_graphql_1.Field)(type => [DataSpecItem], { nullable: true }),
|
58
|
-
__metadata("design:type", Array)
|
50
|
+
tslib_1.__metadata("design:type", Array)
|
59
51
|
], DataSpec.prototype, "specItems", void 0);
|
60
|
-
DataSpec = __decorate([
|
52
|
+
DataSpec = tslib_1.__decorate([
|
61
53
|
(0, type_graphql_1.ObjectType)()
|
62
54
|
], DataSpec);
|
63
55
|
exports.DataSpec = DataSpec;
|
64
56
|
let DataSpecList = class DataSpecList {
|
65
57
|
};
|
66
|
-
__decorate([
|
58
|
+
tslib_1.__decorate([
|
67
59
|
(0, type_graphql_1.Field)(type => [DataSpec]),
|
68
|
-
__metadata("design:type", Array)
|
60
|
+
tslib_1.__metadata("design:type", Array)
|
69
61
|
], DataSpecList.prototype, "items", void 0);
|
70
|
-
__decorate([
|
62
|
+
tslib_1.__decorate([
|
71
63
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
72
|
-
__metadata("design:type", Number)
|
64
|
+
tslib_1.__metadata("design:type", Number)
|
73
65
|
], DataSpecList.prototype, "total", void 0);
|
74
|
-
DataSpecList = __decorate([
|
66
|
+
DataSpecList = tslib_1.__decorate([
|
75
67
|
(0, type_graphql_1.ObjectType)()
|
76
68
|
], DataSpecList);
|
77
69
|
exports.DataSpecList = DataSpecList;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-spec.js","sourceRoot":"","sources":["../../../server/service/data-spec/data-spec.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"data-spec.js","sourceRo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,CAMxB;AANY,oCAAY","sourcesContent":["import { ObjectType, Field, Int } from 'type-graphql'\nimport { ScalarObject } from '@things-factory/shell'\n\n@ObjectType()\nexport class DataSpecItem {\n @Field()\n type: string\n\n @Field()\n label: string\n\n @Field()\n name: string\n\n @Field({ nullable: true })\n placeholder?: string\n\n @Field(type => ScalarObject, { nullable: true })\n property?: ScalarObject\n}\n\n@ObjectType()\nexport class DataSpec {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description: string\n\n @Field({ nullable: true })\n help: string\n\n @Field(type => [DataSpecItem], { nullable: true })\n specItems: DataSpecItem[]\n}\n\n@ObjectType()\nexport class DataSpecList {\n @Field(type => [DataSpec])\n items: DataSpec[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/data-spec/index.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AACtC,uDAAiD;AAEpC,QAAA,QAAQ,GAAG,CAAC,oBAAQ,CAAC,CAAA;AACrB,QAAA,SAAS,GAAG,CAAC,+BAAa,CAAC,CAAA"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/data-spec/index.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AACtC,uDAAiD;AAEpC,QAAA,QAAQ,GAAG,CAAC,oBAAQ,CAAC,CAAA;AACrB,QAAA,SAAS,GAAG,CAAC,+BAAa,CAAC,CAAA","sourcesContent":["import { DataSpec } from './data-spec'\nimport { DataSpecQuery } from './data-spec-query'\n\nexport const entities = [DataSpec]\nexport const resolvers = [DataSpecQuery]\n"]}
|
@@ -1,20 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
3
|
exports.schema = exports.subscribers = exports.entities = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
18
5
|
const data_item_1 = require("./data-item");
|
19
6
|
const data_key_set_1 = require("./data-key-set");
|
20
7
|
const data_ooc_1 = require("./data-ooc");
|
@@ -24,14 +11,14 @@ const data_set_1 = require("./data-set");
|
|
24
11
|
const data_set_history_1 = require("./data-set-history");
|
25
12
|
const data_spec_1 = require("./data-spec");
|
26
13
|
/* EXPORT ENTITY TYPES */
|
27
|
-
__exportStar(require("./data-key-set/data-key-set"), exports);
|
28
|
-
__exportStar(require("./data-ooc/data-ooc"), exports);
|
29
|
-
__exportStar(require("./data-sensor/data-sensor"), exports);
|
30
|
-
__exportStar(require("./data-sample/data-sample"), exports);
|
31
|
-
__exportStar(require("./data-set/data-set"), exports);
|
32
|
-
__exportStar(require("./data-set-history/data-set-history"), exports);
|
33
|
-
__exportStar(require("./data-set/data-item-type"), exports);
|
34
|
-
__exportStar(require("./data-spec/data-spec"), exports);
|
14
|
+
tslib_1.__exportStar(require("./data-key-set/data-key-set"), exports);
|
15
|
+
tslib_1.__exportStar(require("./data-ooc/data-ooc"), exports);
|
16
|
+
tslib_1.__exportStar(require("./data-sensor/data-sensor"), exports);
|
17
|
+
tslib_1.__exportStar(require("./data-sample/data-sample"), exports);
|
18
|
+
tslib_1.__exportStar(require("./data-set/data-set"), exports);
|
19
|
+
tslib_1.__exportStar(require("./data-set-history/data-set-history"), exports);
|
20
|
+
tslib_1.__exportStar(require("./data-set/data-item-type"), exports);
|
21
|
+
tslib_1.__exportStar(require("./data-spec/data-spec"), exports);
|
35
22
|
exports.entities = [
|
36
23
|
/* ENTITIES */
|
37
24
|
...data_key_set_1.entities,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;AAAA,2CAA0D;AAC1D,iDAAiG;AACjG,yCAAuF;AACvF,+CAAgG;AAChG,+CAAgG;AAChG,yCAAuF;AACvF,yDAI2B;AAC3B,2CAA0F;AAE1F,yBAAyB;AACzB,sEAA2C;AAC3C,8DAAmC;AACnC,oEAAyC;AACzC,oEAAyC;AACzC,8DAAmC;AACnC,8EAAmD;AACnD,oEAAyC;AACzC,gEAAqC;AAExB,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,uBAAkB;IACrB,GAAG,oBAAgB;IACnB,GAAG,mBAAe;IAClB,GAAG,sBAAkB;IACrB,GAAG,sBAAkB;IACrB,GAAG,mBAAe;IAClB,GAAG,2BAAsB;IACzB,GAAG,oBAAgB;CACpB,CAAA;AAEY,QAAA,WAAW,GAAG;IACzB,iBAAiB;IACjB,GAAG,8BAAyB;CAC7B,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACtB,GAAG,wBAAmB;QACtB,GAAG,oBAAgB;QACnB,GAAG,uBAAmB;QACtB,GAAG,uBAAmB;QACtB,GAAG,oBAAgB;QACnB,GAAG,4BAAuB;QAC1B,GAAG,qBAAiB;KACrB;CACF,CAAA","sourcesContent":["import { entities as DataItemEntities } from './data-item'\nimport { entities as DataKeySetEntities, resolvers as DataKeySetResolvers } from './data-key-set'\nimport { entities as DataOocEntities, resolvers as DataOocResolvers } from './data-ooc'\nimport { entities as DataSampleEntities, resolvers as DataSampleResolvers } from './data-sample'\nimport { entities as DataSensorEntities, resolvers as DataSensorResolvers } from './data-sensor'\nimport { entities as DataSetEntities, resolvers as DataSetResolvers } from './data-set'\nimport {\n entities as DataSetHistoryEntities,\n resolvers as DataSetHistoryResolvers,\n subscribers as DataSetHistorySubscribers\n} from './data-set-history'\nimport { entities as DataSpecEntities, resolvers as DataSpecResolvers } from './data-spec'\n\n/* EXPORT ENTITY TYPES */\nexport * from './data-key-set/data-key-set'\nexport * from './data-ooc/data-ooc'\nexport * from './data-sensor/data-sensor'\nexport * from './data-sample/data-sample'\nexport * from './data-set/data-set'\nexport * from './data-set-history/data-set-history'\nexport * from './data-set/data-item-type'\nexport * from './data-spec/data-spec'\n\nexport const entities = [\n /* ENTITIES */\n ...DataKeySetEntities,\n ...DataItemEntities,\n ...DataOocEntities,\n ...DataSensorEntities,\n ...DataSampleEntities,\n ...DataSetEntities,\n ...DataSetHistoryEntities,\n ...DataSpecEntities\n]\n\nexport const subscribers = [\n /* SUBSCRIBERS */\n ...DataSetHistorySubscribers\n]\n\nexport const schema = {\n resolverClasses: [\n /* RESOLVER CLASSES */\n ...DataKeySetResolvers,\n ...DataOocResolvers,\n ...DataSensorResolvers,\n ...DataSampleResolvers,\n ...DataSetResolvers,\n ...DataSetHistoryResolvers,\n ...DataSpecResolvers\n ]\n}\n"]}
|