@things-factory/dataset 4.3.671 → 4.3.672

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist-server/controllers/index.js +1 -0
  2. package/dist-server/controllers/index.js.map +1 -0
  3. package/dist-server/index.js +21 -0
  4. package/dist-server/index.js.map +1 -0
  5. package/dist-server/middlewares/index.js +8 -0
  6. package/dist-server/middlewares/index.js.map +1 -0
  7. package/dist-server/migrations/index.js +12 -0
  8. package/dist-server/migrations/index.js.map +1 -0
  9. package/dist-server/routes.js +25 -0
  10. package/dist-server/routes.js.map +1 -0
  11. package/dist-server/service/data-item/data-item-mutation.js +69 -0
  12. package/dist-server/service/data-item/data-item-mutation.js.map +1 -0
  13. package/dist-server/service/data-item/data-item-query.js +100 -0
  14. package/dist-server/service/data-item/data-item-query.js.map +1 -0
  15. package/dist-server/service/data-item/data-item-type.js +80 -0
  16. package/dist-server/service/data-item/data-item-type.js.map +1 -0
  17. package/dist-server/service/data-item/data-item.js +136 -0
  18. package/dist-server/service/data-item/data-item.js.map +1 -0
  19. package/dist-server/service/data-item/index.js +9 -0
  20. package/dist-server/service/data-item/index.js.map +1 -0
  21. package/dist-server/service/data-sample/data-sample-mutation.js +142 -0
  22. package/dist-server/service/data-sample/data-sample-mutation.js.map +1 -0
  23. package/dist-server/service/data-sample/data-sample-query.js +100 -0
  24. package/dist-server/service/data-sample/data-sample-query.js.map +1 -0
  25. package/dist-server/service/data-sample/data-sample-type.js +82 -0
  26. package/dist-server/service/data-sample/data-sample-type.js.map +1 -0
  27. package/dist-server/service/data-sample/data-sample.js +105 -0
  28. package/dist-server/service/data-sample/data-sample.js.map +1 -0
  29. package/dist-server/service/data-sample/index.js +9 -0
  30. package/dist-server/service/data-sample/index.js.map +1 -0
  31. package/dist-server/service/data-set/data-set-mutation.js +213 -0
  32. package/dist-server/service/data-set/data-set-mutation.js.map +1 -0
  33. package/dist-server/service/data-set/data-set-query.js +102 -0
  34. package/dist-server/service/data-set/data-set-query.js.map +1 -0
  35. package/dist-server/service/data-set/data-set-type.js +77 -0
  36. package/dist-server/service/data-set/data-set-type.js.map +1 -0
  37. package/dist-server/service/data-set/data-set.js +103 -0
  38. package/dist-server/service/data-set/data-set.js.map +1 -0
  39. package/dist-server/service/data-set/index.js +9 -0
  40. package/dist-server/service/data-set/index.js.map +1 -0
  41. package/dist-server/service/index.js +40 -0
  42. package/dist-server/service/index.js.map +1 -0
  43. package/package.json +4 -4
