@things-factory/code-base 5.0.1 → 5.0.7
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 +3 -3
- package/dist-server/entities/common-code-detail.js +0 -70
- package/dist-server/entities/common-code-detail.js.map +0 -1
- package/dist-server/entities/common-code.js +0 -68
- package/dist-server/entities/common-code.js.map +0 -1
- package/dist-server/entities/index.js +0 -12
- package/dist-server/entities/index.js.map +0 -1
- package/dist-server/graphql/index.js +0 -34
- package/dist-server/graphql/index.js.map +0 -1
- package/dist-server/graphql/resolvers/common-code/common-code-query.js +0 -39
- package/dist-server/graphql/resolvers/common-code/common-code-query.js.map +0 -1
- package/dist-server/graphql/resolvers/common-code/create-common-code.js +0 -14
- package/dist-server/graphql/resolvers/common-code/create-common-code.js.map +0 -1
- package/dist-server/graphql/resolvers/common-code/delete-common-code.js +0 -15
- package/dist-server/graphql/resolvers/common-code/delete-common-code.js.map +0 -1
- package/dist-server/graphql/resolvers/common-code/delete-common-codes.js +0 -15
- package/dist-server/graphql/resolvers/common-code/delete-common-codes.js.map +0 -1
- package/dist-server/graphql/resolvers/common-code/index.js +0 -15
- package/dist-server/graphql/resolvers/common-code/index.js.map +0 -1
- package/dist-server/graphql/resolvers/common-code/update-common-code.js +0 -24
- package/dist-server/graphql/resolvers/common-code/update-common-code.js.map +0 -1
- package/dist-server/graphql/resolvers/common-code/update-multiple-common-code.js +0 -32
- package/dist-server/graphql/resolvers/common-code/update-multiple-common-code.js.map +0 -1
- package/dist-server/graphql/resolvers/common-code-detail/common-code-detail-query.js +0 -30
- package/dist-server/graphql/resolvers/common-code-detail/common-code-detail-query.js.map +0 -1
- package/dist-server/graphql/resolvers/common-code-detail/create-common-code-detail.js +0 -14
- package/dist-server/graphql/resolvers/common-code-detail/create-common-code-detail.js.map +0 -1
- package/dist-server/graphql/resolvers/common-code-detail/delete-common-code-detail.js +0 -15
- package/dist-server/graphql/resolvers/common-code-detail/delete-common-code-detail.js.map +0 -1
- package/dist-server/graphql/resolvers/common-code-detail/delete-common-code-details.js +0 -15
- package/dist-server/graphql/resolvers/common-code-detail/delete-common-code-details.js.map +0 -1
- package/dist-server/graphql/resolvers/common-code-detail/index.js +0 -15
- package/dist-server/graphql/resolvers/common-code-detail/index.js.map +0 -1
- package/dist-server/graphql/resolvers/common-code-detail/update-common-code-detail.js +0 -15
- package/dist-server/graphql/resolvers/common-code-detail/update-common-code-detail.js.map +0 -1
- package/dist-server/graphql/resolvers/common-code-detail/update-multiple-common-code-detail.js +0 -39
- package/dist-server/graphql/resolvers/common-code-detail/update-multiple-common-code-detail.js.map +0 -1
- package/dist-server/graphql/resolvers/index.js +0 -19
- package/dist-server/graphql/resolvers/index.js.map +0 -1
- package/dist-server/graphql/types/common-code/common-code-list.js +0 -14
- package/dist-server/graphql/types/common-code/common-code-list.js.map +0 -1
- package/dist-server/graphql/types/common-code/common-code-patch.js +0 -17
- package/dist-server/graphql/types/common-code/common-code-patch.js.map +0 -1
- package/dist-server/graphql/types/common-code/common-code.js +0 -21
- package/dist-server/graphql/types/common-code/common-code.js.map +0 -1
- package/dist-server/graphql/types/common-code/index.js +0 -41
- package/dist-server/graphql/types/common-code/index.js.map +0 -1
- package/dist-server/graphql/types/common-code/new-common-code.js +0 -15
- package/dist-server/graphql/types/common-code/new-common-code.js.map +0 -1
- package/dist-server/graphql/types/common-code-detail/common-code-detail-list.js +0 -14
- package/dist-server/graphql/types/common-code-detail/common-code-detail-list.js.map +0 -1
- package/dist-server/graphql/types/common-code-detail/common-code-detail-patch.js +0 -18
- package/dist-server/graphql/types/common-code-detail/common-code-detail-patch.js.map +0 -1
- package/dist-server/graphql/types/common-code-detail/common-code-detail.js +0 -22
- package/dist-server/graphql/types/common-code-detail/common-code-detail.js.map +0 -1
- package/dist-server/graphql/types/common-code-detail/index.js +0 -39
- package/dist-server/graphql/types/common-code-detail/index.js.map +0 -1
- package/dist-server/graphql/types/common-code-detail/new-common-code-detail.js +0 -16
- package/dist-server/graphql/types/common-code-detail/new-common-code-detail.js.map +0 -1
- package/dist-server/graphql/types/index.js +0 -19
- package/dist-server/graphql/types/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/code-base",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.7",
|
|
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": "^5.0.
|
|
27
|
+
"@things-factory/auth-base": "^5.0.7"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "1c7c7618e2e3c9ef8b07d730c3df84c8bc01b35f"
|
|
30
30
|
}
|
|
@@ -1,70 +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 _a, _b, _c;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.CommonCodeDetail = void 0;
|
|
14
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
15
|
-
const shell_1 = require("@things-factory/shell");
|
|
16
|
-
const typeorm_1 = require("typeorm");
|
|
17
|
-
const common_code_1 = require("./common-code");
|
|
18
|
-
let CommonCodeDetail = class CommonCodeDetail {
|
|
19
|
-
};
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], CommonCodeDetail.prototype, "id", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
26
|
-
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
27
|
-
], CommonCodeDetail.prototype, "domain", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.ManyToOne)(type => common_code_1.CommonCode),
|
|
30
|
-
__metadata("design:type", common_code_1.CommonCode)
|
|
31
|
-
], CommonCodeDetail.prototype, "commonCode", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)(),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], CommonCodeDetail.prototype, "name", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)(),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], CommonCodeDetail.prototype, "description", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)(),
|
|
42
|
-
__metadata("design:type", Number)
|
|
43
|
-
], CommonCodeDetail.prototype, "rank", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
46
|
-
nullable: true
|
|
47
|
-
}),
|
|
48
|
-
__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
|
|
49
|
-
], CommonCodeDetail.prototype, "creator", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
52
|
-
nullable: true
|
|
53
|
-
}),
|
|
54
|
-
__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
55
|
-
], CommonCodeDetail.prototype, "updater", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
58
|
-
__metadata("design:type", Date)
|
|
59
|
-
], CommonCodeDetail.prototype, "createdAt", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
62
|
-
__metadata("design:type", Date)
|
|
63
|
-
], CommonCodeDetail.prototype, "updatedAt", void 0);
|
|
64
|
-
CommonCodeDetail = __decorate([
|
|
65
|
-
(0, typeorm_1.Entity)(),
|
|
66
|
-
(0, typeorm_1.Index)('ix_common_code_detail_0', (commonCodeDetail) => [commonCodeDetail.commonCode, commonCodeDetail.name], { unique: true }),
|
|
67
|
-
(0, typeorm_1.Index)('ix_common_code_detail_1', (commonCodeDetail) => [commonCodeDetail.commonCode, commonCodeDetail.rank], { unique: true })
|
|
68
|
-
], CommonCodeDetail);
|
|
69
|
-
exports.CommonCodeDetail = CommonCodeDetail;
|
|
70
|
-
//# sourceMappingURL=common-code-detail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-code-detail.js","sourceRoot":"","sources":["../../server/entities/common-code-detail.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAAgD;AAChD,iDAA8C;AAC9C,qCAAsH;AACtH,+CAA0C;AAa1C,IAAa,gBAAgB,GAA7B,MAAa,gBAAgB;CAkC5B,CAAA;AAhCC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;4CACrB;AAGV;IADC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;kDAClB,cAAM,oBAAN,cAAM;gDAAA;AAGd;IADC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,wBAAU,CAAC;8BAClB,wBAAU;oDAAA;AAGtB;IADC,IAAA,gBAAM,GAAE;;8CACG;AAGZ;IADC,IAAA,gBAAM,GAAE;;qDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;8CACG;AAKZ;IAHC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;kDACO,gBAAI,oBAAJ,gBAAI;iDAAA;AAKb;IAHC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;kDACO,gBAAI,oBAAJ,gBAAI;iDAAA;AAGb;IADC,IAAA,0BAAgB,GAAE;8BACR,IAAI;mDAAA;AAGf;IADC,IAAA,0BAAgB,GAAE;8BACR,IAAI;mDAAA;AAjCJ,gBAAgB;IAX5B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,yBAAyB,EACzB,CAAC,gBAAkC,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,UAAU,EAAE,gBAAgB,CAAC,IAAI,CAAC,EAC5F,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,eAAK,EACJ,yBAAyB,EACzB,CAAC,gBAAkC,EAAE,EAAE,CAAC,CAAC,gBAAgB,CAAC,UAAU,EAAE,gBAAgB,CAAC,IAAI,CAAC,EAC5F,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;GACY,gBAAgB,CAkC5B;AAlCY,4CAAgB"}
|
|
@@ -1,68 +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 _a, _b, _c;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.CommonCode = void 0;
|
|
14
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
15
|
-
const shell_1 = require("@things-factory/shell");
|
|
16
|
-
const typeorm_1 = require("typeorm");
|
|
17
|
-
const common_code_detail_1 = require("./common-code-detail");
|
|
18
|
-
let CommonCode = class CommonCode {
|
|
19
|
-
};
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], CommonCode.prototype, "id", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
26
|
-
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
27
|
-
], CommonCode.prototype, "domain", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], CommonCode.prototype, "name", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)({
|
|
34
|
-
nullable: true
|
|
35
|
-
}),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], CommonCode.prototype, "description", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.OneToMany)(type => common_code_detail_1.CommonCodeDetail, commonCodeDetail => commonCodeDetail.commonCode),
|
|
40
|
-
__metadata("design:type", Array)
|
|
41
|
-
], CommonCode.prototype, "details", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
44
|
-
nullable: true
|
|
45
|
-
}),
|
|
46
|
-
__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
|
|
47
|
-
], CommonCode.prototype, "creator", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
50
|
-
nullable: true
|
|
51
|
-
}),
|
|
52
|
-
__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
53
|
-
], CommonCode.prototype, "updater", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
56
|
-
__metadata("design:type", Date)
|
|
57
|
-
], CommonCode.prototype, "createdAt", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
60
|
-
__metadata("design:type", Date)
|
|
61
|
-
], CommonCode.prototype, "updatedAt", void 0);
|
|
62
|
-
CommonCode = __decorate([
|
|
63
|
-
(0, typeorm_1.Entity)(),
|
|
64
|
-
(0, typeorm_1.Index)('ix_common_code_0', (commonCode) => [commonCode.domain, commonCode.name], { unique: true }),
|
|
65
|
-
(0, typeorm_1.Index)('ix_common_code_1', (commonCode) => [commonCode.domain])
|
|
66
|
-
], CommonCode);
|
|
67
|
-
exports.CommonCode = CommonCode;
|
|
68
|
-
//# sourceMappingURL=common-code.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-code.js","sourceRoot":"","sources":["../../server/entities/common-code.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAAgD;AAChD,iDAA8C;AAC9C,qCASgB;AAChB,6DAAuD;AAKvD,IAAa,UAAU,GAAvB,MAAa,UAAU;CAiCtB,CAAA;AA/BC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACrB;AAGV;IADC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;kDAClB,cAAM,oBAAN,cAAM;0CAAA;AAGd;IADC,IAAA,gBAAM,GAAE;;wCACG;AAKZ;IAHC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;+CACiB;AAGnB;IADC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,qCAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC,gBAAgB,CAAC,UAAU,CAAC;;2CAC1D;AAK3B;IAHC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;kDACO,gBAAI,oBAAJ,gBAAI;2CAAA;AAKb;IAHC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;kDACO,gBAAI,oBAAJ,gBAAI;2CAAA;AAGb;IADC,IAAA,0BAAgB,GAAE;8BACR,IAAI;6CAAA;AAGf;IADC,IAAA,0BAAgB,GAAE;8BACR,IAAI;6CAAA;AAhCJ,UAAU;IAHtB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,kBAAkB,EAAE,CAAC,UAAsB,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC7G,IAAA,eAAK,EAAC,kBAAkB,EAAE,CAAC,UAAsB,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;GAC9D,UAAU,CAiCtB;AAjCY,gCAAU"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommonCodeDetail = exports.CommonCode = exports.entities = void 0;
|
|
4
|
-
const common_code_1 = require("./common-code");
|
|
5
|
-
Object.defineProperty(exports, "CommonCode", { enumerable: true, get: function () { return common_code_1.CommonCode; } });
|
|
6
|
-
const common_code_detail_1 = require("./common-code-detail");
|
|
7
|
-
Object.defineProperty(exports, "CommonCodeDetail", { enumerable: true, get: function () { return common_code_detail_1.CommonCodeDetail; } });
|
|
8
|
-
exports.entities = [
|
|
9
|
-
common_code_1.CommonCode,
|
|
10
|
-
common_code_detail_1.CommonCodeDetail
|
|
11
|
-
];
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/entities/index.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AASxC,2FATO,wBAAU,OASP;AARZ,6DAAuD;AASrD,iGATO,qCAAgB,OASP;AAPL,QAAA,QAAQ,GAAG;IACtB,wBAAU;IACV,qCAAgB;CACjB,CAAA"}
|
|
@@ -1,34 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.schema = void 0;
|
|
27
|
-
const utils_1 = require("@things-factory/utils");
|
|
28
|
-
const resolvers = __importStar(require("./resolvers"));
|
|
29
|
-
const typeDefs = __importStar(require("./types"));
|
|
30
|
-
exports.schema = {
|
|
31
|
-
typeDefs,
|
|
32
|
-
resolvers: utils_1.deepMerge.apply(null, Object.values(resolvers))
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/graphql/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAiD;AAEjD,uDAAwC;AACxC,kDAAmC;AAEtB,QAAA,MAAM,GAAG;IACpB,QAAQ;IACR,SAAS,EAAE,iBAAS,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;CAC3D,CAAA"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommonCode = exports.Query = void 0;
|
|
4
|
-
const shell_1 = require("@things-factory/shell");
|
|
5
|
-
const typeorm_1 = require("typeorm");
|
|
6
|
-
const entities_1 = require("../../../entities");
|
|
7
|
-
exports.Query = {
|
|
8
|
-
async commonCode(_, { name }, context) {
|
|
9
|
-
const { domain } = context.state;
|
|
10
|
-
return await (0, typeorm_1.getRepository)(entities_1.CommonCode).findOne({
|
|
11
|
-
where: { domain, name },
|
|
12
|
-
relations: ['domain', 'creator', 'updater']
|
|
13
|
-
});
|
|
14
|
-
},
|
|
15
|
-
async commonCodes(_, params, context) {
|
|
16
|
-
const queryBuilder = (0, typeorm_1.getRepository)(entities_1.CommonCode).createQueryBuilder();
|
|
17
|
-
(0, shell_1.buildQuery)(queryBuilder, params, context);
|
|
18
|
-
const [items, total] = await queryBuilder
|
|
19
|
-
.leftJoinAndSelect('CommonCode.domain', 'Domain')
|
|
20
|
-
.leftJoinAndSelect('CommonCode.creator', 'Creator')
|
|
21
|
-
.leftJoinAndSelect('CommonCode.updater', 'Updater')
|
|
22
|
-
.getManyAndCount();
|
|
23
|
-
return { items, total };
|
|
24
|
-
},
|
|
25
|
-
async partnerCommonCode(_, { name, partnerDomainId }, context) {
|
|
26
|
-
return await (0, typeorm_1.getRepository)(entities_1.CommonCode).findOne({
|
|
27
|
-
where: { domain: partnerDomainId, name },
|
|
28
|
-
relations: ['details', 'domain', 'creator', 'updater']
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
exports.CommonCode = {
|
|
33
|
-
async details(commonCode) {
|
|
34
|
-
return await (0, typeorm_1.getRepository)(entities_1.CommonCodeDetail).find({
|
|
35
|
-
commonCode
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=common-code-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-code-query.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/common-code/common-code-query.ts"],"names":[],"mappings":";;;AAAA,iDAA6D;AAC7D,qCAAuC;AACvC,gDAAoF;AAEvE,QAAA,KAAK,GAAG;IACnB,KAAK,CAAC,UAAU,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,EAAE,OAAY;QAC7C,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEhC,OAAO,MAAM,IAAA,uBAAa,EAAC,qBAAgB,CAAC,CAAC,OAAO,CAAC;YACnD,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;YACvB,SAAS,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC;SAC5C,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QACvD,MAAM,YAAY,GAAG,IAAA,uBAAa,EAAC,qBAAgB,CAAC,CAAC,kBAAkB,EAAE,CAAA;QACzE,IAAA,kBAAU,EAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;QAEzC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY;aACtC,iBAAiB,CAAC,mBAAmB,EAAE,QAAQ,CAAC;aAChD,iBAAiB,CAAC,oBAAoB,EAAE,SAAS,CAAC;aAClD,iBAAiB,CAAC,oBAAoB,EAAE,SAAS,CAAC;aAClD,eAAe,EAAE,CAAA;QAEpB,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE,OAAY;QACrE,OAAO,MAAM,IAAA,uBAAa,EAAC,qBAAgB,CAAC,CAAC,OAAO,CAAC;YACnD,KAAK,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE;YACxC,SAAS,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC;SACvD,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAEY,QAAA,UAAU,GAAG;IACxB,KAAK,CAAC,OAAO,CAAC,UAAU;QACtB,OAAO,MAAM,IAAA,uBAAa,EAAC,2BAAgB,CAAC,CAAC,IAAI,CAAC;YAChD,UAAU;SACX,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createCommonCode = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const entities_1 = require("../../../entities");
|
|
6
|
-
exports.createCommonCode = {
|
|
7
|
-
async createCommonCode(_, { commonCode }, context) {
|
|
8
|
-
if (commonCode.details && commonCode.details.length) {
|
|
9
|
-
commonCode.details = await (0, typeorm_1.getRepository)(entities_1.CommonCodeDetail).findByIds(commonCode.details);
|
|
10
|
-
}
|
|
11
|
-
return await (0, typeorm_1.getRepository)(entities_1.CommonCode).save(Object.assign({ domain: context.state.domain, creator: context.state.user, updater: context.state.user }, commonCode));
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=create-common-code.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-common-code.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/common-code/create-common-code.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,gDAAgE;AAEnD,QAAA,gBAAgB,GAAG;IAC9B,KAAK,CAAC,gBAAgB,CAAC,CAAM,EAAE,EAAE,UAAU,EAAE,EAAE,OAAY;QACzD,IAAI,UAAU,CAAC,OAAO,IAAI,UAAU,CAAC,OAAO,CAAC,MAAM,EAAE;YACnD,UAAU,CAAC,OAAO,GAAG,MAAM,IAAA,uBAAa,EAAC,2BAAgB,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;SACzF;QAED,OAAO,MAAM,IAAA,uBAAa,EAAC,qBAAU,CAAC,CAAC,IAAI,iBACzC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAC5B,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,EAC3B,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,IACxB,UAAU,EACb,CAAA;IACJ,CAAC;CACF,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteCode = exports.deleteCommonCode = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const entities_1 = require("../../../entities");
|
|
6
|
-
exports.deleteCommonCode = {
|
|
7
|
-
async deleteCommonCode(_, { id }, _context) {
|
|
8
|
-
return await deleteCode(id);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
async function deleteCode(id) {
|
|
12
|
-
await (0, typeorm_1.getRepository)(entities_1.CommonCode).delete(id);
|
|
13
|
-
}
|
|
14
|
-
exports.deleteCode = deleteCode;
|
|
15
|
-
//# sourceMappingURL=delete-common-code.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-common-code.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/common-code/delete-common-code.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,gDAA8C;AAEjC,QAAA,gBAAgB,GAAG;IAC9B,KAAK,CAAC,gBAAgB,CAAC,CAAM,EAAE,EAAE,EAAE,EAAE,EAAE,QAAa;QAClD,OAAO,MAAM,UAAU,CAAC,EAAE,CAAC,CAAA;IAC7B,CAAC;CACF,CAAA;AAEM,KAAK,UAAU,UAAU,CAAC,EAAmB;IAClD,MAAM,IAAA,uBAAa,EAAC,qBAAU,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAC5C,CAAC;AAFD,gCAEC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteCodes = exports.deleteCommonCodes = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const entities_1 = require("../../../entities");
|
|
6
|
-
exports.deleteCommonCodes = {
|
|
7
|
-
async deleteCommonCodes(_, { ids }, _context) {
|
|
8
|
-
return await deleteCodes(ids);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
async function deleteCodes(ids) {
|
|
12
|
-
await (0, typeorm_1.getRepository)(entities_1.CommonCode).delete(ids);
|
|
13
|
-
}
|
|
14
|
-
exports.deleteCodes = deleteCodes;
|
|
15
|
-
//# sourceMappingURL=delete-common-codes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-common-codes.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/common-code/delete-common-codes.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,gDAA8C;AAEjC,QAAA,iBAAiB,GAAG;IAC/B,KAAK,CAAC,iBAAiB,CAAC,CAAM,EAAE,EAAE,GAAG,EAAE,EAAE,QAAa;QACpD,OAAO,MAAM,WAAW,CAAC,GAAG,CAAC,CAAA;IAC/B,CAAC;CACF,CAAA;AAEM,KAAK,UAAU,WAAW,CAAC,GAAwB;IACxD,MAAM,IAAA,uBAAa,EAAC,qBAAU,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;AAC7C,CAAC;AAFD,kCAEC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommonCodeResolver = void 0;
|
|
4
|
-
const common_code_query_1 = require("./common-code-query");
|
|
5
|
-
const create_common_code_1 = require("./create-common-code");
|
|
6
|
-
const delete_common_code_1 = require("./delete-common-code");
|
|
7
|
-
const delete_common_codes_1 = require("./delete-common-codes");
|
|
8
|
-
const update_common_code_1 = require("./update-common-code");
|
|
9
|
-
const update_multiple_common_code_1 = require("./update-multiple-common-code");
|
|
10
|
-
exports.CommonCodeResolver = {
|
|
11
|
-
CommonCode: common_code_query_1.CommonCode,
|
|
12
|
-
Query: common_code_query_1.Query,
|
|
13
|
-
Mutation: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, update_common_code_1.updateCommonCode), create_common_code_1.createCommonCode), delete_common_code_1.deleteCommonCode), delete_common_codes_1.deleteCommonCodes), update_multiple_common_code_1.updateMultipleCommonCodeResolver)
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/common-code/index.ts"],"names":[],"mappings":";;;AAAA,2DAAuD;AACvD,6DAAuD;AACvD,6DAAuD;AACvD,+DAAyD;AACzD,6DAAuD;AACvD,+EAAgF;AAEnE,QAAA,kBAAkB,GAAG;IAChC,UAAU,EAAV,8BAAU;IACV,KAAK,EAAL,yBAAK;IACL,QAAQ,4EACH,qCAAgB,GAChB,qCAAgB,GAChB,qCAAgB,GAChB,uCAAiB,GACjB,8DAAgC,CACpC;CACF,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateCommonCode = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const entities_1 = require("../../../entities");
|
|
6
|
-
exports.updateCommonCode = {
|
|
7
|
-
async updateCommonCode(_, { name, patch }, context) {
|
|
8
|
-
const repository = (0, typeorm_1.getRepository)(entities_1.CommonCode);
|
|
9
|
-
const commonCode = await repository.findOne({
|
|
10
|
-
where: { domain: context.state.domain, name },
|
|
11
|
-
relations: ['details']
|
|
12
|
-
});
|
|
13
|
-
const detailIds = commonCode.details.map(detail => detail.id);
|
|
14
|
-
if (patch.details && patch.detail.length) {
|
|
15
|
-
patch.details.forEach((detailId) => {
|
|
16
|
-
if (!detailIds.includes(detailId)) {
|
|
17
|
-
detailIds.push(detailId);
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
return await repository.save(Object.assign(Object.assign(Object.assign({}, commonCode), patch), { details: await (0, typeorm_1.getRepository)(entities_1.CommonCodeDetail).findByIds(detailIds), updater: context.state.user }));
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=update-common-code.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-common-code.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/common-code/update-common-code.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,gDAAgE;AAEnD,QAAA,gBAAgB,GAAG;IAC9B,KAAK,CAAC,gBAAgB,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,OAAY;QAC1D,MAAM,UAAU,GAAG,IAAA,uBAAa,EAAC,qBAAU,CAAC,CAAA;QAC5C,MAAM,UAAU,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YAC1C,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE;YAC7C,SAAS,EAAE,CAAC,SAAS,CAAC;SACvB,CAAC,CAAA;QAEF,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;QAC7D,IAAI,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE;YACxC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,QAAgB,EAAE,EAAE;gBACzC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;oBACjC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;iBACzB;YACH,CAAC,CAAC,CAAA;SACH;QAED,OAAO,MAAM,UAAU,CAAC,IAAI,+CACvB,UAAU,GACV,KAAK,KACR,OAAO,EAAE,MAAM,IAAA,uBAAa,EAAC,2BAAgB,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,EACnE,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,IAC3B,CAAA;IACJ,CAAC;CACF,CAAA"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateMultipleCommonCode = exports.updateMultipleCommonCodeResolver = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const entities_1 = require("../../../entities");
|
|
6
|
-
exports.updateMultipleCommonCodeResolver = {
|
|
7
|
-
updateMultipleCommonCode
|
|
8
|
-
};
|
|
9
|
-
async function updateMultipleCommonCode(_, { patches }, context) {
|
|
10
|
-
let results = [];
|
|
11
|
-
const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
|
|
12
|
-
const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
|
|
13
|
-
const commonCodeRepo = (0, typeorm_1.getRepository)(entities_1.CommonCode);
|
|
14
|
-
if (_createRecords.length > 0) {
|
|
15
|
-
for (let i = 0; i < _createRecords.length; i++) {
|
|
16
|
-
const newRecord = _createRecords[i];
|
|
17
|
-
const result = await commonCodeRepo.save(Object.assign({ domain: context.state.domain, creator: context.state.user, updater: context.state.user }, newRecord));
|
|
18
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
if (_updateRecords.length > 0) {
|
|
22
|
-
for (let i = 0; i < _updateRecords.length; i++) {
|
|
23
|
-
const newRecord = _updateRecords[i];
|
|
24
|
-
const commonCode = await commonCodeRepo.findOne(newRecord.id);
|
|
25
|
-
const result = await commonCodeRepo.save(Object.assign(Object.assign(Object.assign({}, commonCode), newRecord), { updater: context.state.user }));
|
|
26
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return results;
|
|
30
|
-
}
|
|
31
|
-
exports.updateMultipleCommonCode = updateMultipleCommonCode;
|
|
32
|
-
//# sourceMappingURL=update-multiple-common-code.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-multiple-common-code.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/common-code/update-multiple-common-code.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,gDAA8C;AAEjC,QAAA,gCAAgC,GAAG;IAC9C,wBAAwB;CACzB,CAAA;AAEM,KAAK,UAAU,wBAAwB,CAAC,CAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAY;IAC9E,IAAI,OAAO,GAAG,EAAE,CAAA;IAChB,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;IACzF,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;IACzF,MAAM,cAAc,GAAG,IAAA,uBAAa,EAAC,qBAAU,CAAC,CAAA;IAEhD,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC9C,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA;YAEnC,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,IAAI,iBACtC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAC5B,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,EAC3B,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,IACxB,SAAS,EACZ,CAAA;YAEF,OAAO,CAAC,IAAI,iCAAM,MAAM,KAAE,MAAM,EAAE,GAAG,IAAG,CAAA;SACzC;KACF;IAED,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC9C,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA;YACnC,MAAM,UAAU,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;YAE7D,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,IAAI,+CACnC,UAAU,GACV,SAAS,KACZ,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,IAC3B,CAAA;YAEF,OAAO,CAAC,IAAI,iCAAM,MAAM,KAAE,MAAM,EAAE,GAAG,IAAG,CAAA;SACzC;KACF;IAED,OAAO,OAAO,CAAA;AAChB,CAAC;AArCD,4DAqCC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommonCodeDetail = exports.Query = void 0;
|
|
4
|
-
const shell_1 = require("@things-factory/shell");
|
|
5
|
-
const typeorm_1 = require("typeorm");
|
|
6
|
-
const entities_1 = require("../../../entities");
|
|
7
|
-
exports.Query = {
|
|
8
|
-
async commonCodeDetail(_, { name }, context) {
|
|
9
|
-
return await (0, typeorm_1.getRepository)(entities_1.CommonCodeDetail).findOne({
|
|
10
|
-
where: { domain: context.state.domain, name },
|
|
11
|
-
relations: ['domain', 'creator', 'updater']
|
|
12
|
-
});
|
|
13
|
-
},
|
|
14
|
-
async commonCodeDetails(_, params, context) {
|
|
15
|
-
const queryBuilder = (0, typeorm_1.getRepository)(entities_1.CommonCodeDetail).createQueryBuilder();
|
|
16
|
-
(0, shell_1.buildQuery)(queryBuilder, params, context);
|
|
17
|
-
const [items, total] = await queryBuilder
|
|
18
|
-
.leftJoinAndSelect('CommonCodeDetail.domain', 'Domain')
|
|
19
|
-
.leftJoinAndSelect('CommonCodeDetail.creator', 'Creator')
|
|
20
|
-
.leftJoinAndSelect('CommonCodeDetail.updater', 'Updater')
|
|
21
|
-
.getManyAndCount();
|
|
22
|
-
return { items, total };
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
exports.CommonCodeDetail = {
|
|
26
|
-
async commonCode(commonCodeDetail) {
|
|
27
|
-
return await (0, typeorm_1.getRepository)(entities_1.CommonCode).findOne(commonCodeDetail.commonCodeId);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=common-code-detail-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-code-detail-query.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/common-code-detail/common-code-detail-query.ts"],"names":[],"mappings":";;;AAAA,iDAA6D;AAC7D,qCAAuC;AACvC,gDAA0F;AAE7E,QAAA,KAAK,GAAG;IACnB,KAAK,CAAC,gBAAgB,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,EAAE,OAAY;QACnD,OAAO,MAAM,IAAA,uBAAa,EAAC,2BAAsB,CAAC,CAAC,OAAO,CAAC;YACzD,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE;YAC7C,SAAS,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC;SAC5C,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,CAAM,EAAE,MAAiB,EAAE,OAAY;QAC7D,MAAM,YAAY,GAAG,IAAA,uBAAa,EAAC,2BAAsB,CAAC,CAAC,kBAAkB,EAAE,CAAA;QAC/E,IAAA,kBAAU,EAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;QAEzC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY;aACtC,iBAAiB,CAAC,yBAAyB,EAAE,QAAQ,CAAC;aACtD,iBAAiB,CAAC,0BAA0B,EAAE,SAAS,CAAC;aACxD,iBAAiB,CAAC,0BAA0B,EAAE,SAAS,CAAC;aACxD,eAAe,EAAE,CAAA;QAEpB,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;CACF,CAAA;AAEY,QAAA,gBAAgB,GAAG;IAC9B,KAAK,CAAC,UAAU,CAAC,gBAAgB;QAC/B,OAAO,MAAM,IAAA,uBAAa,EAAC,qBAAU,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAA;IAC/E,CAAC;CACF,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createCommonCodeDetail = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const entities_1 = require("../../../entities");
|
|
6
|
-
exports.createCommonCodeDetail = {
|
|
7
|
-
async createCommonCodeDetail(_, { commonCodeDetail }, context) {
|
|
8
|
-
if (commonCodeDetail && commonCodeDetail.commonCode.id) {
|
|
9
|
-
commonCodeDetail.commonCode = await (0, typeorm_1.getRepository)(entities_1.CommonCode).findOne(commonCodeDetail.commonCode.id);
|
|
10
|
-
}
|
|
11
|
-
return await (0, typeorm_1.getRepository)(entities_1.CommonCodeDetail).save(Object.assign({ domain: context.state.domain, creator: context.state.user, updater: context.state.user }, commonCodeDetail));
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=create-common-code-detail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-common-code-detail.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/common-code-detail/create-common-code-detail.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,gDAAgE;AAEnD,QAAA,sBAAsB,GAAG;IACpC,KAAK,CAAC,sBAAsB,CAAC,CAAM,EAAE,EAAE,gBAAgB,EAAE,EAAE,OAAY;QACrE,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,UAAU,CAAC,EAAE,EAAE;YACtD,gBAAgB,CAAC,UAAU,GAAG,MAAM,IAAA,uBAAa,EAAC,qBAAU,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;SACtG;QAED,OAAO,MAAM,IAAA,uBAAa,EAAC,2BAAgB,CAAC,CAAC,IAAI,iBAC/C,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAC5B,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,EAC3B,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,IACxB,gBAAgB,EACnB,CAAA;IACJ,CAAC;CACF,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteCodeDetail = exports.deleteCommonCodeDetail = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const entities_1 = require("../../../entities");
|
|
6
|
-
exports.deleteCommonCodeDetail = {
|
|
7
|
-
async deleteCommonCodeDetail(_, { id }, _context) {
|
|
8
|
-
return await deleteCodeDetail(id);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
async function deleteCodeDetail(id) {
|
|
12
|
-
await (0, typeorm_1.getRepository)(entities_1.CommonCodeDetail).delete(id);
|
|
13
|
-
}
|
|
14
|
-
exports.deleteCodeDetail = deleteCodeDetail;
|
|
15
|
-
//# sourceMappingURL=delete-common-code-detail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-common-code-detail.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/common-code-detail/delete-common-code-detail.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,gDAAoD;AAEvC,QAAA,sBAAsB,GAAG;IACpC,KAAK,CAAC,sBAAsB,CAAC,CAAM,EAAE,EAAE,EAAE,EAAE,EAAE,QAAa;QACxD,OAAO,MAAM,gBAAgB,CAAC,EAAE,CAAC,CAAA;IACnC,CAAC;CACF,CAAA;AAEM,KAAK,UAAU,gBAAgB,CAAC,EAAmB;IACxD,MAAM,IAAA,uBAAa,EAAC,2BAAgB,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAClD,CAAC;AAFD,4CAEC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteCodeDetails = exports.deleteCommonCodeDetails = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const entities_1 = require("../../../entities");
|
|
6
|
-
exports.deleteCommonCodeDetails = {
|
|
7
|
-
async deleteCommonCodeDetails(_, { ids }, _context) {
|
|
8
|
-
return await deleteCodeDetails(ids);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
async function deleteCodeDetails(ids) {
|
|
12
|
-
await (0, typeorm_1.getRepository)(entities_1.CommonCodeDetail).delete(ids);
|
|
13
|
-
}
|
|
14
|
-
exports.deleteCodeDetails = deleteCodeDetails;
|
|
15
|
-
//# sourceMappingURL=delete-common-code-details.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-common-code-details.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/common-code-detail/delete-common-code-details.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,gDAAoD;AAEvC,QAAA,uBAAuB,GAAG;IACrC,KAAK,CAAC,uBAAuB,CAAC,CAAM,EAAE,EAAE,GAAG,EAAE,EAAE,QAAa;QAC1D,OAAO,MAAM,iBAAiB,CAAC,GAAG,CAAC,CAAA;IACrC,CAAC;CACF,CAAA;AAEM,KAAK,UAAU,iBAAiB,CAAC,GAAwB;IAC9D,MAAM,IAAA,uBAAa,EAAC,2BAAgB,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;AACnD,CAAC;AAFD,8CAEC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommonCodeDetailResolver = void 0;
|
|
4
|
-
const common_code_detail_query_1 = require("./common-code-detail-query");
|
|
5
|
-
const create_common_code_detail_1 = require("./create-common-code-detail");
|
|
6
|
-
const delete_common_code_detail_1 = require("./delete-common-code-detail");
|
|
7
|
-
const delete_common_code_details_1 = require("./delete-common-code-details");
|
|
8
|
-
const update_common_code_detail_1 = require("./update-common-code-detail");
|
|
9
|
-
const update_multiple_common_code_detail_1 = require("./update-multiple-common-code-detail");
|
|
10
|
-
exports.CommonCodeDetailResolver = {
|
|
11
|
-
CommonCodeDetail: common_code_detail_query_1.CommonCodeDetail,
|
|
12
|
-
Query: common_code_detail_query_1.Query,
|
|
13
|
-
Mutation: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, update_common_code_detail_1.updateCommonCodeDetail), create_common_code_detail_1.createCommonCodeDetail), delete_common_code_detail_1.deleteCommonCodeDetail), delete_common_code_details_1.deleteCommonCodeDetails), update_multiple_common_code_detail_1.updateMultipleCommonCodeDetailResolver)
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/common-code-detail/index.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;AACpE,2EAAoE;AACpE,2EAAoE;AACpE,6EAAsE;AACtE,2EAAoE;AACpE,6FAA6F;AAEhF,QAAA,wBAAwB,GAAG;IACtC,gBAAgB,EAAhB,2CAAgB;IAChB,KAAK,EAAL,gCAAK;IACL,QAAQ,4EACH,kDAAsB,GACtB,kDAAsB,GACtB,kDAAsB,GACtB,oDAAuB,GACvB,2EAAsC,CAC1C;CACF,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateCommonCodeDetail = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const entities_1 = require("../../../entities");
|
|
6
|
-
exports.updateCommonCodeDetail = {
|
|
7
|
-
async updateCommonCodeDetail(_, { name, patch }, context) {
|
|
8
|
-
const commonCodeDetail = await (0, typeorm_1.getRepository)(entities_1.CommonCodeDetail).findOne({ domain: context.state.domain, name });
|
|
9
|
-
if (patch.commonCode && patch.commonCode.id) {
|
|
10
|
-
patch.commonCode = await (0, typeorm_1.getRepository)(entities_1.CommonCode).findOne(patch.commonCode.id);
|
|
11
|
-
}
|
|
12
|
-
return await (0, typeorm_1.getRepository)(entities_1.CommonCodeDetail).save(Object.assign(Object.assign(Object.assign({}, commonCodeDetail), patch), { updater: context.state.user }));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=update-common-code-detail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-common-code-detail.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/common-code-detail/update-common-code-detail.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,gDAAgE;AAEnD,QAAA,sBAAsB,GAAG;IACpC,KAAK,CAAC,sBAAsB,CAAC,CAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,OAAY;QAChE,MAAM,gBAAgB,GAAG,MAAM,IAAA,uBAAa,EAAC,2BAAgB,CAAC,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;QAE9G,IAAI,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,CAAC,EAAE,EAAE;YAC3C,KAAK,CAAC,UAAU,GAAG,MAAM,IAAA,uBAAa,EAAC,qBAAU,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;SAChF;QAED,OAAO,MAAM,IAAA,uBAAa,EAAC,2BAAgB,CAAC,CAAC,IAAI,+CAC5C,gBAAgB,GAChB,KAAK,KACR,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,IAC3B,CAAA;IACJ,CAAC;CACF,CAAA"}
|
package/dist-server/graphql/resolvers/common-code-detail/update-multiple-common-code-detail.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateMultipleCommonCodeDetail = exports.updateMultipleCommonCodeDetailResolver = void 0;
|
|
4
|
-
const typeorm_1 = require("typeorm");
|
|
5
|
-
const entities_1 = require("../../../entities");
|
|
6
|
-
exports.updateMultipleCommonCodeDetailResolver = {
|
|
7
|
-
updateMultipleCommonCodeDetail
|
|
8
|
-
};
|
|
9
|
-
async function updateMultipleCommonCodeDetail(_, { patches }, context) {
|
|
10
|
-
let results = [];
|
|
11
|
-
const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
|
|
12
|
-
const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
|
|
13
|
-
const commonCodeDetailRepo = (0, typeorm_1.getRepository)(entities_1.CommonCodeDetail);
|
|
14
|
-
const commonCodeRepo = (0, typeorm_1.getRepository)(entities_1.CommonCode);
|
|
15
|
-
if (_createRecords.length > 0) {
|
|
16
|
-
for (let i = 0; i < _createRecords.length; i++) {
|
|
17
|
-
const newRecord = _createRecords[i];
|
|
18
|
-
if (newRecord.commonCode && newRecord.commonCode.id) {
|
|
19
|
-
newRecord.commonCode = await commonCodeRepo.findOne(newRecord.commonCode.id);
|
|
20
|
-
}
|
|
21
|
-
const result = await commonCodeDetailRepo.save(Object.assign({ domain: context.state.domain, creator: context.state.user, updater: context.state.user }, newRecord));
|
|
22
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (_updateRecords.length > 0) {
|
|
26
|
-
for (let i = 0; i < _updateRecords.length; i++) {
|
|
27
|
-
const newRecord = _updateRecords[i];
|
|
28
|
-
const commonCodeDetail = await commonCodeDetailRepo.findOne(newRecord.id);
|
|
29
|
-
if (newRecord.commonCode && newRecord.commonCode.id) {
|
|
30
|
-
newRecord.commonCode = await commonCodeRepo.findOne(newRecord.commonCode.id);
|
|
31
|
-
}
|
|
32
|
-
const result = await commonCodeDetailRepo.save(Object.assign(Object.assign(Object.assign({}, commonCodeDetail), newRecord), { updater: context.state.user }));
|
|
33
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return results;
|
|
37
|
-
}
|
|
38
|
-
exports.updateMultipleCommonCodeDetail = updateMultipleCommonCodeDetail;
|
|
39
|
-
//# sourceMappingURL=update-multiple-common-code-detail.js.map
|
package/dist-server/graphql/resolvers/common-code-detail/update-multiple-common-code-detail.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-multiple-common-code-detail.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/common-code-detail/update-multiple-common-code-detail.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,gDAAgE;AAEnD,QAAA,sCAAsC,GAAG;IACpD,8BAA8B;CAC/B,CAAA;AAEM,KAAK,UAAU,8BAA8B,CAAC,CAAM,EAAE,EAAE,OAAO,EAAE,EAAE,OAAY;IACpF,IAAI,OAAO,GAAG,EAAE,CAAA;IAChB,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;IACzF,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAA;IACzF,MAAM,oBAAoB,GAAG,IAAA,uBAAa,EAAC,2BAAgB,CAAC,CAAA;IAC5D,MAAM,cAAc,GAAG,IAAA,uBAAa,EAAC,qBAAU,CAAC,CAAA;IAEhD,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC9C,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA;YAEnC,IAAI,SAAS,CAAC,UAAU,IAAI,SAAS,CAAC,UAAU,CAAC,EAAE,EAAE;gBACnD,SAAS,CAAC,UAAU,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;aAC7E;YAED,MAAM,MAAM,GAAG,MAAM,oBAAoB,CAAC,IAAI,iBAC5C,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAC5B,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,EAC3B,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,IACxB,SAAS,EACZ,CAAA;YAEF,OAAO,CAAC,IAAI,iCAAM,MAAM,KAAE,MAAM,EAAE,GAAG,IAAG,CAAA;SACzC;KACF;IAED,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC9C,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA;YACnC,MAAM,gBAAgB,GAAG,MAAM,oBAAoB,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;YAEzE,IAAI,SAAS,CAAC,UAAU,IAAI,SAAS,CAAC,UAAU,CAAC,EAAE,EAAE;gBACnD,SAAS,CAAC,UAAU,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;aAC7E;YAED,MAAM,MAAM,GAAG,MAAM,oBAAoB,CAAC,IAAI,+CACzC,gBAAgB,GAChB,SAAS,KACZ,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,IAC3B,CAAA;YAEF,OAAO,CAAC,IAAI,iCAAM,MAAM,KAAE,MAAM,EAAE,GAAG,IAAG,CAAA;SACzC;KACF;IAED,OAAO,OAAO,CAAA;AAChB,CAAC;AA9CD,wEA8CC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./common-code"), exports);
|
|
18
|
-
__exportStar(require("./common-code-detail"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/graphql/resolvers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,uDAAoC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CommonCodeList = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.CommonCodeList = (0, graphql_tag_1.default) `
|
|
9
|
-
type CommonCodeList {
|
|
10
|
-
items: [CommonCode]
|
|
11
|
-
total: Int
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
//# sourceMappingURL=common-code-list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-code-list.js","sourceRoot":"","sources":["../../../../server/graphql/types/common-code/common-code-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,cAAc,GAAG,IAAA,qBAAG,EAAA;;;;;CAKhC,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CommonCodePatch = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.CommonCodePatch = (0, graphql_tag_1.default) `
|
|
9
|
-
input CommonCodePatch {
|
|
10
|
-
id: String
|
|
11
|
-
name: String
|
|
12
|
-
description: String
|
|
13
|
-
details: [String]
|
|
14
|
-
cuFlag: String
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
17
|
-
//# sourceMappingURL=common-code-patch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-code-patch.js","sourceRoot":"","sources":["../../../../server/graphql/types/common-code/common-code-patch.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,eAAe,GAAG,IAAA,qBAAG,EAAA;;;;;;;;CAQjC,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CommonCode = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.CommonCode = (0, graphql_tag_1.default) `
|
|
9
|
-
type CommonCode {
|
|
10
|
-
id: String
|
|
11
|
-
domain: Domain
|
|
12
|
-
name: String
|
|
13
|
-
description: String
|
|
14
|
-
details: [CommonCodeDetail]
|
|
15
|
-
creator: User
|
|
16
|
-
updater: User
|
|
17
|
-
createdAt: String
|
|
18
|
-
updatedAt: String
|
|
19
|
-
}
|
|
20
|
-
`;
|
|
21
|
-
//# sourceMappingURL=common-code.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-code.js","sourceRoot":"","sources":["../../../../server/graphql/types/common-code/common-code.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,UAAU,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;CAY5B,CAAA"}
|
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.CommonCodeResolver = void 0;
|
|
21
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
22
|
-
__exportStar(require("./common-code"), exports);
|
|
23
|
-
__exportStar(require("./common-code-list"), exports);
|
|
24
|
-
__exportStar(require("./common-code-patch"), exports);
|
|
25
|
-
__exportStar(require("./new-common-code"), exports);
|
|
26
|
-
exports.CommonCodeResolver = (0, graphql_tag_1.default) `
|
|
27
|
-
extend type Mutation {
|
|
28
|
-
createCommonCode(commonCode: NewCommonCode!): CommonCode
|
|
29
|
-
updateCommonCode(name: String!, patch: CommonCodePatch!): CommonCode
|
|
30
|
-
updateMultipleCommonCode(patches: [CommonCodePatch]!): [CommonCode]
|
|
31
|
-
deleteCommonCode(id: String!): Boolean
|
|
32
|
-
deleteCommonCodes(ids: [String]!): Boolean
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
extend type Query {
|
|
36
|
-
commonCodes(filters: [Filter], pagination: Pagination, sortings: [Sorting]): CommonCodeList
|
|
37
|
-
commonCode(name: String!): CommonCode
|
|
38
|
-
partnerCommonCode(name: String!, partnerDomainId: String!): CommonCode
|
|
39
|
-
}
|
|
40
|
-
`;
|
|
41
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/common-code/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAA6B;AAE7B,gDAA6B;AAC7B,qDAAkC;AAClC,sDAAmC;AACnC,oDAAiC;AAEpB,QAAA,kBAAkB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;;CAcpC,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.NewCommonCode = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.NewCommonCode = (0, graphql_tag_1.default) `
|
|
9
|
-
input NewCommonCode {
|
|
10
|
-
name: String!
|
|
11
|
-
description: String
|
|
12
|
-
details: [String]
|
|
13
|
-
}
|
|
14
|
-
`;
|
|
15
|
-
//# sourceMappingURL=new-common-code.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-common-code.js","sourceRoot":"","sources":["../../../../server/graphql/types/common-code/new-common-code.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,aAAa,GAAG,IAAA,qBAAG,EAAA;;;;;;CAM/B,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CommonCodeDetailList = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.CommonCodeDetailList = (0, graphql_tag_1.default) `
|
|
9
|
-
type CommonCodeDetailList {
|
|
10
|
-
items: [CommonCodeDetail]
|
|
11
|
-
total: Int
|
|
12
|
-
}
|
|
13
|
-
`;
|
|
14
|
-
//# sourceMappingURL=common-code-detail-list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-code-detail-list.js","sourceRoot":"","sources":["../../../../server/graphql/types/common-code-detail/common-code-detail-list.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,oBAAoB,GAAG,IAAA,qBAAG,EAAA;;;;;CAKtC,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CommonCodeDetailPatch = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.CommonCodeDetailPatch = (0, graphql_tag_1.default) `
|
|
9
|
-
input CommonCodeDetailPatch {
|
|
10
|
-
id: String
|
|
11
|
-
name: String
|
|
12
|
-
commonCode: ObjectRef
|
|
13
|
-
description: String
|
|
14
|
-
rank: Int
|
|
15
|
-
cuFlag: String
|
|
16
|
-
}
|
|
17
|
-
`;
|
|
18
|
-
//# sourceMappingURL=common-code-detail-patch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-code-detail-patch.js","sourceRoot":"","sources":["../../../../server/graphql/types/common-code-detail/common-code-detail-patch.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,qBAAqB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;CASvC,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CommonCodeDetail = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.CommonCodeDetail = (0, graphql_tag_1.default) `
|
|
9
|
-
type CommonCodeDetail {
|
|
10
|
-
id: String
|
|
11
|
-
domain: Domain
|
|
12
|
-
name: String
|
|
13
|
-
commonCode: CommonCode
|
|
14
|
-
description: String
|
|
15
|
-
rank: Int
|
|
16
|
-
creator: User
|
|
17
|
-
updater: User
|
|
18
|
-
createdAt: String
|
|
19
|
-
updatedAt: String
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
22
|
-
//# sourceMappingURL=common-code-detail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-code-detail.js","sourceRoot":"","sources":["../../../../server/graphql/types/common-code-detail/common-code-detail.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,gBAAgB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;;CAalC,CAAA"}
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.CommonCodeDetailResolver = void 0;
|
|
21
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
22
|
-
__exportStar(require("./common-code-detail"), exports);
|
|
23
|
-
__exportStar(require("./common-code-detail-list"), exports);
|
|
24
|
-
__exportStar(require("./common-code-detail-patch"), exports);
|
|
25
|
-
__exportStar(require("./new-common-code-detail"), exports);
|
|
26
|
-
exports.CommonCodeDetailResolver = (0, graphql_tag_1.default) `
|
|
27
|
-
extend type Mutation {
|
|
28
|
-
createCommonCodeDetail(commonCodeDetail: NewCommonCodeDetail!): CommonCodeDetail
|
|
29
|
-
updateCommonCodeDetail(name: String!, patch: CommonCodeDetailPatch!): CommonCodeDetail
|
|
30
|
-
updateMultipleCommonCodeDetail(patches: [CommonCodeDetailPatch]!): [CommonCodeDetail]
|
|
31
|
-
deleteCommonCodeDetail(id: String!): Boolean
|
|
32
|
-
deleteCommonCodeDetails(ids: [String]!): Boolean
|
|
33
|
-
}
|
|
34
|
-
extend type Query {
|
|
35
|
-
commonCodeDetails(filters: [Filter], pagination: Pagination, sortings: [Sorting]): CommonCodeDetailList
|
|
36
|
-
commonCodeDetail(name: String!): CommonCodeDetail
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../server/graphql/types/common-code-detail/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAA6B;AAE7B,uDAAoC;AACpC,4DAAyC;AACzC,6DAA0C;AAC1C,2DAAwC;AAE3B,QAAA,wBAAwB,GAAG,IAAA,qBAAG,EAAA;;;;;;;;;;;;CAY1C,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.NewCommonCodeDetail = void 0;
|
|
7
|
-
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.NewCommonCodeDetail = (0, graphql_tag_1.default) `
|
|
9
|
-
input NewCommonCodeDetail {
|
|
10
|
-
commonCode: ObjectRef!
|
|
11
|
-
name: String!
|
|
12
|
-
description: String
|
|
13
|
-
rank: Int!
|
|
14
|
-
}
|
|
15
|
-
`;
|
|
16
|
-
//# sourceMappingURL=new-common-code-detail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-common-code-detail.js","sourceRoot":"","sources":["../../../../server/graphql/types/common-code-detail/new-common-code-detail.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA6B;AAEhB,QAAA,mBAAmB,GAAG,IAAA,qBAAG,EAAA;;;;;;;CAOrC,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./common-code"), exports);
|
|
18
|
-
__exportStar(require("./common-code-detail"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/graphql/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,uDAAoC"}
|