@things-factory/sales-base 6.0.1 → 6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -12
- package/dist-server/service/order-package/index.js +0 -9
- package/dist-server/service/order-package/index.js.map +0 -1
- package/dist-server/service/order-package/order-package-mutation.js +0 -120
- package/dist-server/service/order-package/order-package-mutation.js.map +0 -1
- package/dist-server/service/order-package/order-package-query.js +0 -119
- package/dist-server/service/order-package/order-package-query.js.map +0 -1
- package/dist-server/service/order-package/order-package-types.js +0 -105
- package/dist-server/service/order-package/order-package-types.js.map +0 -1
- package/dist-server/service/order-package/order-package.js +0 -171
- package/dist-server/service/order-package/order-package.js.map +0 -1
- package/dist-server/service/order-package-item/index.js +0 -9
- package/dist-server/service/order-package-item/index.js.map +0 -1
- package/dist-server/service/order-package-item/order-package-item-mutation.js +0 -120
- package/dist-server/service/order-package-item/order-package-item-mutation.js.map +0 -1
- package/dist-server/service/order-package-item/order-package-item-query.js +0 -126
- package/dist-server/service/order-package-item/order-package-item-query.js.map +0 -1
- package/dist-server/service/order-package-item/order-package-item-types.js +0 -87
- package/dist-server/service/order-package-item/order-package-item-types.js.map +0 -1
- package/dist-server/service/order-package-item/order-package-item.js +0 -123
- package/dist-server/service/order-package-item/order-package-item.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/sales-base",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.3",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@things-factory/attachment-base": "^6.0.
|
|
27
|
-
"@things-factory/auth-base": "^6.0.
|
|
28
|
-
"@things-factory/biz-base": "^6.0.
|
|
29
|
-
"@things-factory/code-base": "^6.0.
|
|
30
|
-
"@things-factory/integration-sftp": "^6.0.
|
|
31
|
-
"@things-factory/notification": "^6.0.
|
|
32
|
-
"@things-factory/product-base": "^6.0.
|
|
33
|
-
"@things-factory/setting-base": "^6.0.
|
|
26
|
+
"@things-factory/attachment-base": "^6.0.3",
|
|
27
|
+
"@things-factory/auth-base": "^6.0.3",
|
|
28
|
+
"@things-factory/biz-base": "^6.0.3",
|
|
29
|
+
"@things-factory/code-base": "^6.0.3",
|
|
30
|
+
"@things-factory/integration-sftp": "^6.0.3",
|
|
31
|
+
"@things-factory/notification": "^6.0.3",
|
|
32
|
+
"@things-factory/product-base": "^6.0.3",
|
|
33
|
+
"@things-factory/setting-base": "^6.0.3",
|
|
34
34
|
"@things-factory/shell": "^6.0.1",
|
|
35
|
-
"@things-factory/transport-base": "^6.0.
|
|
36
|
-
"@things-factory/warehouse-base": "^6.0.
|
|
35
|
+
"@things-factory/transport-base": "^6.0.3",
|
|
36
|
+
"@things-factory/warehouse-base": "^6.0.3"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "6d9a3aef103e6d8293bfce285662d15ec9c0d705"
|
|
39
39
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolvers = exports.entities = void 0;
|
|
4
|
-
const order_package_1 = require("./order-package");
|
|
5
|
-
const order_package_query_1 = require("./order-package-query");
|
|
6
|
-
const order_package_mutation_1 = require("./order-package-mutation");
|
|
7
|
-
exports.entities = [order_package_1.OrderPackage];
|
|
8
|
-
exports.resolvers = [order_package_query_1.OrderPackageQuery, order_package_mutation_1.OrderPackageMutation];
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/order-package/index.ts"],"names":[],"mappings":";;;AAAA,mDAA8C;AAC9C,+DAAyD;AACzD,qEAA+D;AAElD,QAAA,QAAQ,GAAG,CAAC,4BAAY,CAAC,CAAA;AACzB,QAAA,SAAS,GAAG,CAAC,uCAAiB,EAAE,6CAAoB,CAAC,CAAA"}
|
|
@@ -1,120 +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.OrderPackageMutation = void 0;
|
|
16
|
-
const type_graphql_1 = require("type-graphql");
|
|
17
|
-
const typeorm_1 = require("typeorm");
|
|
18
|
-
const order_package_1 = require("./order-package");
|
|
19
|
-
const order_package_types_1 = require("./order-package-types");
|
|
20
|
-
let OrderPackageMutation = class OrderPackageMutation {
|
|
21
|
-
async createOrderPackage(orderPackage, context) {
|
|
22
|
-
const { domain, user, tx } = context.state;
|
|
23
|
-
return await tx.getRepository(order_package_1.OrderPackage).save(Object.assign(Object.assign({}, orderPackage), { domain, creator: user, updater: user }));
|
|
24
|
-
}
|
|
25
|
-
async updateOrderPackage(id, patch, context) {
|
|
26
|
-
const { domain, user, tx } = context.state;
|
|
27
|
-
const repository = tx.getRepository(order_package_1.OrderPackage);
|
|
28
|
-
const orderPackage = await repository.findOne({
|
|
29
|
-
where: { domain, id }
|
|
30
|
-
});
|
|
31
|
-
return await repository.save(Object.assign(Object.assign(Object.assign({}, orderPackage), patch), { updater: user }));
|
|
32
|
-
}
|
|
33
|
-
async updateMultipleOrderPackage(patches, context) {
|
|
34
|
-
const { domain, user, tx } = context.state;
|
|
35
|
-
let results = [];
|
|
36
|
-
const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
|
|
37
|
-
const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
|
|
38
|
-
const orderPackageRepo = tx.getRepository(order_package_1.OrderPackage);
|
|
39
|
-
if (_createRecords.length > 0) {
|
|
40
|
-
for (let i = 0; i < _createRecords.length; i++) {
|
|
41
|
-
const newRecord = _createRecords[i];
|
|
42
|
-
const result = await orderPackageRepo.save(Object.assign(Object.assign({}, newRecord), { domain, creator: user, updater: user }));
|
|
43
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
if (_updateRecords.length > 0) {
|
|
47
|
-
for (let i = 0; i < _updateRecords.length; i++) {
|
|
48
|
-
const newRecord = _updateRecords[i];
|
|
49
|
-
const orderPackage = await orderPackageRepo.findOne(newRecord.id);
|
|
50
|
-
const result = await orderPackageRepo.save(Object.assign(Object.assign(Object.assign({}, orderPackage), newRecord), { updater: user }));
|
|
51
|
-
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return results;
|
|
55
|
-
}
|
|
56
|
-
async deleteOrderPackage(id, context) {
|
|
57
|
-
const { domain, tx } = context.state;
|
|
58
|
-
await tx.getRepository(order_package_1.OrderPackage).delete({ domain, id });
|
|
59
|
-
return true;
|
|
60
|
-
}
|
|
61
|
-
async deleteOrderPackages(ids, context) {
|
|
62
|
-
const { domain, tx } = context.state;
|
|
63
|
-
await tx.getRepository(order_package_1.OrderPackage).delete({
|
|
64
|
-
domain,
|
|
65
|
-
id: (0, typeorm_1.In)(ids)
|
|
66
|
-
});
|
|
67
|
-
return true;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
72
|
-
(0, type_graphql_1.Mutation)(returns => order_package_1.OrderPackage, { description: 'To create new OrderPackage' }),
|
|
73
|
-
__param(0, (0, type_graphql_1.Arg)('orderPackage')),
|
|
74
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
75
|
-
__metadata("design:type", Function),
|
|
76
|
-
__metadata("design:paramtypes", [order_package_types_1.NewOrderPackage, Object]),
|
|
77
|
-
__metadata("design:returntype", Promise)
|
|
78
|
-
], OrderPackageMutation.prototype, "createOrderPackage", null);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
81
|
-
(0, type_graphql_1.Mutation)(returns => order_package_1.OrderPackage, { description: 'To modify OrderPackage information' }),
|
|
82
|
-
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
83
|
-
__param(1, (0, type_graphql_1.Arg)('patch')),
|
|
84
|
-
__param(2, (0, type_graphql_1.Ctx)()),
|
|
85
|
-
__metadata("design:type", Function),
|
|
86
|
-
__metadata("design:paramtypes", [String, order_package_types_1.OrderPackagePatch, Object]),
|
|
87
|
-
__metadata("design:returntype", Promise)
|
|
88
|
-
], OrderPackageMutation.prototype, "updateOrderPackage", null);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
91
|
-
(0, type_graphql_1.Mutation)(returns => [order_package_1.OrderPackage], { description: "To modify multiple OrderPackages' information" }),
|
|
92
|
-
__param(0, (0, type_graphql_1.Arg)('patches', type => [order_package_types_1.OrderPackagePatch])),
|
|
93
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
94
|
-
__metadata("design:type", Function),
|
|
95
|
-
__metadata("design:paramtypes", [Array, Object]),
|
|
96
|
-
__metadata("design:returntype", Promise)
|
|
97
|
-
], OrderPackageMutation.prototype, "updateMultipleOrderPackage", null);
|
|
98
|
-
__decorate([
|
|
99
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
100
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete OrderPackage' }),
|
|
101
|
-
__param(0, (0, type_graphql_1.Arg)('id')),
|
|
102
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
103
|
-
__metadata("design:type", Function),
|
|
104
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
105
|
-
__metadata("design:returntype", Promise)
|
|
106
|
-
], OrderPackageMutation.prototype, "deleteOrderPackage", null);
|
|
107
|
-
__decorate([
|
|
108
|
-
(0, type_graphql_1.Directive)('@transaction'),
|
|
109
|
-
(0, type_graphql_1.Mutation)(returns => Boolean, { description: 'To delete multiple orderPackages' }),
|
|
110
|
-
__param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
|
|
111
|
-
__param(1, (0, type_graphql_1.Ctx)()),
|
|
112
|
-
__metadata("design:type", Function),
|
|
113
|
-
__metadata("design:paramtypes", [Array, Object]),
|
|
114
|
-
__metadata("design:returntype", Promise)
|
|
115
|
-
], OrderPackageMutation.prototype, "deleteOrderPackages", null);
|
|
116
|
-
OrderPackageMutation = __decorate([
|
|
117
|
-
(0, type_graphql_1.Resolver)(order_package_1.OrderPackage)
|
|
118
|
-
], OrderPackageMutation);
|
|
119
|
-
exports.OrderPackageMutation = OrderPackageMutation;
|
|
120
|
-
//# sourceMappingURL=order-package-mutation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"order-package-mutation.js","sourceRoot":"","sources":["../../../server/service/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E,CAAC;IAEnG,WAAA,IAAA,kBAAG,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,uCAAiB,CAAC,CAAC,CAAA;IAC3C,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;sEAwCP;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IAC9C,WAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;8DAKrD;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IACvD,WAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAAiB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;+DAS5E;AAxGU,oBAAoB;IADhC,IAAA,uBAAQ,EAAC,4BAAY,CAAC;GACV,oBAAoB,CAyGhC;AAzGY,oDAAoB"}
|
|
@@ -1,119 +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.OrderPackageQuery = void 0;
|
|
17
|
-
const type_graphql_1 = require("type-graphql");
|
|
18
|
-
const typeorm_1 = require("typeorm");
|
|
19
|
-
const auth_base_1 = require("@things-factory/auth-base");
|
|
20
|
-
const biz_base_1 = require("@things-factory/biz-base");
|
|
21
|
-
const shell_1 = require("@things-factory/shell");
|
|
22
|
-
const order_package_1 = require("./order-package");
|
|
23
|
-
const order_package_types_1 = require("./order-package-types");
|
|
24
|
-
let OrderPackageQuery = class OrderPackageQuery {
|
|
25
|
-
async orderPackage(context, id, trackingNo) {
|
|
26
|
-
const { domain, user } = context.state;
|
|
27
|
-
if (id) {
|
|
28
|
-
return await (0, typeorm_1.getRepository)(order_package_1.OrderPackage).findOne({
|
|
29
|
-
where: { domain, id }
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
else if (trackingNo) {
|
|
33
|
-
let orderPackage = await (0, typeorm_1.getRepository)(order_package_1.OrderPackage).findOne({
|
|
34
|
-
where: {
|
|
35
|
-
domain,
|
|
36
|
-
trackingNo,
|
|
37
|
-
bizplace: (0, typeorm_1.In)(await (0, biz_base_1.getPermittedBizplaceIds)(domain, user))
|
|
38
|
-
},
|
|
39
|
-
relations: ['bizplace', 'releaseGood']
|
|
40
|
-
});
|
|
41
|
-
if (!orderPackage) {
|
|
42
|
-
throw new Error('Tracking No not found in any orders');
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return orderPackage;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
async orderPackages(context, filters, pagination, sortings) {
|
|
50
|
-
const { domain } = context.state;
|
|
51
|
-
const bizplaceIdParam = filters.find(item => item.name === 'bizplaceId');
|
|
52
|
-
const releaseGoodIdParam = filters.find(item => item.name === 'releaseGoodId');
|
|
53
|
-
let qb = (0, typeorm_1.getRepository)(order_package_1.OrderPackage)
|
|
54
|
-
.createQueryBuilder('opk')
|
|
55
|
-
.where('opk.domain_id = :domainId', { domainId: domain.id });
|
|
56
|
-
if (bizplaceIdParam) {
|
|
57
|
-
qb.andWhere('opk.bizplace_id = :bizplaceId', { bizplaceId: bizplaceIdParam.value });
|
|
58
|
-
}
|
|
59
|
-
if (releaseGoodIdParam) {
|
|
60
|
-
qb.andWhere('opk.release_good_id = :releaseGoodId', { releaseGoodId: releaseGoodIdParam.value });
|
|
61
|
-
}
|
|
62
|
-
let [items, total] = await qb.getManyAndCount();
|
|
63
|
-
return { items, total };
|
|
64
|
-
}
|
|
65
|
-
async domain(orderPackage) {
|
|
66
|
-
return await (0, typeorm_1.getRepository)(shell_1.Domain).findOne(orderPackage.domainId);
|
|
67
|
-
}
|
|
68
|
-
async updater(orderPackage) {
|
|
69
|
-
return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(orderPackage.updaterId);
|
|
70
|
-
}
|
|
71
|
-
async creator(orderPackage) {
|
|
72
|
-
return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(orderPackage.creatorId);
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, type_graphql_1.Query)(returns => order_package_1.OrderPackage, { description: 'To fetch a OrderPackage' }),
|
|
77
|
-
__param(0, (0, type_graphql_1.Ctx)()),
|
|
78
|
-
__param(1, (0, type_graphql_1.Arg)('id', { nullable: true })),
|
|
79
|
-
__param(2, (0, type_graphql_1.Arg)('trackingNo', { nullable: true })),
|
|
80
|
-
__metadata("design:type", Function),
|
|
81
|
-
__metadata("design:paramtypes", [Object, String, String]),
|
|
82
|
-
__metadata("design:returntype", Promise)
|
|
83
|
-
], OrderPackageQuery.prototype, "orderPackage", null);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, type_graphql_1.Query)(returns => order_package_types_1.OrderPackageList, { description: 'To fetch multiple OrderPackages' }),
|
|
86
|
-
__param(0, (0, type_graphql_1.Ctx)()),
|
|
87
|
-
__param(1, (0, type_graphql_1.Arg)('filters', type => [shell_1.Filter], { nullable: true })),
|
|
88
|
-
__param(2, (0, type_graphql_1.Arg)('pagination', type => shell_1.Pagination, { nullable: true })),
|
|
89
|
-
__param(3, (0, type_graphql_1.Arg)('sortings', type => [shell_1.Sorting], { nullable: true })),
|
|
90
|
-
__metadata("design:type", Function),
|
|
91
|
-
__metadata("design:paramtypes", [Object, Array, typeof (_a = typeof shell_1.Pagination !== "undefined" && shell_1.Pagination) === "function" ? _a : Object, Array]),
|
|
92
|
-
__metadata("design:returntype", Promise)
|
|
93
|
-
], OrderPackageQuery.prototype, "orderPackages", null);
|
|
94
|
-
__decorate([
|
|
95
|
-
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
96
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
97
|
-
__metadata("design:type", Function),
|
|
98
|
-
__metadata("design:paramtypes", [order_package_1.OrderPackage]),
|
|
99
|
-
__metadata("design:returntype", Promise)
|
|
100
|
-
], OrderPackageQuery.prototype, "domain", null);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
103
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
104
|
-
__metadata("design:type", Function),
|
|
105
|
-
__metadata("design:paramtypes", [order_package_1.OrderPackage]),
|
|
106
|
-
__metadata("design:returntype", Promise)
|
|
107
|
-
], OrderPackageQuery.prototype, "updater", null);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
110
|
-
__param(0, (0, type_graphql_1.Root)()),
|
|
111
|
-
__metadata("design:type", Function),
|
|
112
|
-
__metadata("design:paramtypes", [order_package_1.OrderPackage]),
|
|
113
|
-
__metadata("design:returntype", Promise)
|
|
114
|
-
], OrderPackageQuery.prototype, "creator", null);
|
|
115
|
-
OrderPackageQuery = __decorate([
|
|
116
|
-
(0, type_graphql_1.Resolver)(order_package_1.OrderPackage)
|
|
117
|
-
], OrderPackageQuery);
|
|
118
|
-
exports.OrderPackageQuery = OrderPackageQuery;
|
|
119
|
-
//# sourceMappingURL=order-package-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"order-package-query.js","sourceRoot":"","sources":["../../../server/service/order-package/order-package-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6E;AAC7E,qCAA2C;AAE3C,yDAAgD;AAChD,uDAAkE;AAClE,iDAA2E;AAE3E,mDAA8C;AAC9C,+DAAwD;AAGjD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAEtB,AAAN,KAAK,CAAC,YAAY,CACT,OAAY,EACY,EAAU,EACF,UAAkB;QAEzD,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEtC,IAAI,EAAE,EAAE;YACN,OAAO,MAAM,IAAA,uBAAa,EAAC,4BAAY,CAAC,CAAC,OAAO,CAAC;gBAC/C,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;aACtB,CAAC,CAAA;SACH;aAAM,IAAI,UAAU,EAAE;YACrB,IAAI,YAAY,GAAG,MAAM,IAAA,uBAAa,EAAC,4BAAY,CAAC,CAAC,OAAO,CAAC;gBAC3D,KAAK,EAAE;oBACL,MAAM;oBACN,UAAU;oBACV,QAAQ,EAAE,IAAA,YAAE,EAAC,MAAM,IAAA,kCAAuB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAC;iBAC1D;gBACD,SAAS,EAAE,CAAC,UAAU,EAAE,aAAa,CAAC;aACvC,CAAC,CAAA;YAEF,IAAI,CAAC,YAAY,EAAE;gBACjB,MAAM,IA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a,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IAChB,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAe,4BAAY;;+CAE9C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAe,4BAAY;;gDAE/C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAe,4BAAY;;gDAE/C;AAzEU,iBAAiB;IAD7B,IAAA,uBAAQ,EAAC,4BAAY,CAAC;GACV,iBAAiB,CA0E7B;AA1EY,8CAAiB"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.OrderPackageList = exports.OrderPackagePatch = exports.NewOrderPackage = void 0;
|
|
13
|
-
const type_graphql_1 = require("type-graphql");
|
|
14
|
-
const order_package_1 = require("./order-package");
|
|
15
|
-
let NewOrderPackage = class NewOrderPackage {
|
|
16
|
-
};
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, type_graphql_1.Field)(),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], NewOrderPackage.prototype, "name", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], NewOrderPackage.prototype, "packageId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], NewOrderPackage.prototype, "transporter", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], NewOrderPackage.prototype, "trackingNo", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], NewOrderPackage.prototype, "airwayBill", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], NewOrderPackage.prototype, "invoice", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], NewOrderPackage.prototype, "status", void 0);
|
|
45
|
-
NewOrderPackage = __decorate([
|
|
46
|
-
(0, type_graphql_1.InputType)()
|
|
47
|
-
], NewOrderPackage);
|
|
48
|
-
exports.NewOrderPackage = NewOrderPackage;
|
|
49
|
-
let OrderPackagePatch = class OrderPackagePatch {
|
|
50
|
-
};
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], OrderPackagePatch.prototype, "id", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], OrderPackagePatch.prototype, "name", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], OrderPackagePatch.prototype, "packageId", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
65
|
-
__metadata("design:type", String)
|
|
66
|
-
], OrderPackagePatch.prototype, "transporter", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
69
|
-
__metadata("design:type", String)
|
|
70
|
-
], OrderPackagePatch.prototype, "trackingNo", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], OrderPackagePatch.prototype, "airwayBill", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
77
|
-
__metadata("design:type", String)
|
|
78
|
-
], OrderPackagePatch.prototype, "invoice", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
81
|
-
__metadata("design:type", String)
|
|
82
|
-
], OrderPackagePatch.prototype, "status", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, type_graphql_1.Field)(),
|
|
85
|
-
__metadata("design:type", String)
|
|
86
|
-
], OrderPackagePatch.prototype, "cuFlag", void 0);
|
|
87
|
-
OrderPackagePatch = __decorate([
|
|
88
|
-
(0, type_graphql_1.InputType)()
|
|
89
|
-
], OrderPackagePatch);
|
|
90
|
-
exports.OrderPackagePatch = OrderPackagePatch;
|
|
91
|
-
let OrderPackageList = class OrderPackageList {
|
|
92
|
-
};
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, type_graphql_1.Field)(type => [order_package_1.OrderPackage]),
|
|
95
|
-
__metadata("design:type", Array)
|
|
96
|
-
], OrderPackageList.prototype, "items", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
99
|
-
__metadata("design:type", Number)
|
|
100
|
-
], OrderPackageList.prototype, "total", void 0);
|
|
101
|
-
OrderPackageList = __decorate([
|
|
102
|
-
(0, type_graphql_1.ObjectType)()
|
|
103
|
-
], OrderPackageList);
|
|
104
|
-
exports.OrderPackageList = OrderPackageList;
|
|
105
|
-
//# sourceMappingURL=order-package-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"order-package-types.js","sourceRoot":"","sources":["../../../server/service/order-package/order-package-types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAoE;AAEpE,mDAA8C;AAGvC,IAAM,eAAe,GAArB,MAAM,eAAe;CAqB3B,CAAA;AApBC;IAAC,IAAA,oBAAK,GAAE;;6CACI;AAEZ;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACT;AAEjB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACP;AAEnB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACR;AAElB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACR;AAElB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACX;AAEf;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACX;AApBJ,eAAe;IAD3B,IAAA,wBAAS,GAAE;GACC,eAAe,CAqB3B;AArBY,0CAAe;AAwBrB,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CA2B7B,CAAA;AA1BC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC3B;AAEX;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACb;AAEb;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACT;AAEjB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACP;AAEnB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACR;AAElB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACR;AAElB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACX;AAEf;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACX;AAEf;IAAC,IAAA,oBAAK,GAAE;;iDACM;AA1BH,iBAAiB;IAD7B,IAAA,wBAAS,GAAE;GACC,iBAAiB,CA2B7B;AA3BY,8CAAiB;AA8BvB,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAM5B,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,4BAAY,CAAC,CAAC;;+CACT;AAErB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;+CACN;AALF,gBAAgB;IAD5B,IAAA,yBAAU,GAAE;GACA,gBAAgB,CAM5B;AANY,4CAAgB"}
|
|
@@ -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, _c, _d, _e;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.OrderPackage = 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 biz_base_1 = require("@things-factory/biz-base");
|
|
18
|
-
const env_1 = require("@things-factory/env");
|
|
19
|
-
const shell_1 = require("@things-factory/shell");
|
|
20
|
-
const __1 = require("../");
|
|
21
|
-
const release_good_1 = require("../release-good/release-good");
|
|
22
|
-
const ORMCONFIG = env_1.config.get('ormconfig', {});
|
|
23
|
-
const DATABASE_TYPE = ORMCONFIG.type;
|
|
24
|
-
let OrderPackage = class OrderPackage {
|
|
25
|
-
};
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
28
|
-
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], OrderPackage.prototype, "id", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
33
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
34
|
-
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
35
|
-
], OrderPackage.prototype, "domain", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.RelationId)((orderPackage) => orderPackage.domain),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], OrderPackage.prototype, "domainId", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.ManyToOne)(type => biz_base_1.Bizplace),
|
|
42
|
-
(0, type_graphql_1.Field)(type => biz_base_1.Bizplace, { nullable: true }),
|
|
43
|
-
__metadata("design:type", typeof (_b = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _b : Object)
|
|
44
|
-
], OrderPackage.prototype, "bizplace", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.RelationId)((orderPackage) => orderPackage.bizplace),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], OrderPackage.prototype, "bizplaceId", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.ManyToOne)(type => __1.ReleaseGood),
|
|
51
|
-
(0, type_graphql_1.Field)(type => __1.ReleaseGood, { nullable: true }),
|
|
52
|
-
__metadata("design:type", __1.ReleaseGood)
|
|
53
|
-
], OrderPackage.prototype, "releaseGood", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, typeorm_1.ManyToOne)(type => __1.Manifest),
|
|
56
|
-
(0, type_graphql_1.Field)(type => __1.Manifest, { nullable: true }),
|
|
57
|
-
__metadata("design:type", __1.Manifest)
|
|
58
|
-
], OrderPackage.prototype, "manifest", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, typeorm_1.OneToMany)(type => __1.OrderPackageItem, orderPackageItem => orderPackageItem.orderPackage),
|
|
61
|
-
(0, type_graphql_1.Field)(type => [__1.OrderPackageItem], { nullable: true }),
|
|
62
|
-
__metadata("design:type", Array)
|
|
63
|
-
], OrderPackage.prototype, "orderPackageItems", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)(),
|
|
66
|
-
(0, type_graphql_1.Field)(),
|
|
67
|
-
__metadata("design:type", String)
|
|
68
|
-
], OrderPackage.prototype, "name", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
71
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
72
|
-
__metadata("design:type", String)
|
|
73
|
-
], OrderPackage.prototype, "packageId", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
76
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
77
|
-
__metadata("design:type", String)
|
|
78
|
-
], OrderPackage.prototype, "transporter", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
81
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
82
|
-
__metadata("design:type", String)
|
|
83
|
-
], OrderPackage.prototype, "trackingNo", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
86
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], OrderPackage.prototype, "airwayBill", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
91
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
92
|
-
__metadata("design:type", String)
|
|
93
|
-
], OrderPackage.prototype, "invoice", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
96
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
97
|
-
__metadata("design:type", Date)
|
|
98
|
-
], OrderPackage.prototype, "manifestedAt", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User),
|
|
101
|
-
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
102
|
-
__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
103
|
-
], OrderPackage.prototype, "manifestedBy", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
(0, typeorm_1.RelationId)((orderPackage) => orderPackage.manifestedBy),
|
|
106
|
-
__metadata("design:type", String)
|
|
107
|
-
], OrderPackage.prototype, "manifestedById", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
110
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
111
|
-
__metadata("design:type", String)
|
|
112
|
-
], OrderPackage.prototype, "status", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, typeorm_1.Column)({
|
|
115
|
-
type: DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
|
116
|
-
? 'enum'
|
|
117
|
-
: DATABASE_TYPE == 'oracle'
|
|
118
|
-
? 'varchar2'
|
|
119
|
-
: 'smallint',
|
|
120
|
-
enum: release_good_1.DispatchmentStatus,
|
|
121
|
-
default: release_good_1.DispatchmentStatus.READY_TO_DISPATCH
|
|
122
|
-
}),
|
|
123
|
-
__metadata("design:type", String)
|
|
124
|
-
], OrderPackage.prototype, "dispatchmentStatus", void 0);
|
|
125
|
-
__decorate([
|
|
126
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
127
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
128
|
-
__metadata("design:type", Date)
|
|
129
|
-
], OrderPackage.prototype, "createdAt", void 0);
|
|
130
|
-
__decorate([
|
|
131
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
132
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
133
|
-
__metadata("design:type", Date)
|
|
134
|
-
], OrderPackage.prototype, "updatedAt", void 0);
|
|
135
|
-
__decorate([
|
|
136
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
137
|
-
nullable: true
|
|
138
|
-
}),
|
|
139
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
140
|
-
__metadata("design:type", typeof (_d = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _d : Object)
|
|
141
|
-
], OrderPackage.prototype, "creator", void 0);
|
|
142
|
-
__decorate([
|
|
143
|
-
(0, typeorm_1.RelationId)((orderPackage) => orderPackage.creator),
|
|
144
|
-
__metadata("design:type", String)
|
|
145
|
-
], OrderPackage.prototype, "creatorId", void 0);
|
|
146
|
-
__decorate([
|
|
147
|
-
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
148
|
-
nullable: true
|
|
149
|
-
}),
|
|
150
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
151
|
-
__metadata("design:type", typeof (_e = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _e : Object)
|
|
152
|
-
], OrderPackage.prototype, "updater", void 0);
|
|
153
|
-
__decorate([
|
|
154
|
-
(0, typeorm_1.RelationId)((orderPackage) => orderPackage.creator),
|
|
155
|
-
__metadata("design:type", String)
|
|
156
|
-
], OrderPackage.prototype, "updaterId", void 0);
|
|
157
|
-
__decorate([
|
|
158
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
159
|
-
(0, type_graphql_1.Field)({ nullable: true }),
|
|
160
|
-
__metadata("design:type", Date)
|
|
161
|
-
], OrderPackage.prototype, "marketRtsCallSuccess", void 0);
|
|
162
|
-
OrderPackage = __decorate([
|
|
163
|
-
(0, typeorm_1.Entity)(),
|
|
164
|
-
(0, typeorm_1.Index)('ix_order_package_0', (orderPackage) => [orderPackage.domain, orderPackage.name], { unique: true }),
|
|
165
|
-
(0, typeorm_1.Index)('ix_order_package_1', (orderPackage) => [orderPackage.releaseGood, orderPackage.packageId], {
|
|
166
|
-
unique: true
|
|
167
|
-
}),
|
|
168
|
-
(0, type_graphql_1.ObjectType)({ description: 'Entity for OrderPackage' })
|
|
169
|
-
], OrderPackage);
|
|
170
|
-
exports.OrderPackage = OrderPackage;
|
|
171
|
-
//# sourceMappingURL=order-package.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"order-package.js","sourceRoot":"","sources":["../../../server/service/order-package/order-package.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAoD;AACpD,qCAUgB;AAEhB,yDAAgD;AAChD,uDAAmD;AACnD,6CAA4C;AAC5C,iDAA8C;AAE9C,2BAA6D;AAC7D,+DAAiE;AAEjE,MAAM,SAAS,GAAG,YAAM,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;AAC7C,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,CAAA;AAQ7B,IAAM,YAAY,GAAlB,MAAM,YAAY;CA+GxB,CAAA;AA9GC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;wCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACjB,cAAM,oBAAN,cAAM;4CAAA;AAEf;IAAC,IAAA,oBAAU,EAAC,CAAC,YAA0B,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC;;8CAC/C;AAEjB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAQ,CAAC;IAC3B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACjC,mBAAQ,oBAAR,mBAAQ;8CAAA;AAEnB;IAAC,IAAA,oBAAU,EAAC,CAAC,YAA0B,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC;;gDAC/C;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,eAAW,CA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@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolvers = exports.entities = void 0;
|
|
4
|
-
const order_package_item_1 = require("./order-package-item");
|
|
5
|
-
const order_package_item_query_1 = require("./order-package-item-query");
|
|
6
|
-
const order_package_item_mutation_1 = require("./order-package-item-mutation");
|
|
7
|
-
exports.entities = [order_package_item_1.OrderPackageItem];
|
|
8
|
-
exports.resolvers = [order_package_item_query_1.OrderPackageItemQuery, order_package_item_mutation_1.OrderPackageItemMutation];
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/order-package-item/index.ts"],"names":[],"mappings":";;;AAAA,6DAAuD;AACvD,yEAAkE;AAClE,+EAAwE;AAE3D,QAAA,QAAQ,GAAG,CAAC,qCAAgB,CAAC,CAAA;AAC7B,QAAA,SAAS,GAAG,CAAC,gDAAqB,EAAE,sDAAwB,CAAC,CAAA"}
|