@@ -0,0 +1,142 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.DataSampleMutation = void 0;
16
+ const type_graphql_1 = require("type-graphql");
17
+ const typeorm_1 = require("typeorm");
18
+ const data_item_1 = require("../data-item/data-item");
19
+ const data_set_1 = require("../data-set/data-set");
20
+ const data_sample_1 = require("./data-sample");
21
+ const data_sample_type_1 = require("./data-sample-type");
22
+ let DataSampleMutation = class DataSampleMutation {
23
+ async createDataSample(dataSample, context) {
24
+ const { domain, user, tx } = context.state;
25
+ const dataSet = await tx.getRepository(data_set_1.DataSet).findOne({ id: dataSample.dataSetId });
26
+ const dataItems = await tx.getRepository(data_item_1.DataItem).find({
27
+ select: {
28
+ domain,
29
+ dataSetId: dataSample.dataSetId
30
+ },
31
+ order: {
32
+ sequence: 'DESC'
33
+ }
34
+ });
35
+ var spec = {};
36
+ dataItems.sortforEach(dataItem => {
37
+ spec[dataItem.name] = dataItem.spec;
38
+ });
39
+ return await tx.getRepository(data_sample_1.DataSample).save(Object.assign(Object.assign({ name: dataSet.name, description: dataSet.description }, dataSample), { domain,
40
+ spec, creator: user, updater: user }));
41
+ }
42
+ async updateDataSample(id, patch, context) {
43
+ const { domain, user, tx } = context.state;
44
+ const repository = tx.getRepository(data_sample_1.DataSample);
45
+ const dataSample = await repository.findOne({
46
+ where: { domain, id }
47
+ });
48
+ return await repository.save(Object.assign(Object.assign(Object.assign({}, dataSample), patch), { updater: user }));
49
+ }
50
+ async updateMultipleDataSample(patches, context) {
51
+ const { domain, user, tx } = context.state;
52
+ let results = [];
53
+ const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
54
+ const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
55
+ const dataSampleRepo = tx.getRepository(data_sample_1.DataSample);
56
+ if (_createRecords.length > 0) {
57
+ for (let i = 0; i < _createRecords.length; i++) {
58
+ const newRecord = _createRecords[i];
59
+ const result = await dataSampleRepo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
60
+ results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
61
+ }
62
+ }
63
+ if (_updateRecords.length > 0) {
64
+ for (let i = 0; i < _updateRecords.length; i++) {
65
+ const newRecord = _updateRecords[i];
66
+ const dataSample = await dataSampleRepo.findOne(newRecord.id);
67
+ const result = await dataSampleRepo.save(Object.assign(Object.assign(Object.assign({}, dataSample), newRecord), { updater: user }));
68
+ results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
69
+ }
70
+ }
71
+ return results;
72
+ }
73
+ async deleteDataSample(id, context) {
74
+ const { domain, tx } = context.state;
75
+ await tx.getRepository(data_sample_1.DataSample).delete({ domain, id });
76
+ return true;
77
+ }
78
+ async deleteDataSamples(ids, context) {
79
+ const { domain, tx } = context.state;
80
+ await tx.getRepository(data_sample_1.DataSample).delete({
81
+ domain,
82
+ id: (0, typeorm_1.In)(ids)
83
+ });
84
+ return true;
85
+ }
86
+ };
87
+ __decorate([
88
+ (0, type_graphql_1.Directive)('@privilege(category: "data-sample", privilege: "mutation", domainOwnerGranted: true)'),
89
+ (0, type_graphql_1.Directive)('@transaction'),
90
+ (0, type_graphql_1.Mutation)(returns => data_sample_1.DataSample, { description: 'To create new data sample' }),
91
+ __param(0, (0, type_graphql_1.Arg)('dataSample')),
92
+ __param(1, (0, type_graphql_1.Ctx)()),
93
+ __metadata("design:type", Function),
94
+ __metadata("design:paramtypes", [data_sample_type_1.NewDataSample, Object]),
95
+ __metadata("design:returntype", Promise)
96
+ ], DataSampleMutation.prototype, "createDataSample", null);
97
+ __decorate([
98
+ (0, type_graphql_1.Directive)('@privilege(category: "data-sample", privilege: "mutation", domainOwnerGranted: true)'),
99
+ (0, type_graphql_1.Directive)('@transaction'),
100
+ (0, type_graphql_1.Mutation)(returns => data_sample_1.DataSample, { description: 'To modify data sample information' }),
101
+ __param(0, (0, type_graphql_1.Arg)('id')),
102
+ __param(1, (0, type_graphql_1.Arg)('patch')),
103
+ __param(2, (0, type_graphql_1.Ctx)()),
104
+ __metadata("design:type", Function),
105
+ __metadata("design:paramtypes", [String, data_sample_type_1.DataSamplePatch, Object]),
106
+ __metadata("design:returntype", Promise)
107
+ ], DataSampleMutation.prototype, "updateDataSample", null);
108
+ __decorate([
109
+ (0, type_graphql_1.Directive)('@privilege(category: "data-sample", privilege: "mutation", domainOwnerGranted: true)'),
110
+ (0, type_graphql_1.Directive)('@transaction'),
111
+ (0, type_graphql_1.Mutation)(returns => [data_sample_1.DataSample], { description: "To modify multiple data samples' information" }),
112
+ __param(0, (0, type_graphql_1.Arg)('patches', type => [data_sample_type_1.DataSamplePatch])),
113
+ __param(1, (0, type_graphql_1.Ctx)()),
114
+ __metadata("design:type", Function),
115
+ __metadata("design:paramtypes", [Array, Object]),
116
+ __metadata("design:returntype", Promise)
117
+ ], DataSampleMutation.prototype, "updateMultipleDataSample", null);
118
+ __decorate([
119
+ (0, type_graphql_1.Directive)('@privilege(category: "data-sample", privilege: "mutation", domainOwnerGranted: true)'),
120
+ (0, type_graphql_1.Directive)('@transaction'),
121
+ (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete a data sample' }),
122
+ __param(0, (0, type_graphql_1.Arg)('id')),
123
+ __param(1, (0, type_graphql_1.Ctx)()),
124
+ __metadata("design:type", Function),
125
+ __metadata("design:paramtypes", [String, Object]),
126
+ __metadata("design:returntype", Promise)
127
+ ], DataSampleMutation.prototype, "deleteDataSample", null);
128
+ __decorate([
129
+ (0, type_graphql_1.Directive)('@privilege(category: "data-sample", privilege: "mutation", domainOwnerGranted: true)'),
130
+ (0, type_graphql_1.Directive)('@transaction'),
131
+ (0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple data samples' }),
132
+ __param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
133
+ __param(1, (0, type_graphql_1.Ctx)()),
134
+ __metadata("design:type", Function),
135
+ __metadata("design:paramtypes", [Array, Object]),
136
+ __metadata("design:returntype", Promise)
137
+ ], DataSampleMutation.prototype, "deleteDataSamples", null);
138
+ DataSampleMutation = __decorate([
139
+ (0, type_graphql_1.Resolver)(data_sample_1.DataSample)
140
+ ], DataSampleMutation);
141
+ exports.DataSampleMutation = DataSampleMutation;
142
+ //# sourceMappingURL=data-sample-mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-sample-mutation.js","sourceRoot":"","sources":["../../../server/service/data-sample/data-sample-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAA4B;AAE5B,sDAAiD;AACjD,mDAA8C;AAC9C,+CAA0C;AAC1C,yDAAmE;AAG5D,IAAM,kBAAkB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AAC;IACxD,WAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAAiB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;2DAS1E;AA9HU,kBAAkB;IAD9B,IAAA,uBAAQ,EAAC,wBAAU,CAAC;GACR,kBAAkB,CA+H9B;AA/HY,gDAAkB"}
@@ -0,0 +1,100 @@
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
+ var _a;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DataSampleQuery = void 0;
17
+ const type_graphql_1 = require("type-graphql");
18
+ const typeorm_1 = require("typeorm");
19
+ const auth_base_1 = require("@things-factory/auth-base");
20
+ const shell_1 = require("@things-factory/shell");
21
+ const data_set_1 = require("../data-set/data-set");
22
+ const data_sample_1 = require("./data-sample");
23
+ const data_sample_type_1 = require("./data-sample-type");
24
+ let DataSampleQuery = class DataSampleQuery {
25
+ async dataSample(id, context) {
26
+ const { domain } = context.state;
27
+ return await (0, typeorm_1.getRepository)(data_sample_1.DataSample).findOne({
28
+ where: { domain, id }
29
+ });
30
+ }
31
+ async dataSamples(params, context) {
32
+ const { domain } = context.state;
33
+ const convertedParams = (0, shell_1.convertListParams)(params, domain.id);
34
+ const [items, total] = await (0, typeorm_1.getRepository)(data_sample_1.DataSample).findAndCount(convertedParams);
35
+ return { items, total };
36
+ }
37
+ async dataSet(dataSample) {
38
+ return await (0, typeorm_1.getRepository)(data_set_1.DataSet).findOne(dataSample.dataSetId);
39
+ }
40
+ async domain(dataSample) {
41
+ return await (0, typeorm_1.getRepository)(shell_1.Domain).findOne(dataSample.domainId);
42
+ }
43
+ async updater(dataSample) {
44
+ return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(dataSample.updaterId);
45
+ }
46
+ async creator(dataSample) {
47
+ return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(dataSample.creatorId);
48
+ }
49
+ };
50
+ __decorate([
51
+ (0, type_graphql_1.Directive)('@privilege(category: "data-sample", privilege: "query", domainOwnerGranted: true)'),
52
+ (0, type_graphql_1.Query)(returns => data_sample_1.DataSample, { description: 'To fetch a data sample' }),
53
+ __param(0, (0, type_graphql_1.Arg)('id')),
54
+ __param(1, (0, type_graphql_1.Ctx)()),
55
+ __metadata("design:type", Function),
56
+ __metadata("design:paramtypes", [String, Object]),
57
+ __metadata("design:returntype", Promise)
58
+ ], DataSampleQuery.prototype, "dataSample", null);
59
+ __decorate([
60
+ (0, type_graphql_1.Directive)('@privilege(category: "data-sample", privilege: "query", domainOwnerGranted: true)'),
61
+ (0, type_graphql_1.Query)(returns => data_sample_type_1.DataSampleList, { description: 'To fetch multiple data samples' }),
62
+ __param(0, (0, type_graphql_1.Args)()),
63
+ __param(1, (0, type_graphql_1.Ctx)()),
64
+ __metadata("design:type", Function),
65
+ __metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
66
+ __metadata("design:returntype", Promise)
67
+ ], DataSampleQuery.prototype, "dataSamples", null);
68
+ __decorate([
69
+ (0, type_graphql_1.FieldResolver)(type => data_set_1.DataSet),
70
+ __param(0, (0, type_graphql_1.Root)()),
71
+ __metadata("design:type", Function),
72
+ __metadata("design:paramtypes", [data_sample_1.DataSample]),
73
+ __metadata("design:returntype", Promise)
74
+ ], DataSampleQuery.prototype, "dataSet", null);
75
+ __decorate([
76
+ (0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
77
+ __param(0, (0, type_graphql_1.Root)()),
78
+ __metadata("design:type", Function),
79
+ __metadata("design:paramtypes", [data_sample_1.DataSample]),
80
+ __metadata("design:returntype", Promise)
81
+ ], DataSampleQuery.prototype, "domain", null);
82
+ __decorate([
83
+ (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
84
+ __param(0, (0, type_graphql_1.Root)()),
85
+ __metadata("design:type", Function),
86
+ __metadata("design:paramtypes", [data_sample_1.DataSample]),
87
+ __metadata("design:returntype", Promise)
88
+ ], DataSampleQuery.prototype, "updater", null);
89
+ __decorate([
90
+ (0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
91
+ __param(0, (0, type_graphql_1.Root)()),
92
+ __metadata("design:type", Function),
93
+ __metadata("design:paramtypes", [data_sample_1.DataSample]),
94
+ __metadata("design:returntype", Promise)
95
+ ], DataSampleQuery.prototype, "creator", null);
96
+ DataSampleQuery = __decorate([
97
+ (0, type_graphql_1.Resolver)(data_sample_1.DataSample)
98
+ ], DataSampleQuery);
99
+ exports.DataSampleQuery = DataSampleQuery;
100
+ //# sourceMappingURL=data-sample-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-sample-query.js","sourceRoot":"","sources":["../../../server/service/data-sample/data-sample-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA8F;AAC9F,qCAAuC;AAEvC,yDAAgD;AAChD,iDAA4E;AAE5E,mDAA8C;AAC9C,+CAA0C;AAC1C,yDAAmD;AAG5C,IAAM,eAAe,GAArB,MAAM,eAAe;IAGpB,AAAN,KAAK,CAAC,UAAU,CAAY,EAAU,EAAS,OAAY;QACzD,MAAM,EAAE,MAAM,EAAE,GAAG,O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,CAAC;IAC9F,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,wBAAU,EAAE,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACtD,WAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;iDAM7C;AAIK;IAFL,IAAA,wBAAS,EAAC,mFAAmF,CAAC;IAC9F,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,iCAAc,EAAE,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;IACjE,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAAjB,iBAAS,oBAAT,iBAAS;;kDAO1C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAO,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAa,wBAAU;;8CAE3C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAa,wBAAU;;6CAE1C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAa,wBAAU;;8CAE3C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAa,wBAAU;;8CAE3C;AAxCU,eAAe;IAD3B,IAAA,uBAAQ,EAAC,wBAAU,CAAC;GACR,eAAe,CAyC3B;AAzCY,0CAAe"}
@@ -0,0 +1,82 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.DataSampleList = exports.DataSamplePatch = exports.NewDataSample = void 0;
13
+ const type_graphql_1 = require("type-graphql");
14
+ const shell_1 = require("@things-factory/shell");
15
+ const data_sample_1 = require("./data-sample");
16
+ let NewDataSample = class NewDataSample {
17
+ };
18
+ __decorate([
19
+ (0, type_graphql_1.Field)({ nullable: true }),
20
+ __metadata("design:type", String)
21
+ ], NewDataSample.prototype, "name", void 0);
22
+ __decorate([
23
+ (0, type_graphql_1.Field)({ nullable: true }),
24
+ __metadata("design:type", String)
25
+ ], NewDataSample.prototype, "description", void 0);
26
+ __decorate([
27
+ (0, type_graphql_1.Field)({ nullable: true }),
28
+ __metadata("design:type", String)
29
+ ], NewDataSample.prototype, "dataSetId", void 0);
30
+ __decorate([
31
+ (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
32
+ __metadata("design:type", Object)
33
+ ], NewDataSample.prototype, "data", void 0);
34
+ NewDataSample = __decorate([
35
+ (0, type_graphql_1.InputType)()
36
+ ], NewDataSample);
37
+ exports.NewDataSample = NewDataSample;
38
+ let DataSamplePatch = class DataSamplePatch {
39
+ };
40
+ __decorate([
41
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
42
+ __metadata("design:type", String)
43
+ ], DataSamplePatch.prototype, "id", void 0);
44
+ __decorate([
45
+ (0, type_graphql_1.Field)({ nullable: true }),
46
+ __metadata("design:type", String)
47
+ ], DataSamplePatch.prototype, "name", void 0);
48
+ __decorate([
49
+ (0, type_graphql_1.Field)({ nullable: true }),
50
+ __metadata("design:type", String)
51
+ ], DataSamplePatch.prototype, "description", void 0);
52
+ __decorate([
53
+ (0, type_graphql_1.Field)({ nullable: true }),
54
+ __metadata("design:type", String)
55
+ ], DataSamplePatch.prototype, "dataSetId", void 0);
56
+ __decorate([
57
+ (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
58
+ __metadata("design:type", Object)
59
+ ], DataSamplePatch.prototype, "data", void 0);
60
+ __decorate([
61
+ (0, type_graphql_1.Field)(),
62
+ __metadata("design:type", String)
63
+ ], DataSamplePatch.prototype, "cuFlag", void 0);
64
+ DataSamplePatch = __decorate([
65
+ (0, type_graphql_1.InputType)()
66
+ ], DataSamplePatch);
67
+ exports.DataSamplePatch = DataSamplePatch;
68
+ let DataSampleList = class DataSampleList {
69
+ };
70
+ __decorate([
71
+ (0, type_graphql_1.Field)(type => [data_sample_1.DataSample]),
72
+ __metadata("design:type", Array)
73
+ ], DataSampleList.prototype, "items", void 0);
74
+ __decorate([
75
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int),
76
+ __metadata("design:type", Number)
77
+ ], DataSampleList.prototype, "total", void 0);
78
+ DataSampleList = __decorate([
79
+ (0, type_graphql_1.ObjectType)()
80
+ ], DataSampleList);
81
+ exports.DataSampleList = DataSampleList;
82
+ //# sourceMappingURL=data-sample-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-sample-type.js","sourceRoot":"","sources":["../../../server/service/data-sample/data-sample-type.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAoE;AAEpE,iDAAoD;AAEpD,+CAA0C;AAGnC,IAAM,aAAa,GAAnB,MAAM,aAAa;CAYzB,CAAA;AAXC;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACb;AAEb;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,C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ate) || 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 _a, _b, _c;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.DataSample = void 0;
14
+ const type_graphql_1 = require("type-graphql");
15
+ const typeorm_1 = require("typeorm");
16
+ const auth_base_1 = require("@things-factory/auth-base");
17
+ const shell_1 = require("@things-factory/shell");
18
+ const data_set_1 = require("../data-set/data-set");
19
+ let DataSample = class DataSample {
20
+ };
21
+ __decorate([
22
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
23
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID),
24
+ __metadata("design:type", String)
25
+ ], DataSample.prototype, "id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
28
+ (0, type_graphql_1.Field)({ nullable: true }),
29
+ __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
30
+ ], DataSample.prototype, "domain", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.RelationId)((dataSample) => dataSample.domain),
33
+ __metadata("design:type", String)
34
+ ], DataSample.prototype, "domainId", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)(),
37
+ (0, type_graphql_1.Field)(),
38
+ __metadata("design:type", String)
39
+ ], DataSample.prototype, "name", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({
42
+ nullable: true
43
+ }),
44
+ (0, type_graphql_1.Field)({ nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], DataSample.prototype, "description", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.ManyToOne)(type => data_set_1.DataSet, dataSet => dataSet.dataSamples),
49
+ (0, type_graphql_1.Field)(type => data_set_1.DataSet, { nullable: true }),
50
+ __metadata("design:type", data_set_1.DataSet)
51
+ ], DataSample.prototype, "dataSet", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.RelationId)((dataSample) => dataSample.dataSet),
54
+ (0, type_graphql_1.Field)({ nullable: true }),
55
+ __metadata("design:type", String)
56
+ ], DataSample.prototype, "dataSetId", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)('simple-json', { nullable: true }),
59
+ (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
60
+ __metadata("design:type", Object)
61
+ ], DataSample.prototype, "data", void 0);
62
+ __decorate([
63
+ (0, typeorm_1.Column)('simple-json', { nullable: true }),
64
+ (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
65
+ __metadata("design:type", Object)
66
+ ], DataSample.prototype, "spec", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.CreateDateColumn)(),
69
+ (0, type_graphql_1.Field)({ nullable: true }),
70
+ __metadata("design:type", Date)
71
+ ], DataSample.prototype, "createdAt", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.UpdateDateColumn)(),
74
+ (0, type_graphql_1.Field)({ nullable: true }),
75
+ __metadata("design:type", Date)
76
+ ], DataSample.prototype, "updatedAt", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
79
+ nullable: true
80
+ }),
81
+ (0, type_graphql_1.Field)({ nullable: true }),
82
+ __metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
83
+ ], DataSample.prototype, "creator", void 0);
84
+ __decorate([
85
+ (0, typeorm_1.RelationId)((dataSample) => dataSample.creator),
86
+ __metadata("design:type", String)
87
+ ], DataSample.prototype, "creatorId", void 0);
88
+ __decorate([
89
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
90
+ nullable: true
91
+ }),
92
+ (0, type_graphql_1.Field)({ nullable: true }),
93
+ __metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
94
+ ], DataSample.prototype, "updater", void 0);
95
+ __decorate([
96
+ (0, typeorm_1.RelationId)((dataSample) => dataSample.creator),
97
+ __metadata("design:type", String)
98
+ ], DataSample.prototype, "updaterId", void 0);
99
+ DataSample = __decorate([
100
+ (0, typeorm_1.Entity)(),
101
+ (0, typeorm_1.Index)('ix_data_sample_0', (dataSample) => [dataSample.domain, dataSample.dataSet], { unique: false }),
102
+ (0, type_graphql_1.ObjectType)({ description: 'Entity for DataSample' })
103
+ ], DataSample);
104
+ exports.DataSample = DataSample;
105
+ //# sourceMappingURL=data-sample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-sample.js","sourceRoot":"","sources":["../../../server/service/data-sample/data-sample.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,iDAA4D;AAE5D,mDAA8C;AAKvC,IAAM,UAAU,GAAhB,MAAM,UAAU;CA+DtB,CAAA;AA9DC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;sCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACjB,cAAM,oBAAN,cAAM;0CAAA;AAEf;IAAC,IAAA,oBAAU,EAAC,CAAC,UAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;;4CACzC;AAEjB;IAAC,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CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAChB,gBAAI,oBAAJ,gBAAI;2CAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,UAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;;6CACzC;AAElB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAChB,gBAAI,oBAAJ,gBAAI;2CAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,UAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;;6CACzC;AA9DP,UAAU;IAHtB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,kBAAkB,EAAE,CAAC,UAAsB,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;IACjH,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;GACxC,UAAU,CA+DtB;AA/DY,gCAAU"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolvers = exports.entities = void 0;
4
+ const data_sample_1 = require("./data-sample");
5
+ const data_sample_query_1 = require("./data-sample-query");
6
+ const data_sample_mutation_1 = require("./data-sample-mutation");
7
+ exports.entities = [data_sample_1.DataSample];
8
+ exports.resolvers = [data_sample_query_1.DataSampleQuery, data_sample_mutation_1.DataSampleMutation];
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/data-sample/index.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAC1C,2DAAqD;AACrD,iEAA2D;AAE9C,QAAA,QAAQ,GAAG,CAAC,wBAAU,CAAC,CAAA;AACvB,QAAA,SAAS,GAAG,CAAC,mCAAe,EAAE,yCAAkB,CAAC,CAAA"}