@things-factory/resource-base 5.0.7 → 6.0.0-alpha.0
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/dist-server/index.js +3 -16
- package/dist-server/index.js.map +1 -1
- package/dist-server/migrations/index.js.map +1 -1
- package/dist-server/service/entity/entity-mutation.js +27 -37
- package/dist-server/service/entity/entity-mutation.js.map +1 -1
- package/dist-server/service/entity/entity-query.js +55 -68
- package/dist-server/service/entity/entity-query.js.map +1 -1
- package/dist-server/service/entity/entity-type.js +84 -92
- package/dist-server/service/entity/entity-type.js.map +1 -1
- package/dist-server/service/entity/entity.js +61 -69
- package/dist-server/service/entity/entity.js.map +1 -1
- package/dist-server/service/entity/index.js.map +1 -1
- package/dist-server/service/entity-column/entity-column-mutation.js +25 -35
- package/dist-server/service/entity-column/entity-column-mutation.js.map +1 -1
- package/dist-server/service/entity-column/entity-column-query.js +41 -54
- package/dist-server/service/entity-column/entity-column-query.js.map +1 -1
- package/dist-server/service/entity-column/entity-column-type.js +144 -152
- package/dist-server/service/entity-column/entity-column-type.js.map +1 -1
- package/dist-server/service/entity-column/entity-column.js +90 -99
- package/dist-server/service/entity-column/entity-column.js.map +1 -1
- package/dist-server/service/entity-column/index.js.map +1 -1
- package/dist-server/service/entity-metadata/entity-metadata-query.js +8 -19
- package/dist-server/service/entity-metadata/entity-metadata-query.js.map +1 -1
- package/dist-server/service/entity-metadata/entity-metadata.js +50 -58
- package/dist-server/service/entity-metadata/entity-metadata.js.map +1 -1
- package/dist-server/service/entity-metadata/index.js.map +1 -1
- package/dist-server/service/index.js +4 -17
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +3 -3
- package/server/service/entity/entity-mutation.ts +11 -10
- package/server/service/entity/entity-query.ts +10 -11
- package/server/service/entity-column/entity-column-mutation.ts +9 -8
- package/server/service/entity-column/entity-column-query.ts +8 -9
- package/server/service/entity-metadata/entity-metadata-query.ts +1 -1
|
@@ -1,192 +1,184 @@
|
|
|
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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.EntityList = exports.EntityPatch = exports.NewEntity = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const type_graphql_1 = require("type-graphql");
|
|
14
6
|
const entity_1 = require("./entity");
|
|
15
7
|
let NewEntity = class NewEntity {
|
|
16
8
|
};
|
|
17
|
-
__decorate([
|
|
9
|
+
tslib_1.__decorate([
|
|
18
10
|
(0, type_graphql_1.Field)(),
|
|
19
|
-
__metadata("design:type", String)
|
|
11
|
+
tslib_1.__metadata("design:type", String)
|
|
20
12
|
], NewEntity.prototype, "name", void 0);
|
|
21
|
-
__decorate([
|
|
13
|
+
tslib_1.__decorate([
|
|
22
14
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
23
|
-
__metadata("design:type", String)
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
24
16
|
], NewEntity.prototype, "description", void 0);
|
|
25
|
-
__decorate([
|
|
17
|
+
tslib_1.__decorate([
|
|
26
18
|
(0, type_graphql_1.Field)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
19
|
+
tslib_1.__metadata("design:type", String)
|
|
28
20
|
], NewEntity.prototype, "bundle", void 0);
|
|
29
|
-
__decorate([
|
|
21
|
+
tslib_1.__decorate([
|
|
30
22
|
(0, type_graphql_1.Field)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
23
|
+
tslib_1.__metadata("design:type", String)
|
|
32
24
|
], NewEntity.prototype, "tableName", void 0);
|
|
33
|
-
__decorate([
|
|
25
|
+
tslib_1.__decorate([
|
|
34
26
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
35
|
-
__metadata("design:type", String)
|
|
27
|
+
tslib_1.__metadata("design:type", String)
|
|
36
28
|
], NewEntity.prototype, "searchUrl", void 0);
|
|
37
|
-
__decorate([
|
|
29
|
+
tslib_1.__decorate([
|
|
38
30
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
39
|
-
__metadata("design:type", String)
|
|
31
|
+
tslib_1.__metadata("design:type", String)
|
|
40
32
|
], NewEntity.prototype, "multiSaveUrl", void 0);
|
|
41
|
-
__decorate([
|
|
33
|
+
tslib_1.__decorate([
|
|
42
34
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
43
|
-
__metadata("design:type", String)
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
44
36
|
], NewEntity.prototype, "idType", void 0);
|
|
45
|
-
__decorate([
|
|
37
|
+
tslib_1.__decorate([
|
|
46
38
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
47
|
-
__metadata("design:type", String)
|
|
39
|
+
tslib_1.__metadata("design:type", String)
|
|
48
40
|
], NewEntity.prototype, "idField", void 0);
|
|
49
|
-
__decorate([
|
|
41
|
+
tslib_1.__decorate([
|
|
50
42
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
51
|
-
__metadata("design:type", String)
|
|
43
|
+
tslib_1.__metadata("design:type", String)
|
|
52
44
|
], NewEntity.prototype, "titleField", void 0);
|
|
53
|
-
__decorate([
|
|
45
|
+
tslib_1.__decorate([
|
|
54
46
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
55
|
-
__metadata("design:type", String)
|
|
47
|
+
tslib_1.__metadata("design:type", String)
|
|
56
48
|
], NewEntity.prototype, "master", void 0);
|
|
57
|
-
__decorate([
|
|
49
|
+
tslib_1.__decorate([
|
|
58
50
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
59
|
-
__metadata("design:type", String)
|
|
51
|
+
tslib_1.__metadata("design:type", String)
|
|
60
52
|
], NewEntity.prototype, "association", void 0);
|
|
61
|
-
__decorate([
|
|
53
|
+
tslib_1.__decorate([
|
|
62
54
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
63
|
-
__metadata("design:type", String)
|
|
55
|
+
tslib_1.__metadata("design:type", String)
|
|
64
56
|
], NewEntity.prototype, "dataProp", void 0);
|
|
65
|
-
__decorate([
|
|
57
|
+
tslib_1.__decorate([
|
|
66
58
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
67
|
-
__metadata("design:type", String)
|
|
59
|
+
tslib_1.__metadata("design:type", String)
|
|
68
60
|
], NewEntity.prototype, "refField", void 0);
|
|
69
|
-
__decorate([
|
|
61
|
+
tslib_1.__decorate([
|
|
70
62
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
71
|
-
__metadata("design:type", String)
|
|
63
|
+
tslib_1.__metadata("design:type", String)
|
|
72
64
|
], NewEntity.prototype, "delStrategy", void 0);
|
|
73
|
-
__decorate([
|
|
65
|
+
tslib_1.__decorate([
|
|
74
66
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
|
|
75
|
-
__metadata("design:type", Number)
|
|
67
|
+
tslib_1.__metadata("design:type", Number)
|
|
76
68
|
], NewEntity.prototype, "fixedColumns", void 0);
|
|
77
|
-
__decorate([
|
|
69
|
+
tslib_1.__decorate([
|
|
78
70
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
79
|
-
__metadata("design:type", Boolean)
|
|
71
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
80
72
|
], NewEntity.prototype, "active", void 0);
|
|
81
|
-
__decorate([
|
|
73
|
+
tslib_1.__decorate([
|
|
82
74
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
83
|
-
__metadata("design:type", Boolean)
|
|
75
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
84
76
|
], NewEntity.prototype, "extEntity", void 0);
|
|
85
|
-
__decorate([
|
|
77
|
+
tslib_1.__decorate([
|
|
86
78
|
(0, type_graphql_1.Field)(type => [String], { nullable: true }),
|
|
87
|
-
__metadata("design:type", Array)
|
|
79
|
+
tslib_1.__metadata("design:type", Array)
|
|
88
80
|
], NewEntity.prototype, "columns", void 0);
|
|
89
|
-
NewEntity = __decorate([
|
|
81
|
+
NewEntity = tslib_1.__decorate([
|
|
90
82
|
(0, type_graphql_1.InputType)()
|
|
91
83
|
], NewEntity);
|
|
92
84
|
exports.NewEntity = NewEntity;
|
|
93
85
|
let EntityPatch = class EntityPatch {
|
|
94
86
|
};
|
|
95
|
-
__decorate([
|
|
87
|
+
tslib_1.__decorate([
|
|
96
88
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
97
|
-
__metadata("design:type", String)
|
|
89
|
+
tslib_1.__metadata("design:type", String)
|
|
98
90
|
], EntityPatch.prototype, "id", void 0);
|
|
99
|
-
__decorate([
|
|
91
|
+
tslib_1.__decorate([
|
|
100
92
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
101
|
-
__metadata("design:type", String)
|
|
93
|
+
tslib_1.__metadata("design:type", String)
|
|
102
94
|
], EntityPatch.prototype, "name", void 0);
|
|
103
|
-
__decorate([
|
|
95
|
+
tslib_1.__decorate([
|
|
104
96
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
105
|
-
__metadata("design:type", String)
|
|
97
|
+
tslib_1.__metadata("design:type", String)
|
|
106
98
|
], EntityPatch.prototype, "description", void 0);
|
|
107
|
-
__decorate([
|
|
99
|
+
tslib_1.__decorate([
|
|
108
100
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
109
|
-
__metadata("design:type", String)
|
|
101
|
+
tslib_1.__metadata("design:type", String)
|
|
110
102
|
], EntityPatch.prototype, "bundle", void 0);
|
|
111
|
-
__decorate([
|
|
103
|
+
tslib_1.__decorate([
|
|
112
104
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
113
|
-
__metadata("design:type", String)
|
|
105
|
+
tslib_1.__metadata("design:type", String)
|
|
114
106
|
], EntityPatch.prototype, "tableName", void 0);
|
|
115
|
-
__decorate([
|
|
107
|
+
tslib_1.__decorate([
|
|
116
108
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
117
|
-
__metadata("design:type", String)
|
|
109
|
+
tslib_1.__metadata("design:type", String)
|
|
118
110
|
], EntityPatch.prototype, "searchUrl", void 0);
|
|
119
|
-
__decorate([
|
|
111
|
+
tslib_1.__decorate([
|
|
120
112
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
121
|
-
__metadata("design:type", String)
|
|
113
|
+
tslib_1.__metadata("design:type", String)
|
|
122
114
|
], EntityPatch.prototype, "multiSaveUrl", void 0);
|
|
123
|
-
__decorate([
|
|
115
|
+
tslib_1.__decorate([
|
|
124
116
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
125
|
-
__metadata("design:type", String)
|
|
117
|
+
tslib_1.__metadata("design:type", String)
|
|
126
118
|
], EntityPatch.prototype, "idType", void 0);
|
|
127
|
-
__decorate([
|
|
119
|
+
tslib_1.__decorate([
|
|
128
120
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
129
|
-
__metadata("design:type", String)
|
|
121
|
+
tslib_1.__metadata("design:type", String)
|
|
130
122
|
], EntityPatch.prototype, "idField", void 0);
|
|
131
|
-
__decorate([
|
|
123
|
+
tslib_1.__decorate([
|
|
132
124
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
133
|
-
__metadata("design:type", String)
|
|
125
|
+
tslib_1.__metadata("design:type", String)
|
|
134
126
|
], EntityPatch.prototype, "titleField", void 0);
|
|
135
|
-
__decorate([
|
|
127
|
+
tslib_1.__decorate([
|
|
136
128
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
137
|
-
__metadata("design:type", String)
|
|
129
|
+
tslib_1.__metadata("design:type", String)
|
|
138
130
|
], EntityPatch.prototype, "master", void 0);
|
|
139
|
-
__decorate([
|
|
131
|
+
tslib_1.__decorate([
|
|
140
132
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
141
|
-
__metadata("design:type", String)
|
|
133
|
+
tslib_1.__metadata("design:type", String)
|
|
142
134
|
], EntityPatch.prototype, "association", void 0);
|
|
143
|
-
__decorate([
|
|
135
|
+
tslib_1.__decorate([
|
|
144
136
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
145
|
-
__metadata("design:type", String)
|
|
137
|
+
tslib_1.__metadata("design:type", String)
|
|
146
138
|
], EntityPatch.prototype, "dataProp", void 0);
|
|
147
|
-
__decorate([
|
|
139
|
+
tslib_1.__decorate([
|
|
148
140
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
149
|
-
__metadata("design:type", String)
|
|
141
|
+
tslib_1.__metadata("design:type", String)
|
|
150
142
|
], EntityPatch.prototype, "refField", void 0);
|
|
151
|
-
__decorate([
|
|
143
|
+
tslib_1.__decorate([
|
|
152
144
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
153
|
-
__metadata("design:type", String)
|
|
145
|
+
tslib_1.__metadata("design:type", String)
|
|
154
146
|
], EntityPatch.prototype, "delStrategy", void 0);
|
|
155
|
-
__decorate([
|
|
147
|
+
tslib_1.__decorate([
|
|
156
148
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
|
|
157
|
-
__metadata("design:type", Number)
|
|
149
|
+
tslib_1.__metadata("design:type", Number)
|
|
158
150
|
], EntityPatch.prototype, "fixedColumns", void 0);
|
|
159
|
-
__decorate([
|
|
151
|
+
tslib_1.__decorate([
|
|
160
152
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
161
|
-
__metadata("design:type", Boolean)
|
|
153
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
162
154
|
], EntityPatch.prototype, "active", void 0);
|
|
163
|
-
__decorate([
|
|
155
|
+
tslib_1.__decorate([
|
|
164
156
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
165
|
-
__metadata("design:type", Boolean)
|
|
157
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
166
158
|
], EntityPatch.prototype, "extEntity", void 0);
|
|
167
|
-
__decorate([
|
|
159
|
+
tslib_1.__decorate([
|
|
168
160
|
(0, type_graphql_1.Field)(type => [String], { nullable: true }),
|
|
169
|
-
__metadata("design:type", Array)
|
|
161
|
+
tslib_1.__metadata("design:type", Array)
|
|
170
162
|
], EntityPatch.prototype, "columns", void 0);
|
|
171
|
-
__decorate([
|
|
163
|
+
tslib_1.__decorate([
|
|
172
164
|
(0, type_graphql_1.Field)(type => [String], { nullable: true }),
|
|
173
|
-
__metadata("design:type", Array)
|
|
165
|
+
tslib_1.__metadata("design:type", Array)
|
|
174
166
|
], EntityPatch.prototype, "children", void 0);
|
|
175
|
-
EntityPatch = __decorate([
|
|
167
|
+
EntityPatch = tslib_1.__decorate([
|
|
176
168
|
(0, type_graphql_1.InputType)()
|
|
177
169
|
], EntityPatch);
|
|
178
170
|
exports.EntityPatch = EntityPatch;
|
|
179
171
|
let EntityList = class EntityList {
|
|
180
172
|
};
|
|
181
|
-
__decorate([
|
|
173
|
+
tslib_1.__decorate([
|
|
182
174
|
(0, type_graphql_1.Field)(type => [entity_1.Entity]),
|
|
183
|
-
__metadata("design:type", Array)
|
|
175
|
+
tslib_1.__metadata("design:type", Array)
|
|
184
176
|
], EntityList.prototype, "items", void 0);
|
|
185
|
-
__decorate([
|
|
177
|
+
tslib_1.__decorate([
|
|
186
178
|
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
187
|
-
__metadata("design:type", Number)
|
|
179
|
+
tslib_1.__metadata("design:type", Number)
|
|
188
180
|
], EntityList.prototype, "total", void 0);
|
|
189
|
-
EntityList = __decorate([
|
|
181
|
+
EntityList = tslib_1.__decorate([
|
|
190
182
|
(0, type_graphql_1.ObjectType)()
|
|
191
183
|
], EntityList);
|
|
192
184
|
exports.EntityList = EntityList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-type.js","sourceRoot":"","sources":["../../../server/service/entity/entity-type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entity-type.js","sourceRoot":"","sources":["../../../server/service/entity/entity-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAoE;AAEpE,qCAAiC;AAGjC,IAAa,SAAS,GAAtB,MAAa,SAAS;CAsDrB,CAAA;AApDC;IADC,IAAA,oBAAK,GAAE;;uCACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACN;AAGpB;IADC,IAAA,oBAAK,GAAE;;yCACM;AAGd;IADC,IAAA,oBAAK,GAAE;;4CACS;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACL;AAGrB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAGf;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACV;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACP;AAGnB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAGf;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACN;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACT;AAGjB;IADC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B,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,eAAM,CAAC,CAAC;;yCACT;AAGf;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;yCACN;AALF,UAAU;IADtB,IAAA,yBAAU,GAAE;GACA,UAAU,CAMtB;AANY,gCAAU","sourcesContent":["import { Field, ID, InputType, Int, ObjectType } from 'type-graphql'\n\nimport { Entity } from './entity'\n\n@InputType()\nexport class NewEntity {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field()\n bundle: string\n\n @Field()\n tableName: string\n\n @Field({ nullable: true })\n searchUrl?: string\n\n @Field({ nullable: true })\n multiSaveUrl?: string\n\n @Field({ nullable: true })\n idType?: string\n\n @Field({ nullable: true })\n idField?: string\n\n @Field({ nullable: true })\n titleField?: string\n\n @Field({ nullable: true })\n master?: string\n\n @Field({ nullable: true })\n association?: string\n\n @Field({ nullable: true })\n dataProp?: string\n\n @Field({ nullable: true })\n refField?: string\n\n @Field({ nullable: true })\n delStrategy?: string\n\n @Field(type => Int, { nullable: true })\n fixedColumns?: number\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n extEntity?: boolean\n\n @Field(type => [String], { nullable: true })\n columns?: string[]\n}\n\n@InputType()\nexport class EntityPatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n bundle?: string\n\n @Field({ nullable: true })\n tableName?: string\n\n @Field({ nullable: true })\n searchUrl?: string\n\n @Field({ nullable: true })\n multiSaveUrl?: string\n\n @Field({ nullable: true })\n idType?: string\n\n @Field({ nullable: true })\n idField?: string\n\n @Field({ nullable: true })\n titleField?: string\n\n @Field({ nullable: true })\n master?: string\n\n @Field({ nullable: true })\n association?: string\n\n @Field({ nullable: true })\n dataProp?: string\n\n @Field({ nullable: true })\n refField?: string\n\n @Field({ nullable: true })\n delStrategy?: string\n\n @Field(type => Int, { nullable: true })\n fixedColumns?: number\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n extEntity?: boolean\n\n @Field(type => [String], { nullable: true })\n columns?: string[]\n\n @Field(type => [String], { nullable: true })\n children: string[]\n}\n\n@ObjectType()\nexport class EntityList {\n @Field(type => [Entity])\n items: Entity[]\n\n @Field(type => Int)\n total: number\n}\n"]}
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
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 Entity_1, _a, _b, _c;
|
|
2
|
+
var Entity_1;
|
|
12
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
4
|
exports.Entity = 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");
|
|
@@ -18,179 +10,179 @@ const shell_1 = require("@things-factory/shell");
|
|
|
18
10
|
const entity_column_1 = require("../entity-column/entity-column");
|
|
19
11
|
let Entity = Entity_1 = class Entity {
|
|
20
12
|
};
|
|
21
|
-
__decorate([
|
|
13
|
+
tslib_1.__decorate([
|
|
22
14
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
23
15
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
24
|
-
__metadata("design:type", String)
|
|
16
|
+
tslib_1.__metadata("design:type", String)
|
|
25
17
|
], Entity.prototype, "id", void 0);
|
|
26
|
-
__decorate([
|
|
18
|
+
tslib_1.__decorate([
|
|
27
19
|
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
28
20
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
29
|
-
__metadata("design:type",
|
|
21
|
+
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
30
22
|
], Entity.prototype, "domain", void 0);
|
|
31
|
-
__decorate([
|
|
23
|
+
tslib_1.__decorate([
|
|
32
24
|
(0, typeorm_1.RelationId)((entity) => entity.domain),
|
|
33
|
-
__metadata("design:type", String)
|
|
25
|
+
tslib_1.__metadata("design:type", String)
|
|
34
26
|
], Entity.prototype, "domainId", void 0);
|
|
35
|
-
__decorate([
|
|
27
|
+
tslib_1.__decorate([
|
|
36
28
|
(0, typeorm_1.Column)(),
|
|
37
29
|
(0, type_graphql_1.Field)(),
|
|
38
|
-
__metadata("design:type", String)
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
39
31
|
], Entity.prototype, "name", void 0);
|
|
40
|
-
__decorate([
|
|
32
|
+
tslib_1.__decorate([
|
|
41
33
|
(0, typeorm_1.Column)({
|
|
42
34
|
nullable: true
|
|
43
35
|
}),
|
|
44
36
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
45
|
-
__metadata("design:type", String)
|
|
37
|
+
tslib_1.__metadata("design:type", String)
|
|
46
38
|
], Entity.prototype, "description", void 0);
|
|
47
|
-
__decorate([
|
|
39
|
+
tslib_1.__decorate([
|
|
48
40
|
(0, typeorm_1.Column)(),
|
|
49
41
|
(0, type_graphql_1.Field)(),
|
|
50
|
-
__metadata("design:type", String)
|
|
42
|
+
tslib_1.__metadata("design:type", String)
|
|
51
43
|
], Entity.prototype, "bundle", void 0);
|
|
52
|
-
__decorate([
|
|
44
|
+
tslib_1.__decorate([
|
|
53
45
|
(0, typeorm_1.Column)(),
|
|
54
46
|
(0, type_graphql_1.Field)(),
|
|
55
|
-
__metadata("design:type", String)
|
|
47
|
+
tslib_1.__metadata("design:type", String)
|
|
56
48
|
], Entity.prototype, "tableName", void 0);
|
|
57
|
-
__decorate([
|
|
49
|
+
tslib_1.__decorate([
|
|
58
50
|
(0, typeorm_1.Column)({
|
|
59
51
|
nullable: true
|
|
60
52
|
}),
|
|
61
53
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
62
|
-
__metadata("design:type", String)
|
|
54
|
+
tslib_1.__metadata("design:type", String)
|
|
63
55
|
], Entity.prototype, "searchUrl", void 0);
|
|
64
|
-
__decorate([
|
|
56
|
+
tslib_1.__decorate([
|
|
65
57
|
(0, typeorm_1.Column)({
|
|
66
58
|
nullable: true
|
|
67
59
|
}),
|
|
68
60
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
69
|
-
__metadata("design:type", String)
|
|
61
|
+
tslib_1.__metadata("design:type", String)
|
|
70
62
|
], Entity.prototype, "multiSaveUrl", void 0);
|
|
71
|
-
__decorate([
|
|
63
|
+
tslib_1.__decorate([
|
|
72
64
|
(0, typeorm_1.Column)({
|
|
73
65
|
nullable: true
|
|
74
66
|
}),
|
|
75
67
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
76
|
-
__metadata("design:type", String)
|
|
68
|
+
tslib_1.__metadata("design:type", String)
|
|
77
69
|
], Entity.prototype, "idType", void 0);
|
|
78
|
-
__decorate([
|
|
70
|
+
tslib_1.__decorate([
|
|
79
71
|
(0, typeorm_1.Column)({
|
|
80
72
|
nullable: true
|
|
81
73
|
}),
|
|
82
74
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
83
|
-
__metadata("design:type", String)
|
|
75
|
+
tslib_1.__metadata("design:type", String)
|
|
84
76
|
], Entity.prototype, "idField", void 0);
|
|
85
|
-
__decorate([
|
|
77
|
+
tslib_1.__decorate([
|
|
86
78
|
(0, typeorm_1.Column)({
|
|
87
79
|
nullable: true
|
|
88
80
|
}),
|
|
89
81
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
90
|
-
__metadata("design:type", String)
|
|
82
|
+
tslib_1.__metadata("design:type", String)
|
|
91
83
|
], Entity.prototype, "titleField", void 0);
|
|
92
|
-
__decorate([
|
|
84
|
+
tslib_1.__decorate([
|
|
93
85
|
(0, typeorm_1.ManyToOne)(type => Entity_1, master => master.children),
|
|
94
86
|
(0, type_graphql_1.Field)(type => Entity_1, { nullable: true }),
|
|
95
|
-
__metadata("design:type", Entity)
|
|
87
|
+
tslib_1.__metadata("design:type", Entity)
|
|
96
88
|
], Entity.prototype, "master", void 0);
|
|
97
|
-
__decorate([
|
|
89
|
+
tslib_1.__decorate([
|
|
98
90
|
(0, typeorm_1.RelationId)((entity) => entity.master),
|
|
99
|
-
__metadata("design:type", String)
|
|
91
|
+
tslib_1.__metadata("design:type", String)
|
|
100
92
|
], Entity.prototype, "masterId", void 0);
|
|
101
|
-
__decorate([
|
|
93
|
+
tslib_1.__decorate([
|
|
102
94
|
(0, typeorm_1.OneToMany)(type => Entity_1, child => child.master),
|
|
103
95
|
(0, type_graphql_1.Field)(type => [Entity_1], { nullable: true }),
|
|
104
|
-
__metadata("design:type", Array)
|
|
96
|
+
tslib_1.__metadata("design:type", Array)
|
|
105
97
|
], Entity.prototype, "children", void 0);
|
|
106
|
-
__decorate([
|
|
98
|
+
tslib_1.__decorate([
|
|
107
99
|
(0, typeorm_1.Column)({
|
|
108
100
|
nullable: true
|
|
109
101
|
}),
|
|
110
102
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
111
|
-
__metadata("design:type", String)
|
|
103
|
+
tslib_1.__metadata("design:type", String)
|
|
112
104
|
], Entity.prototype, "association", void 0);
|
|
113
|
-
__decorate([
|
|
105
|
+
tslib_1.__decorate([
|
|
114
106
|
(0, typeorm_1.Column)({
|
|
115
107
|
nullable: true
|
|
116
108
|
}),
|
|
117
109
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
118
|
-
__metadata("design:type", String)
|
|
110
|
+
tslib_1.__metadata("design:type", String)
|
|
119
111
|
], Entity.prototype, "dataProp", void 0);
|
|
120
|
-
__decorate([
|
|
112
|
+
tslib_1.__decorate([
|
|
121
113
|
(0, typeorm_1.Column)({
|
|
122
114
|
nullable: true
|
|
123
115
|
}),
|
|
124
116
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
125
|
-
__metadata("design:type", String)
|
|
117
|
+
tslib_1.__metadata("design:type", String)
|
|
126
118
|
], Entity.prototype, "refField", void 0);
|
|
127
|
-
__decorate([
|
|
119
|
+
tslib_1.__decorate([
|
|
128
120
|
(0, typeorm_1.Column)({
|
|
129
121
|
nullable: true
|
|
130
122
|
}),
|
|
131
123
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
132
|
-
__metadata("design:type", String)
|
|
124
|
+
tslib_1.__metadata("design:type", String)
|
|
133
125
|
], Entity.prototype, "delStrategy", void 0);
|
|
134
|
-
__decorate([
|
|
126
|
+
tslib_1.__decorate([
|
|
135
127
|
(0, typeorm_1.Column)('int', {
|
|
136
128
|
nullable: true
|
|
137
129
|
}),
|
|
138
130
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
139
|
-
__metadata("design:type", Number)
|
|
131
|
+
tslib_1.__metadata("design:type", Number)
|
|
140
132
|
], Entity.prototype, "fixedColumns", void 0);
|
|
141
|
-
__decorate([
|
|
133
|
+
tslib_1.__decorate([
|
|
142
134
|
(0, typeorm_1.Column)({
|
|
143
135
|
nullable: true,
|
|
144
136
|
default: true
|
|
145
137
|
}),
|
|
146
138
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
147
|
-
__metadata("design:type", Boolean)
|
|
139
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
148
140
|
], Entity.prototype, "active", void 0);
|
|
149
|
-
__decorate([
|
|
141
|
+
tslib_1.__decorate([
|
|
150
142
|
(0, typeorm_1.Column)({
|
|
151
143
|
nullable: true
|
|
152
144
|
}),
|
|
153
145
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
154
|
-
__metadata("design:type", Boolean)
|
|
146
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
155
147
|
], Entity.prototype, "extEntity", void 0);
|
|
156
|
-
__decorate([
|
|
148
|
+
tslib_1.__decorate([
|
|
157
149
|
(0, typeorm_1.OneToMany)(type => entity_column_1.EntityColumn, entityColumn => entityColumn.entity),
|
|
158
150
|
(0, type_graphql_1.Field)(type => [entity_column_1.EntityColumn], { nullable: true }),
|
|
159
|
-
__metadata("design:type", Array)
|
|
151
|
+
tslib_1.__metadata("design:type", Array)
|
|
160
152
|
], Entity.prototype, "columns", void 0);
|
|
161
|
-
__decorate([
|
|
153
|
+
tslib_1.__decorate([
|
|
162
154
|
(0, typeorm_1.CreateDateColumn)(),
|
|
163
155
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
164
|
-
__metadata("design:type", Date)
|
|
156
|
+
tslib_1.__metadata("design:type", Date)
|
|
165
157
|
], Entity.prototype, "createdAt", void 0);
|
|
166
|
-
__decorate([
|
|
158
|
+
tslib_1.__decorate([
|
|
167
159
|
(0, typeorm_1.UpdateDateColumn)(),
|
|
168
160
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
169
|
-
__metadata("design:type", Date)
|
|
161
|
+
tslib_1.__metadata("design:type", Date)
|
|
170
162
|
], Entity.prototype, "updatedAt", void 0);
|
|
171
|
-
__decorate([
|
|
163
|
+
tslib_1.__decorate([
|
|
172
164
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
173
165
|
nullable: true
|
|
174
166
|
}),
|
|
175
167
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
176
|
-
__metadata("design:type",
|
|
168
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
177
169
|
], Entity.prototype, "creator", void 0);
|
|
178
|
-
__decorate([
|
|
170
|
+
tslib_1.__decorate([
|
|
179
171
|
(0, typeorm_1.RelationId)((entity) => entity.creator),
|
|
180
|
-
__metadata("design:type", String)
|
|
172
|
+
tslib_1.__metadata("design:type", String)
|
|
181
173
|
], Entity.prototype, "creatorId", void 0);
|
|
182
|
-
__decorate([
|
|
174
|
+
tslib_1.__decorate([
|
|
183
175
|
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
184
176
|
nullable: true
|
|
185
177
|
}),
|
|
186
178
|
(0, type_graphql_1.Field)({ nullable: true }),
|
|
187
|
-
__metadata("design:type",
|
|
179
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
188
180
|
], Entity.prototype, "updater", void 0);
|
|
189
|
-
__decorate([
|
|
181
|
+
tslib_1.__decorate([
|
|
190
182
|
(0, typeorm_1.RelationId)((entity) => entity.creator),
|
|
191
|
-
__metadata("design:type", String)
|
|
183
|
+
tslib_1.__metadata("design:type", String)
|
|
192
184
|
], Entity.prototype, "updaterId", void 0);
|
|
193
|
-
Entity = Entity_1 = __decorate([
|
|
185
|
+
Entity = Entity_1 = tslib_1.__decorate([
|
|
194
186
|
(0, typeorm_1.Entity)(),
|
|
195
187
|
(0, typeorm_1.Index)('ix_entity_0', (entity) => [entity.domain, entity.name], { unique: true }),
|
|
196
188
|
(0, typeorm_1.Index)('ix_entity_1', (entity) => [entity.domain]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../server/service/entity/entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../server/service/entity/entity.ts"],"names":[],"mappings":";;;;;AAAA,+CAAoD;AACpD,qCAUgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAE9C,kEAA6D;AAQ7D,IAAa,MAAM,cAAnB,MAAa,MAAM;CA+IlB,CAAA;AA5IC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC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AAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChB,gBAAI;uCAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,MAAc,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC;;yCAC7B;AA9IP,MAAM;IANlB,IAAA,gBAAS,GAAE;IACX,IAAA,eAAK,EAAC,aAAa,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACxF,IAAA,eAAK,EAAC,aAAa,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzD,IAAA,eAAK,EAAC,aAAa,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACzD,IAAA,eAAK,EAAC,aAAa,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACxE,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;GACpC,MAAM,CA+IlB;AA/IY,wBAAM","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity as ORMEntity,\n Index,\n ManyToOne,\n OneToMany,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\nimport { EntityColumn } from '../entity-column/entity-column'\n\n@ORMEntity()\n@Index('ix_entity_0', (entity: Entity) => [entity.domain, entity.name], { unique: true })\n@Index('ix_entity_1', (entity: Entity) => [entity.domain])\n@Index('ix_entity_2', (entity: Entity) => [entity.bundle])\n@Index('ix_entity_3', (entity: Entity) => [entity.domain, entity.master])\n@ObjectType({ description: 'Entity for Entity' })\nexport class Entity {\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((entity: Entity) => entity.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 @Column()\n @Field()\n bundle: string\n\n @Column()\n @Field()\n tableName: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n searchUrl?: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n multiSaveUrl?: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n idType?: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n idField?: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n titleField?: string\n\n @ManyToOne(type => Entity, master => master.children)\n @Field(type => Entity, { nullable: true })\n master?: Entity\n\n @RelationId((entity: Entity) => entity.master)\n masterId?: string\n\n @OneToMany(type => Entity, child => child.master)\n @Field(type => [Entity], { nullable: true })\n children?: Entity[]\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n association?: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n dataProp?: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n refField?: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n delStrategy?: string\n\n @Column('int', {\n nullable: true\n })\n @Field({ nullable: true })\n fixedColumns?: number\n\n @Column({\n nullable: true,\n default: true\n })\n @Field({ nullable: true })\n active?: boolean\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n extEntity?: boolean\n\n @OneToMany(type => EntityColumn, entityColumn => entityColumn.entity)\n @Field(type => [EntityColumn], { nullable: true })\n columns?: EntityColumn[]\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 creator?: User\n\n @RelationId((entity: Entity) => entity.creator)\n creatorId?: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((entity: Entity) => entity.creator)\n updaterId?: string\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/entity/index.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AACjC,iDAA4C;AAC5C,uDAAkD;AAErC,QAAA,QAAQ,GAAG,CAAC,eAAM,CAAC,CAAA;AACnB,QAAA,SAAS,GAAG,CAAC,0BAAW,EAAE,gCAAc,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/entity/index.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AACjC,iDAA4C;AAC5C,uDAAkD;AAErC,QAAA,QAAQ,GAAG,CAAC,eAAM,CAAC,CAAA;AACnB,QAAA,SAAS,GAAG,CAAC,0BAAW,EAAE,gCAAc,CAAC,CAAA","sourcesContent":["import { Entity } from './entity'\nimport { EntityQuery } from './entity-query'\nimport { EntityMutation } from './entity-mutation'\n\nexport const entities = [Entity]\nexport const resolvers = [EntityQuery, EntityMutation]\n"]}
|