@things-factory/resource-base 4.0.1 → 4.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/resource-base",
3
- "version": "4.0.1",
3
+ "version": "4.0.4",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,7 +24,7 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@things-factory/auth-base": "^4.0.1"
27
+ "@things-factory/auth-base": "^4.0.4"
28
28
  },
29
- "gitHead": "6803d6f150cc64cbb8b12a88d9131bb6fb9ad880"
29
+ "gitHead": "292d7c4e2675d228d6be474ea6a0525d26ac1657"
30
30
  }
@@ -1,40 +0,0 @@
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.EntityCandidateQuery = void 0;
16
- const type_graphql_1 = require("type-graphql");
17
- const typeorm_1 = require("typeorm");
18
- const entity_candidate_1 = require("./entity-candidate");
19
- let EntityCandidateQuery = class EntityCandidateQuery {
20
- async entityCandidate(name, context) {
21
- const metadata = await (0, typeorm_1.getConnection)().getMetadata(name);
22
- return {
23
- name: metadata.name,
24
- columns: metadata.columns
25
- };
26
- }
27
- };
28
- __decorate([
29
- (0, type_graphql_1.Query)(returns => entity_candidate_1.EntityCandidate, { description: 'To fetch a EntityCandidate' }),
30
- __param(0, (0, type_graphql_1.Arg)('name')),
31
- __param(1, (0, type_graphql_1.Ctx)()),
32
- __metadata("design:type", Function),
33
- __metadata("design:paramtypes", [String, Object]),
34
- __metadata("design:returntype", Promise)
35
- ], EntityCandidateQuery.prototype, "entityCandidate", null);
36
- EntityCandidateQuery = __decorate([
37
- (0, type_graphql_1.Resolver)(entity_candidate_1.EntityCandidate)
38
- ], EntityCandidateQuery);
39
- exports.EntityCandidateQuery = EntityCandidateQuery;
40
- //# sourceMappingURL=entity-candidate-query.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entity-candidate-query.js","sourceRoot":"","sources":["../../../server/service/entity-candidate/entity-candidate-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAwD;AACxD,qCAAuC;AAEvC,yDAAoD;AAGpD,IAAa,oBAAoB,GAAjC,MAAa,oBAAoB;IAE/B,KAAK,CAAC,eAAe,CAAc,IAAY,EAAS,OAAY;QAClE,MAAM,QAAQ,GAAG,MAAM,IAAA,uBAAa,GAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;QACxD,OAAO;YACL,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,OAAO,EAAE,QAAQ,CAAC,OAAgB;SACnC,CAAA;IACH,CAAC;CACF,CAAA;AAPC;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,kCAAe,EAAE,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IAC1D,WAAA,IAAA,kBAAG,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;2DAMtD;AARU,oBAAoB;IADhC,IAAA,uBAAQ,EAAC,kCAAe,CAAC;GACb,oBAAoB,CAShC;AATY,oDAAoB"}
@@ -1,83 +0,0 @@
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.EntityCandidate = exports.EntityCandidateColumn = void 0;
13
- const type_graphql_1 = require("type-graphql");
14
- const shell_1 = require("@things-factory/shell");
15
- let EntityCandidateColumn = class EntityCandidateColumn {
16
- };
17
- __decorate([
18
- (0, type_graphql_1.Field)(),
19
- __metadata("design:type", String)
20
- ], EntityCandidateColumn.prototype, "propertyName", void 0);
21
- __decorate([
22
- (0, type_graphql_1.Field)(type => shell_1.ScalarAny, { nullable: true }),
23
- __metadata("design:type", Object)
24
- ], EntityCandidateColumn.prototype, "target", void 0);
25
- __decorate([
26
- (0, type_graphql_1.Field)(type => [shell_1.ScalarAny], { nullable: true }),
27
- __metadata("design:type", Array)
28
- ], EntityCandidateColumn.prototype, "enum", void 0);
29
- __decorate([
30
- (0, type_graphql_1.Field)({ nullable: true }),
31
- __metadata("design:type", String)
32
- ], EntityCandidateColumn.prototype, "generatedType", void 0);
33
- __decorate([
34
- (0, type_graphql_1.Field)({ nullable: true }),
35
- __metadata("design:type", Boolean)
36
- ], EntityCandidateColumn.prototype, "isArray", void 0);
37
- __decorate([
38
- (0, type_graphql_1.Field)(),
39
- __metadata("design:type", Boolean)
40
- ], EntityCandidateColumn.prototype, "isNullable", void 0);
41
- __decorate([
42
- (0, type_graphql_1.Field)({ nullable: true }),
43
- __metadata("design:type", Boolean)
44
- ], EntityCandidateColumn.prototype, "isPrimary", void 0);
45
- __decorate([
46
- (0, type_graphql_1.Field)({ nullable: true }),
47
- __metadata("design:type", Boolean)
48
- ], EntityCandidateColumn.prototype, "isReadonly", void 0);
49
- __decorate([
50
- (0, type_graphql_1.Field)({ nullable: true }),
51
- __metadata("design:type", Boolean)
52
- ], EntityCandidateColumn.prototype, "isUpdateDate", void 0);
53
- __decorate([
54
- (0, type_graphql_1.Field)({ nullable: true }),
55
- __metadata("design:type", Boolean)
56
- ], EntityCandidateColumn.prototype, "isVersion", void 0);
57
- __decorate([
58
- (0, type_graphql_1.Field)({ nullable: true }),
59
- __metadata("design:type", Number)
60
- ], EntityCandidateColumn.prototype, "length", void 0);
61
- __decorate([
62
- (0, type_graphql_1.Field)(type => shell_1.ScalarAny, { nullable: true }),
63
- __metadata("design:type", Object)
64
- ], EntityCandidateColumn.prototype, "referenceColumn", void 0);
65
- EntityCandidateColumn = __decorate([
66
- (0, type_graphql_1.ObjectType)({ description: 'Entity candidate Columns' })
67
- ], EntityCandidateColumn);
68
- exports.EntityCandidateColumn = EntityCandidateColumn;
69
- let EntityCandidate = class EntityCandidate {
70
- };
71
- __decorate([
72
- (0, type_graphql_1.Field)(),
73
- __metadata("design:type", String)
74
- ], EntityCandidate.prototype, "name", void 0);
75
- __decorate([
76
- (0, type_graphql_1.Field)(type => [EntityCandidateColumn], { nullable: true }),
77
- __metadata("design:type", Array)
78
- ], EntityCandidate.prototype, "columns", void 0);
79
- EntityCandidate = __decorate([
80
- (0, type_graphql_1.ObjectType)({ description: 'Entity for EntityCandidate' })
81
- ], EntityCandidate);
82
- exports.EntityCandidate = EntityCandidate;
83
- //# sourceMappingURL=entity-candidate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entity-candidate.js","sourceRoot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;AAuClC,IAAa,eAAe,GAA5B,MAAa,eAAe;CAM3B,CAAA;AAJC;IADC,IAAA,oBAAK,GAAE;;6CACI;AAGZ;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,qBAAqB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC1B;AALtB,eAAe;IAD3B,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;GAC7C,eAAe,CAM3B;AANY,0CAAe"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolvers = exports.entities = void 0;
4
- const entity_candidate_1 = require("./entity-candidate");
5
- const entity_candidate_query_1 = require("./entity-candidate-query");
6
- exports.entities = [entity_candidate_1.EntityCandidate];
7
- exports.resolvers = [entity_candidate_query_1.EntityCandidateQuery];
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/entity-candidate/index.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;AACpD,qEAA+D;AAElD,QAAA,QAAQ,GAAG,CAAC,kCAAe,CAAC,CAAA;AAC5B,QAAA,SAAS,GAAG,CAAC,6CAAoB,CAAC,CAAA"}