@things-factory/biz-base 4.3.595 → 4.3.671
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/index.js +0 -20
- package/dist-server/index.js.map +0 -1
- package/dist-server/middlewares/index.js +0 -1
- package/dist-server/middlewares/index.js.map +0 -1
- package/dist-server/migrations/index.js +0 -12
- package/dist-server/migrations/index.js.map +0 -1
- package/dist-server/service/biz-option/biz-option-mutation.js +0 -80
- package/dist-server/service/biz-option/biz-option-mutation.js.map +0 -1
- package/dist-server/service/biz-option/biz-option-query.js +0 -55
- package/dist-server/service/biz-option/biz-option-query.js.map +0 -1
- package/dist-server/service/biz-option/biz-option-types.js +0 -75
- package/dist-server/service/biz-option/biz-option-types.js.map +0 -1
- package/dist-server/service/biz-option/biz-option.js +0 -86
- package/dist-server/service/biz-option/biz-option.js.map +0 -1
- package/dist-server/service/biz-option/index.js +0 -9
- package/dist-server/service/biz-option/index.js.map +0 -1
- package/dist-server/service/biz-option-detail/biz-option-detail-mutation.js +0 -80
- package/dist-server/service/biz-option-detail/biz-option-detail-mutation.js.map +0 -1
- package/dist-server/service/biz-option-detail/biz-option-detail-query.js +0 -54
- package/dist-server/service/biz-option-detail/biz-option-detail-query.js.map +0 -1
- package/dist-server/service/biz-option-detail/biz-option-detail-types.js +0 -67
- package/dist-server/service/biz-option-detail/biz-option-detail-types.js.map +0 -1
- package/dist-server/service/biz-option-detail/biz-option-detail.js +0 -82
- package/dist-server/service/biz-option-detail/biz-option-detail.js.map +0 -1
- package/dist-server/service/biz-option-detail/index.js +0 -9
- package/dist-server/service/biz-option-detail/index.js.map +0 -1
- package/dist-server/service/bizplace/bizplace-mutation.js +0 -144
- package/dist-server/service/bizplace/bizplace-mutation.js.map +0 -1
- package/dist-server/service/bizplace/bizplace-query.js +0 -284
- package/dist-server/service/bizplace/bizplace-query.js.map +0 -1
- package/dist-server/service/bizplace/bizplace-types.js +0 -189
- package/dist-server/service/bizplace/bizplace-types.js.map +0 -1
- package/dist-server/service/bizplace/bizplace.js +0 -194
- package/dist-server/service/bizplace/bizplace.js.map +0 -1
- package/dist-server/service/bizplace/index.js +0 -9
- package/dist-server/service/bizplace/index.js.map +0 -1
- package/dist-server/service/company/company-mutation.js +0 -141
- package/dist-server/service/company/company-mutation.js.map +0 -1
- package/dist-server/service/company/company-query.js +0 -102
- package/dist-server/service/company/company-query.js.map +0 -1
- package/dist-server/service/company/company-types.js +0 -109
- package/dist-server/service/company/company-types.js.map +0 -1
- package/dist-server/service/company/company.js +0 -135
- package/dist-server/service/company/company.js.map +0 -1
- package/dist-server/service/company/index.js +0 -9
- package/dist-server/service/company/index.js.map +0 -1
- package/dist-server/service/contact-point/contact-point-mutation.js +0 -164
- package/dist-server/service/contact-point/contact-point-mutation.js.map +0 -1
- package/dist-server/service/contact-point/contact-point-query.js +0 -63
- package/dist-server/service/contact-point/contact-point-query.js.map +0 -1
- package/dist-server/service/contact-point/contact-point-types.js +0 -171
- package/dist-server/service/contact-point/contact-point-types.js.map +0 -1
- package/dist-server/service/contact-point/contact-point.js +0 -139
- package/dist-server/service/contact-point/contact-point.js.map +0 -1
- package/dist-server/service/contact-point/index.js +0 -9
- package/dist-server/service/contact-point/index.js.map +0 -1
- package/dist-server/service/index.js +0 -67
- package/dist-server/service/index.js.map +0 -1
- package/dist-server/service/worker/index.js +0 -9
- package/dist-server/service/worker/index.js.map +0 -1
- package/dist-server/service/worker/worker-mutation.js +0 -134
- package/dist-server/service/worker/worker-mutation.js.map +0 -1
- package/dist-server/service/worker/worker-query.js +0 -63
- package/dist-server/service/worker/worker-query.js.map +0 -1
- package/dist-server/service/worker/worker-types.js +0 -83
- package/dist-server/service/worker/worker-types.js.map +0 -1
- package/dist-server/service/worker/worker.js +0 -83
- package/dist-server/service/worker/worker.js.map +0 -1
- package/dist-server/utils/get-permitted-bizplaces.js +0 -285
- package/dist-server/utils/get-permitted-bizplaces.js.map +0 -1
- package/dist-server/utils/index.js +0 -18
- package/dist-server/utils/index.js.map +0 -1
|
@@ -1,171 +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;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.NewContactPoint = exports.ContactPointPatch = exports.ContactPointList = void 0;
|
|
14
|
-
const type_graphql_1 = require("type-graphql");
|
|
15
|
-
const shell_1 = require("@things-factory/shell");
|
|
16
|
-
const contact_point_1 = require("./contact-point");
|
|
17
|
-
let ContactPointList = class ContactPointList {
|
|
18
|
-
};
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, type_graphql_1.Field)(type => [contact_point_1.ContactPoint], { nullable: true }),
|
|
21
|
-
__metadata("design:type", Array)
|
|
22
|
-
], ContactPointList.prototype, "items", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
|
|
25
|
-
__metadata("design:type", Number)
|
|
26
|
-
], ContactPointList.prototype, "total", void 0);
|
|
27
|
-
ContactPointList = __decorate([
|
|
28
|
-
(0, type_graphql_1.ObjectType)()
|
|
29
|
-
], ContactPointList);
|
|
30
|
-
exports.ContactPointList = ContactPointList;
|
|
31
|
-
let ContactPointPatch = class ContactPointPatch {
|
|
32
|
-
};
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], ContactPointPatch.prototype, "id", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
|
|
39
|
-
__metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
|
|
40
|
-
], ContactPointPatch.prototype, "bizplace", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], ContactPointPatch.prototype, "name", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], ContactPointPatch.prototype, "email", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], ContactPointPatch.prototype, "companyName", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], ContactPointPatch.prototype, "accountNo", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], ContactPointPatch.prototype, "address", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], ContactPointPatch.prototype, "address2", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
67
|
-
__metadata("design:type", String)
|
|
68
|
-
], ContactPointPatch.prototype, "city", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], ContactPointPatch.prototype, "state", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
75
|
-
__metadata("design:type", String)
|
|
76
|
-
], ContactPointPatch.prototype, "postCode", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
79
|
-
__metadata("design:type", String)
|
|
80
|
-
], ContactPointPatch.prototype, "billingAddress", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], ContactPointPatch.prototype, "fax", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], ContactPointPatch.prototype, "phone", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
91
|
-
__metadata("design:type", String)
|
|
92
|
-
], ContactPointPatch.prototype, "description", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
95
|
-
__metadata("design:type", String)
|
|
96
|
-
], ContactPointPatch.prototype, "type", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
99
|
-
__metadata("design:type", String)
|
|
100
|
-
], ContactPointPatch.prototype, "cuFlag", void 0);
|
|
101
|
-
ContactPointPatch = __decorate([
|
|
102
|
-
(0, type_graphql_1.InputType)()
|
|
103
|
-
], ContactPointPatch);
|
|
104
|
-
exports.ContactPointPatch = ContactPointPatch;
|
|
105
|
-
let NewContactPoint = class NewContactPoint {
|
|
106
|
-
};
|
|
107
|
-
__decorate([
|
|
108
|
-
(0, type_graphql_1.Field)(type => shell_1.ObjectRef),
|
|
109
|
-
__metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
|
|
110
|
-
], NewContactPoint.prototype, "bizplace", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
(0, type_graphql_1.Field)(),
|
|
113
|
-
__metadata("design:type", String)
|
|
114
|
-
], NewContactPoint.prototype, "name", void 0);
|
|
115
|
-
__decorate([
|
|
116
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
117
|
-
__metadata("design:type", String)
|
|
118
|
-
], NewContactPoint.prototype, "email", void 0);
|
|
119
|
-
__decorate([
|
|
120
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
121
|
-
__metadata("design:type", String)
|
|
122
|
-
], NewContactPoint.prototype, "companyName", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
125
|
-
__metadata("design:type", String)
|
|
126
|
-
], NewContactPoint.prototype, "accountNo", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
129
|
-
__metadata("design:type", String)
|
|
130
|
-
], NewContactPoint.prototype, "address", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
133
|
-
__metadata("design:type", String)
|
|
134
|
-
], NewContactPoint.prototype, "address2", void 0);
|
|
135
|
-
__decorate([
|
|
136
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
137
|
-
__metadata("design:type", String)
|
|
138
|
-
], NewContactPoint.prototype, "city", void 0);
|
|
139
|
-
__decorate([
|
|
140
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
141
|
-
__metadata("design:type", String)
|
|
142
|
-
], NewContactPoint.prototype, "state", void 0);
|
|
143
|
-
__decorate([
|
|
144
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
145
|
-
__metadata("design:type", String)
|
|
146
|
-
], NewContactPoint.prototype, "postCode", void 0);
|
|
147
|
-
__decorate([
|
|
148
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
149
|
-
__metadata("design:type", String)
|
|
150
|
-
], NewContactPoint.prototype, "billingAddress", void 0);
|
|
151
|
-
__decorate([
|
|
152
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
153
|
-
__metadata("design:type", String)
|
|
154
|
-
], NewContactPoint.prototype, "fax", void 0);
|
|
155
|
-
__decorate([
|
|
156
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
157
|
-
__metadata("design:type", String)
|
|
158
|
-
], NewContactPoint.prototype, "phone", void 0);
|
|
159
|
-
__decorate([
|
|
160
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
161
|
-
__metadata("design:type", String)
|
|
162
|
-
], NewContactPoint.prototype, "description", void 0);
|
|
163
|
-
__decorate([
|
|
164
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
165
|
-
__metadata("design:type", String)
|
|
166
|
-
], NewContactPoint.prototype, "type", void 0);
|
|
167
|
-
NewContactPoint = __decorate([
|
|
168
|
-
(0, type_graphql_1.InputType)()
|
|
169
|
-
], NewContactPoint);
|
|
170
|
-
exports.NewContactPoint = NewContactPoint;
|
|
171
|
-
//# sourceMappingURL=contact-point-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contact-point-types.js","sourceRoot":"","sources":["../../../server/service/contact-point/contact-point-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAgE;AAEhE,iDAAiD;AAEjD,mDAA8C;AAGvC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAM5B,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4BAAY,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CAC7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EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACT;AAEjB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACH;AAEvB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACd;AAEZ;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACZ;AAEd;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACN;AAEpB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACb;AA5CF,eAAe;IAD3B,IAAA,wBAAS,GAAE;GACC,eAAe,CA6C3B;AA7CY,0CAAe"}
|
|
@@ -1,139 +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.ContactPoint = void 0;
|
|
14
|
-
const type_graphql_1 = require("type-graphql");
|
|
15
|
-
const typeorm_1 = require("typeorm");
|
|
16
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
17
|
-
const shell_1 = require("@things-factory/shell");
|
|
18
|
-
const bizplace_1 = require("../bizplace/bizplace");
|
|
19
|
-
let ContactPoint = class ContactPoint {
|
|
20
|
-
};
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
23
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], ContactPoint.prototype, "id", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
28
|
-
(0, type_graphql_1.Field)(),
|
|
29
|
-
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
30
|
-
], ContactPoint.prototype, "domain", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, typeorm_1.ManyToOne)(type => bizplace_1.Bizplace),
|
|
33
|
-
(0, type_graphql_1.Field)(type => bizplace_1.Bizplace),
|
|
34
|
-
__metadata("design:type", bizplace_1.Bizplace)
|
|
35
|
-
], ContactPoint.prototype, "bizplace", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)(),
|
|
38
|
-
(0, type_graphql_1.Field)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], ContactPoint.prototype, "name", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
43
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
44
|
-
__metadata("design:type", String)
|
|
45
|
-
], ContactPoint.prototype, "email", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
48
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], ContactPoint.prototype, "address", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
53
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
54
|
-
__metadata("design:type", String)
|
|
55
|
-
], ContactPoint.prototype, "address2", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
58
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], ContactPoint.prototype, "postCode", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
63
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
64
|
-
__metadata("design:type", String)
|
|
65
|
-
], ContactPoint.prototype, "city", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
68
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
69
|
-
__metadata("design:type", String)
|
|
70
|
-
], ContactPoint.prototype, "state", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
73
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
74
|
-
__metadata("design:type", String)
|
|
75
|
-
], ContactPoint.prototype, "billingAddress", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
78
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
79
|
-
__metadata("design:type", String)
|
|
80
|
-
], ContactPoint.prototype, "fax", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
83
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
84
|
-
__metadata("design:type", String)
|
|
85
|
-
], ContactPoint.prototype, "phone", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
88
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
89
|
-
__metadata("design:type", String)
|
|
90
|
-
], ContactPoint.prototype, "companyName", void 0);
|
|
91
|
-
__decorate([
|
|
92
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
93
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
94
|
-
__metadata("design:type", String)
|
|
95
|
-
], ContactPoint.prototype, "accountNo", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
98
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
99
|
-
__metadata("design:type", String)
|
|
100
|
-
], ContactPoint.prototype, "type", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
103
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
104
|
-
__metadata("design:type", String)
|
|
105
|
-
], ContactPoint.prototype, "description", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
108
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
109
|
-
__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
|
|
110
|
-
], ContactPoint.prototype, "creator", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
113
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
114
|
-
__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
115
|
-
], ContactPoint.prototype, "updater", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
118
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
119
|
-
__metadata("design:type", Date)
|
|
120
|
-
], ContactPoint.prototype, "createdAt", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
123
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
124
|
-
__metadata("design:type", Date)
|
|
125
|
-
], ContactPoint.prototype, "updatedAt", void 0);
|
|
126
|
-
ContactPoint = __decorate([
|
|
127
|
-
(0, typeorm_1.Entity)(),
|
|
128
|
-
(0, typeorm_1.Index)('ix_contact_points_0', (contactPoint) => [
|
|
129
|
-
contactPoint.name,
|
|
130
|
-
contactPoint.email,
|
|
131
|
-
contactPoint.companyName,
|
|
132
|
-
contactPoint.address,
|
|
133
|
-
contactPoint.billingAddress,
|
|
134
|
-
contactPoint.accountNo
|
|
135
|
-
], { unique: true }),
|
|
136
|
-
(0, type_graphql_1.ObjectType)()
|
|
137
|
-
], ContactPoint);
|
|
138
|
-
exports.ContactPoint = ContactPoint;
|
|
139
|
-
//# sourceMappingURL=contact-point.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contact-point.js","sourceRoot":"","sources":["../../../server/service/contact-point/contact-point.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAoD;AACpD,qCAAsH;AAEtH,yDAAgD;AAChD,iDAA8C;AAE9C,mDAA+C;AAgBxC,IAAM,YAAY,GAAlB,MAAM,YAAY;CAoFxB,CAAA;AAnFC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;wCACR;AAEV;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,GAAE;kDACA,cAAM,oBAAN,cAAM;4CAAA;AAEd;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAQ,CAAC;IAC3B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAQ,CAAC;8BACd,mBAAQ;8CAAA;AAElB;IAAC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,GAAE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IAAI;+CAAA;AAnFJ,YAAY;IAdxB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EACJ,qBAAqB,EACrB,CAAC,YAA0B,EAAE,EAAE,CAAC;QAC9B,YAAY,CAAC,IAAI;QACjB,YAAY,CAAC,KAAK;QAClB,YAAY,CAAC,WAAW;QACxB,YAAY,CAAC,OAAO;QACpB,YAAY,CAAC,cAAc;QAC3B,YAAY,CAAC,SAAS;KACvB,EACD,EAAE,MAAM,EAAE,IAAI,EAAE,CACjB;IACA,IAAA,yBAAU,GAAE;GACA,YAAY,CAoFxB;AApFY,oCAAY"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolvers = exports.entities = void 0;
|
|
4
|
-
const contact_point_1 = require("./contact-point");
|
|
5
|
-
const contact_point_mutation_1 = require("./contact-point-mutation");
|
|
6
|
-
const contact_point_query_1 = require("./contact-point-query");
|
|
7
|
-
exports.entities = [contact_point_1.ContactPoint];
|
|
8
|
-
exports.resolvers = [contact_point_query_1.ContactPointQuery, contact_point_mutation_1.ContactPointMutation];
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/contact-point/index.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAC9C,qEAA+D;AAC/D,+DAAyD;AAE5C,QAAA,QAAQ,GAAG,CAAC,4BAAY,CAAC,CAAA;AACzB,QAAA,SAAS,GAAG,CAAC,uCAAiB,EAAE,6CAAoB,CAAC,CAAA"}
|
|
@@ -1,67 +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
|
-
exports.updateWorker = exports.deleteWorkers = exports.deleteWorker = exports.createWorker = exports.updateCompany = exports.deleteCompany = exports.deleteCompanies = exports.createCompany = exports.schema = exports.entities = void 0;
|
|
18
|
-
/* IMPORT ENTITIES AND RESOLVERS */
|
|
19
|
-
const biz_option_1 = require("./biz-option");
|
|
20
|
-
const biz_option_detail_1 = require("./biz-option-detail");
|
|
21
|
-
const bizplace_1 = require("./bizplace");
|
|
22
|
-
const company_1 = require("./company");
|
|
23
|
-
const contact_point_1 = require("./contact-point");
|
|
24
|
-
const worker_1 = require("./worker");
|
|
25
|
-
/* EXPORT ENTITY TYPES */
|
|
26
|
-
__exportStar(require("./company/company"), exports);
|
|
27
|
-
__exportStar(require("./bizplace/bizplace"), exports);
|
|
28
|
-
__exportStar(require("./biz-option/biz-option"), exports);
|
|
29
|
-
__exportStar(require("./biz-option-detail/biz-option-detail"), exports);
|
|
30
|
-
__exportStar(require("./contact-point/contact-point"), exports);
|
|
31
|
-
__exportStar(require("./worker/worker"), exports);
|
|
32
|
-
/* EXPORT TYPES */
|
|
33
|
-
__exportStar(require("./company/company-types"), exports);
|
|
34
|
-
__exportStar(require("./bizplace/bizplace-types"), exports);
|
|
35
|
-
__exportStar(require("./biz-option/biz-option-types"), exports);
|
|
36
|
-
__exportStar(require("./biz-option-detail/biz-option-detail-types"), exports);
|
|
37
|
-
__exportStar(require("./contact-point/contact-point-types"), exports);
|
|
38
|
-
__exportStar(require("./worker/worker-types"), exports);
|
|
39
|
-
exports.entities = [
|
|
40
|
-
...company_1.entities,
|
|
41
|
-
...bizplace_1.entities,
|
|
42
|
-
...biz_option_1.entities,
|
|
43
|
-
...biz_option_detail_1.entities,
|
|
44
|
-
...contact_point_1.entities,
|
|
45
|
-
...worker_1.entities
|
|
46
|
-
];
|
|
47
|
-
exports.schema = {
|
|
48
|
-
resolverClasses: [
|
|
49
|
-
...company_1.resolvers,
|
|
50
|
-
...bizplace_1.resolvers,
|
|
51
|
-
...biz_option_1.resolvers,
|
|
52
|
-
...biz_option_detail_1.resolvers,
|
|
53
|
-
...contact_point_1.resolvers,
|
|
54
|
-
...worker_1.resolvers
|
|
55
|
-
]
|
|
56
|
-
};
|
|
57
|
-
var company_mutation_1 = require("./company/company-mutation");
|
|
58
|
-
Object.defineProperty(exports, "createCompany", { enumerable: true, get: function () { return company_mutation_1.createCompany; } });
|
|
59
|
-
Object.defineProperty(exports, "deleteCompanies", { enumerable: true, get: function () { return company_mutation_1.deleteCompanies; } });
|
|
60
|
-
Object.defineProperty(exports, "deleteCompany", { enumerable: true, get: function () { return company_mutation_1.deleteCompany; } });
|
|
61
|
-
Object.defineProperty(exports, "updateCompany", { enumerable: true, get: function () { return company_mutation_1.updateCompany; } });
|
|
62
|
-
var worker_mutation_1 = require("./worker/worker-mutation");
|
|
63
|
-
Object.defineProperty(exports, "createWorker", { enumerable: true, get: function () { return worker_mutation_1.createWorker; } });
|
|
64
|
-
Object.defineProperty(exports, "deleteWorker", { enumerable: true, get: function () { return worker_mutation_1.deleteWorker; } });
|
|
65
|
-
Object.defineProperty(exports, "deleteWorkers", { enumerable: true, get: function () { return worker_mutation_1.deleteWorkers; } });
|
|
66
|
-
Object.defineProperty(exports, "updateWorker", { enumerable: true, get: function () { return worker_mutation_1.updateWorker; } });
|
|
67
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mCAAmC;AACnC,6CAA6F;AAC7F,2DAAgH;AAChH,yCAAyF;AACzF,uCAAsF;AACtF,mDAAsG;AACtG,qCAAmF;AAEnF,yBAAyB;AACzB,oDAAiC;AACjC,sDAAmC;AACnC,0DAAuC;AACvC,wEAAqD;AACrD,gEAA6C;AAC7C,kDAA+B;AAE/B,kBAAkB;AAClB,0DAAuC;AACvC,4DAAyC;AACzC,gEAA6C;AAC7C,8EAA2D;AAC3D,sEAAmD;AACnD,wDAAqC;AAExB,QAAA,QAAQ,GAAG;IACtB,GAAG,kBAAe;IAClB,GAAG,mBAAgB;IACnB,GAAG,qBAAiB;IACpB,GAAG,4BAAuB;IAC1B,GAAG,wBAAoB;IACvB,GAAG,iBAAc;CAClB,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,GAAG,mBAAgB;QACnB,GAAG,oBAAiB;QACpB,GAAG,sBAAkB;QACrB,GAAG,6BAAwB;QAC3B,GAAG,yBAAqB;QACxB,GAAG,kBAAe;KACnB;CACF,CAAA;AAED,+DAAyG;AAAhG,iHAAA,aAAa,OAAA;AAAE,mHAAA,eAAe,OAAA;AAAE,iHAAA,aAAa,OAAA;AAAE,iHAAA,aAAa,OAAA;AACrE,4DAAkG;AAAzF,+GAAA,YAAY,OAAA;AAAE,+GAAA,YAAY,OAAA;AAAE,gHAAA,aAAa,OAAA;AAAE,+GAAA,YAAY,OAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolvers = exports.entities = void 0;
|
|
4
|
-
const worker_1 = require("./worker");
|
|
5
|
-
const worker_mutation_1 = require("./worker-mutation");
|
|
6
|
-
const worker_query_1 = require("./worker-query");
|
|
7
|
-
exports.entities = [worker_1.Worker];
|
|
8
|
-
exports.resolvers = [worker_query_1.WorkerQuery, worker_mutation_1.WorkerMutation];
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/worker/index.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AACjC,uDAAkD;AAClD,iDAA4C;AAE/B,QAAA,QAAQ,GAAG,CAAC,eAAM,CAAC,CAAA;AACnB,QAAA,SAAS,GAAG,CAAC,0BAAW,EAAE,gCAAc,CAAC,CAAA"}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.deleteWorkers = exports.deleteWorker = exports.updateWorker = exports.createWorker = exports.WorkerMutation = void 0;
|
|
16
|
-
const type_graphql_1 = require("type-graphql");
|
|
17
|
-
const typeorm_1 = require("typeorm");
|
|
18
|
-
const utils_1 = require("../../utils");
|
|
19
|
-
const worker_1 = require("./worker");
|
|
20
|
-
const worker_types_1 = require("./worker-types");
|
|
21
|
-
let WorkerMutation = class WorkerMutation {
|
|
22
|
-
async createWorker(worker, context) {
|
|
23
|
-
return await createWorker(worker, context.state.domain, context.state.user);
|
|
24
|
-
}
|
|
25
|
-
async updateWorker(id, patch, context) {
|
|
26
|
-
return await updateWorker(id, patch, context.state.domain, context.state.user);
|
|
27
|
-
}
|
|
28
|
-
async updateMultipleWorker(patches, context) {
|
|
29
|
-
const { tx } = context.state;
|
|
30
|
-
let results = [];
|
|
31
|
-
const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
|
|
32
|
-
const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
|
|
33
|
-
if (_createRecords.length > 0) {
|
|
34
|
-
for (let i = 0; i < _createRecords.length; i++) {
|
|
35
|
-
const patch = _createRecords[i];
|
|
36
|
-
const result = await createWorker(patch, context.state.domain, context.state.user, tx);
|
|
37
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
if (_updateRecords.length > 0) {
|
|
41
|
-
for (let i = 0; i < _updateRecords.length; i++) {
|
|
42
|
-
const patch = _updateRecords[i];
|
|
43
|
-
const result = await updateWorker(patch.id, patch, context.state.domain, context.state.user, tx);
|
|
44
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return results;
|
|
48
|
-
}
|
|
49
|
-
async deleteWorker(id) {
|
|
50
|
-
return deleteWorker(id);
|
|
51
|
-
}
|
|
52
|
-
async deleteWorkers(ids, context) {
|
|
53
|
-
return deleteWorkers({ ids }, context);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, type_graphql_1.Directive)('@privilege(category: "worker", privilege: "mutation")'),
|
|
58
|
-
(0, type_graphql_1.Mutation)(returns => worker_1.Worker),
|
|
59
|
-
__param(0, (0, type_graphql_1.Arg)('worker')),
|
|
60
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
61
|
-
__metadata("design:type", Function),
|
|
62
|
-
__metadata("design:paramtypes", [worker_types_1.NewWorker, Object]),
|
|
63
|
-
__metadata("design:returntype", Promise)
|
|
64
|
-
], WorkerMutation.prototype, "createWorker", null);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, type_graphql_1.Directive)('@privilege(category: "worker", privilege: "mutation")'),
|
|
67
|
-
(0, type_graphql_1.Mutation)(returns => worker_1.Worker),
|
|
68
|
-
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
69
|
-
__param(1, (0, type_graphql_1.Arg)('patch', type => worker_types_1.WorkerPatch)),
|
|
70
|
-
__param(2, (0, type_graphql_1.Ctx)()),
|
|
71
|
-
__metadata("design:type", Function),
|
|
72
|
-
__metadata("design:paramtypes", [String, worker_types_1.WorkerPatch, Object]),
|
|
73
|
-
__metadata("design:returntype", Promise)
|
|
74
|
-
], WorkerMutation.prototype, "updateWorker", null);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, type_graphql_1.Directive)('@privilege(category: "worker", privilege: "mutation")'),
|
|
77
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
78
|
-
(0, type_graphql_1.Mutation)(returns => [worker_1.Worker]),
|
|
79
|
-
__param(0, (0, type_graphql_1.Arg)('patches', type => [worker_types_1.WorkerPatch])),
|
|
80
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
81
|
-
__metadata("design:type", Function),
|
|
82
|
-
__metadata("design:paramtypes", [Array, Object]),
|
|
83
|
-
__metadata("design:returntype", Promise)
|
|
84
|
-
], WorkerMutation.prototype, "updateMultipleWorker", null);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, type_graphql_1.Directive)('@privilege(category: "worker", privilege: "mutation")'),
|
|
87
|
-
(0, type_graphql_1.Mutation)(returns => Boolean),
|
|
88
|
-
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
89
|
-
__metadata("design:type", Function),
|
|
90
|
-
__metadata("design:paramtypes", [String]),
|
|
91
|
-
__metadata("design:returntype", Promise)
|
|
92
|
-
], WorkerMutation.prototype, "deleteWorker", null);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, type_graphql_1.Directive)('@privilege(category: "worker", privilege: "mutation")'),
|
|
95
|
-
(0, type_graphql_1.Mutation)(returns => Boolean),
|
|
96
|
-
__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
97
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
98
|
-
__metadata("design:type", Function),
|
|
99
|
-
__metadata("design:paramtypes", [Array, Object]),
|
|
100
|
-
__metadata("design:returntype", Promise)
|
|
101
|
-
], WorkerMutation.prototype, "deleteWorkers", null);
|
|
102
|
-
WorkerMutation = __decorate([
|
|
103
|
-
(0, type_graphql_1.Resolver)(worker_1.Worker)
|
|
104
|
-
], WorkerMutation);
|
|
105
|
-
exports.WorkerMutation = WorkerMutation;
|
|
106
|
-
async function createWorker(worker, domain, user, trxMgr) {
|
|
107
|
-
const repository = trxMgr ? trxMgr.getRepository(worker_1.Worker) : (0, typeorm_1.getRepository)(worker_1.Worker);
|
|
108
|
-
return await repository.save(Object.assign(Object.assign({}, worker), { domain, bizplace: await (0, utils_1.getMyBizplace)(domain, user), creator: user, updater: user }));
|
|
109
|
-
}
|
|
110
|
-
exports.createWorker = createWorker;
|
|
111
|
-
async function updateWorker(id, patch, domain, user, trxMgr) {
|
|
112
|
-
const repository = trxMgr ? trxMgr.getRepository(worker_1.Worker) : (0, typeorm_1.getRepository)(worker_1.Worker);
|
|
113
|
-
const worker = await repository.findOne({
|
|
114
|
-
domain,
|
|
115
|
-
id
|
|
116
|
-
});
|
|
117
|
-
return repository.save(Object.assign(Object.assign(Object.assign({}, worker), patch), { updater: user }));
|
|
118
|
-
}
|
|
119
|
-
exports.updateWorker = updateWorker;
|
|
120
|
-
async function deleteWorker(id, trxMgr) {
|
|
121
|
-
const repository = trxMgr ? trxMgr.getRepository(worker_1.Worker) : (0, typeorm_1.getRepository)(worker_1.Worker);
|
|
122
|
-
return await repository.delete(id);
|
|
123
|
-
}
|
|
124
|
-
exports.deleteWorker = deleteWorker;
|
|
125
|
-
async function deleteWorkers({ ids }, _context) {
|
|
126
|
-
const { domain } = _context.state;
|
|
127
|
-
await (0, typeorm_1.getRepository)(worker_1.Worker).delete({
|
|
128
|
-
domain,
|
|
129
|
-
id: (0, typeorm_1.In)(ids)
|
|
130
|
-
});
|
|
131
|
-
return true;
|
|
132
|
-
}
|
|
133
|
-
exports.deleteWorkers = deleteWorkers;
|
|
134
|
-
//# sourceMappingURL=worker-mutation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker-mutation.js","sourceRoot":"","sources":["../../../server/service/worker/worker-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAAsE;AAItE,uCAA2C;AAC3C,qCAAiC;AACjC,iDAAuD;AAGhD,IAAM,cAAc,GAApB,MAAM,cAAc;IAGnB,AAAN,KAAK,CAAC,YAAY,CAAgB,MAAiB,EAAS,OAAY;QACtE,OAAO,MAAM,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAC7E,CAAC;IAIK,AAAN,KAAK,CAAC,YAAY,CACL,EAAU,EACc,KAAkB,EAC9C,OAAY;QAEnB,OAAO,MAAM,YAAY,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAChF,CAAC;IAKK,AAAN,KAAK,CAAC,oBAAoB,CACe,OAAsB,EACtD,OAAY;QAEnB,MAAM,EAAE,EAAE,EAAE,GAA0B,OAAO,CAAC,KAAK,CAAA;QAEnD,IAAI,OAAO,GAAG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,CAAC,EAAU,EAAE,MAAsB;IACnE,MAAM,UAAU,GAAuB,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,eAAM,CAAC,CAAC,CAAC,CAAC,IAAA,uBAAa,EAAC,eAAM,CAAC,CAAA;IACpG,OAAO,MAAM,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AACpC,CAAC;AAHD,oCAGC;AAEM,KAAK,UAAU,aAAa,CAAC,EAAE,GAAG,EAAE,EAAE,QAAa;IACxD,MAAM,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAA;IACjC,MAAM,IAAA,uBAAa,EAAC,eAAM,CAAC,CAAC,MAAM,CAAC;QACjC,MAAM;QACN,EAAE,EAAE,IAAA,YAAE,EAAC,GAAG,CAAC;KACZ,CAAC,CAAA;IACF,OAAO,IAAI,CAAA;AACb,CAAC;AAPD,sCAOC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
var _a;
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.WorkerQuery = void 0;
|
|
17
|
-
const type_graphql_1 = require("type-graphql");
|
|
18
|
-
const typeorm_1 = require("typeorm");
|
|
19
|
-
const shell_1 = require("@things-factory/shell");
|
|
20
|
-
const utils_1 = require("../../utils");
|
|
21
|
-
const worker_1 = require("./worker");
|
|
22
|
-
const worker_types_1 = require("./worker-types");
|
|
23
|
-
let WorkerQuery = class WorkerQuery {
|
|
24
|
-
async worker(name, context) {
|
|
25
|
-
return await (0, typeorm_1.getRepository)(worker_1.Worker).findOne({
|
|
26
|
-
where: {
|
|
27
|
-
domain: context.state.domain,
|
|
28
|
-
name,
|
|
29
|
-
bizplace: (0, typeorm_1.In)(await (0, utils_1.getPermittedBizplaceIds)(context.state.domain, context.state.user))
|
|
30
|
-
},
|
|
31
|
-
relations: ['domain', 'bizplace', 'creator', 'updater']
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
async workers(params, context) {
|
|
35
|
-
const convertedParams = (0, shell_1.convertListParams)(params);
|
|
36
|
-
convertedParams.where.bizplace = (0, typeorm_1.In)(await (0, utils_1.getPermittedBizplaceIds)(context.state.domain, context.state.user));
|
|
37
|
-
const [items, total] = await (0, typeorm_1.getRepository)(worker_1.Worker).findAndCount(Object.assign(Object.assign({}, convertedParams), { relations: ['domain', 'bizplace', 'creator', 'updater'] }));
|
|
38
|
-
return { items, total };
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, type_graphql_1.Directive)('@privilege(category: "worker", privilege: "query")'),
|
|
43
|
-
(0, type_graphql_1.Query)(returns => worker_1.Worker),
|
|
44
|
-
__param(0, (0, type_graphql_1.Arg)('name')),
|
|
45
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
46
|
-
__metadata("design:type", Function),
|
|
47
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
48
|
-
__metadata("design:returntype", Promise)
|
|
49
|
-
], WorkerQuery.prototype, "worker", null);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, type_graphql_1.Directive)('@privilege(category: "worker", privilege: "query")'),
|
|
52
|
-
(0, type_graphql_1.Query)(returns => worker_types_1.WorkerList),
|
|
53
|
-
__param(0, (0, type_graphql_1.Args)()),
|
|
54
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
55
|
-
__metadata("design:type", Function),
|
|
56
|
-
__metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
|
|
57
|
-
__metadata("design:returntype", Promise)
|
|
58
|
-
], WorkerQuery.prototype, "workers", null);
|
|
59
|
-
WorkerQuery = __decorate([
|
|
60
|
-
(0, type_graphql_1.Resolver)(worker_1.Worker)
|
|
61
|
-
], WorkerQuery);
|
|
62
|
-
exports.WorkerQuery = WorkerQuery;
|
|
63
|
-
//# sourceMappingURL=worker-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"worker-query.js","sourceRoot":"","sources":["../../../server/service/worker/worker-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAyE;AACzE,qCAA2C;AAE3C,iDAAoE;AAEpE,uCAAqD;AACrD,qCAAiC;AACjC,iDAA2C;AAGpC,IAAM,WAAW,GAAjB,MAAM,WAAW;IAGhB,AAAN,KAAK,CAAC,MAAM,CAAc,IAAY,EAAS,OAAY;QACzD,OAAO,MAAM,IAAA,uBAAa,EAAC,eAAM,CAAC,CAAC,OAAO,CAAC;YACzC,KAAK,EAAE;gBACL,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM;gBAC5B,IAAI;gBACJ,QAAQ,EAAE,IAAA,YAAE,EAAC,MAAM,IAAA,+BAAuB,EAAC,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;aACtF;YACD,SAAS,EAAE,CAAC,QAAQ,EAAE,UAAU,EAAE,SA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