@things-factory/sales-base 4.0.37 → 4.0.41
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/controllers/ecommerce/sellercraft-controller.js +4 -3
- package/dist-server/controllers/ecommerce/sellercraft-controller.js.map +1 -1
- package/dist-server/service/arrival-notice/arrival-notice-mutation.js +42 -35
- package/dist-server/service/arrival-notice/arrival-notice-mutation.js.map +1 -1
- package/dist-server/service/arrival-notice/arrival-notice-query.js +91 -79
- package/dist-server/service/arrival-notice/arrival-notice-query.js.map +1 -1
- package/dist-server/service/arrival-notice/arrival-notice-types.js +8 -0
- package/dist-server/service/arrival-notice/arrival-notice-types.js.map +1 -1
- package/dist-server/service/arrival-notice/arrival-notice.js +20 -15
- package/dist-server/service/arrival-notice/arrival-notice.js.map +1 -1
- package/dist-server/service/delivery-order/delivery-order-mutation.js +28 -26
- package/dist-server/service/delivery-order/delivery-order-mutation.js.map +1 -1
- package/dist-server/service/delivery-order/delivery-order-query.js +14 -14
- package/dist-server/service/delivery-order/delivery-order-query.js.map +1 -1
- package/dist-server/service/delivery-order/delivery-order-summary-report.js +145 -0
- package/dist-server/service/delivery-order/delivery-order-summary-report.js.map +1 -0
- package/dist-server/service/delivery-order/delivery-order.js +16 -13
- package/dist-server/service/delivery-order/delivery-order.js.map +1 -1
- package/dist-server/service/delivery-order/index.js +3 -1
- package/dist-server/service/delivery-order/index.js.map +1 -1
- package/dist-server/service/index.js +12 -4
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/service/invoice/invoice-mutation.js +21 -3
- package/dist-server/service/invoice/invoice-mutation.js.map +1 -1
- package/dist-server/service/invoice/invoice-query.js +5 -7
- package/dist-server/service/invoice/invoice-query.js.map +1 -1
- package/dist-server/service/invoice/invoice-types.js +302 -20
- package/dist-server/service/invoice/invoice-types.js.map +1 -1
- package/dist-server/service/invoice/invoice.js +190 -26
- package/dist-server/service/invoice/invoice.js.map +1 -1
- package/dist-server/service/invoice-product/index.js +21 -0
- package/dist-server/service/invoice-product/index.js.map +1 -0
- package/dist-server/service/invoice-product/invoice-product-mutation.js +70 -0
- package/dist-server/service/invoice-product/invoice-product-mutation.js.map +1 -0
- package/dist-server/service/invoice-product/invoice-product-query.js +95 -0
- package/dist-server/service/invoice-product/invoice-product-query.js.map +1 -0
- package/dist-server/service/invoice-product/invoice-product-types.js +125 -0
- package/dist-server/service/invoice-product/invoice-product-types.js.map +1 -0
- package/dist-server/service/invoice-product/invoice-product.js +117 -0
- package/dist-server/service/invoice-product/invoice-product.js.map +1 -0
- package/dist-server/service/order-inventory/order-inventory-query.js +9 -7
- package/dist-server/service/order-inventory/order-inventory-query.js.map +1 -1
- package/dist-server/service/order-inventory/order-inventory.js +31 -25
- package/dist-server/service/order-inventory/order-inventory.js.map +1 -1
- package/dist-server/service/order-product/order-product.js +26 -21
- package/dist-server/service/order-product/order-product.js.map +1 -1
- package/dist-server/service/order-vas/order-vas.js +34 -27
- package/dist-server/service/order-vas/order-vas.js.map +1 -1
- package/dist-server/service/others/other-query.js +4 -2
- package/dist-server/service/others/other-query.js.map +1 -1
- package/dist-server/service/others/other-types.js +42 -0
- package/dist-server/service/others/other-types.js.map +1 -1
- package/dist-server/service/purchase-order/purchase-order-mutation.js +23 -36
- package/dist-server/service/purchase-order/purchase-order-mutation.js.map +1 -1
- package/dist-server/service/release-good/release-good-mutation.js +84 -82
- package/dist-server/service/release-good/release-good-mutation.js.map +1 -1
- package/dist-server/service/release-good/release-good-query.js +8 -9
- package/dist-server/service/release-good/release-good-query.js.map +1 -1
- package/dist-server/service/release-good/release-good.js +2 -0
- package/dist-server/service/release-good/release-good.js.map +1 -1
- package/dist-server/service/return-order/return-order-mutation.js +3 -3
- package/dist-server/service/return-order/return-order-mutation.js.map +1 -1
- package/dist-server/utils/order-no-generator.js +7 -0
- package/dist-server/utils/order-no-generator.js.map +1 -1
- package/package.json +12 -12
- package/server/controllers/ecommerce/sellercraft-controller.ts +2 -1
- package/server/service/arrival-notice/arrival-notice-mutation.ts +11 -15
- package/server/service/arrival-notice/arrival-notice-query.ts +94 -78
- package/server/service/arrival-notice/arrival-notice-types.ts +6 -0
- package/server/service/arrival-notice/arrival-notice.ts +6 -1
- package/server/service/delivery-order/delivery-order-mutation.ts +4 -8
- package/server/service/delivery-order/delivery-order-query.ts +4 -4
- package/server/service/delivery-order/delivery-order-summary-report.ts +152 -0
- package/server/service/delivery-order/delivery-order.ts +4 -1
- package/server/service/delivery-order/index.ts +3 -1
- package/server/service/index.ts +20 -12
- package/server/service/invoice/invoice-mutation.ts +45 -7
- package/server/service/invoice/invoice-query.ts +6 -6
- package/server/service/invoice/invoice-types.ts +231 -18
- package/server/service/invoice/invoice.ts +154 -20
- package/server/service/invoice-product/index.ts +9 -0
- package/server/service/invoice-product/invoice-product-mutation.ts +54 -0
- package/server/service/invoice-product/invoice-product-query.ts +55 -0
- package/server/service/invoice-product/invoice-product-types.ts +80 -0
- package/server/service/invoice-product/invoice-product.ts +93 -0
- package/server/service/order-inventory/order-inventory-query.ts +3 -1
- package/server/service/order-inventory/order-inventory.ts +11 -13
- package/server/service/order-product/order-product.ts +13 -13
- package/server/service/order-vas/order-vas.ts +15 -15
- package/server/service/others/other-query.ts +9 -15
- package/server/service/others/other-types.ts +31 -0
- package/server/service/purchase-order/purchase-order-mutation.ts +19 -21
- package/server/service/release-good/release-good-mutation.ts +64 -58
- package/server/service/release-good/release-good-query.ts +6 -12
- package/server/service/release-good/release-good.ts +2 -0
- package/server/service/return-order/return-order-mutation.ts +5 -4
- package/server/utils/order-no-generator.ts +11 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice.js","sourceRoot":"","sources":["../../../server/service/invoice/invoice.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"invoice.js","sourceRoot":"","sources":["../../../server/service/invoice/invoice.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAo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perty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.resolvers = exports.entities = void 0;
|
|
14
|
+
const invoice_product_1 = require("./invoice-product");
|
|
15
|
+
const invoice_product_mutation_1 = require("./invoice-product-mutation");
|
|
16
|
+
const invoice_product_query_1 = require("./invoice-product-query");
|
|
17
|
+
exports.entities = [invoice_product_1.InvoiceProduct];
|
|
18
|
+
exports.resolvers = [invoice_product_query_1.InvoiceProductQuery, invoice_product_mutation_1.InvoiceProductMutation];
|
|
19
|
+
__exportStar(require("./invoice-product-mutation"), exports);
|
|
20
|
+
__exportStar(require("./invoice-product-query"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/invoice-product/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,uDAAkD;AAClD,yEAAmE;AACnE,mEAA6D;AAEhD,QAAA,QAAQ,GAAG,CAAC,gCAAc,CAAC,CAAA;AAC3B,QAAA,SAAS,GAAG,CAAC,2CAAmB,EAAE,iDAAsB,CAAC,CAAA;AAEtE,6DAA0C;AAC1C,0DAAuC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.InvoiceProductMutation = void 0;
|
|
16
|
+
const type_graphql_1 = require("type-graphql");
|
|
17
|
+
const invoice_product_1 = require("../invoice-product/invoice-product");
|
|
18
|
+
const invoice_product_types_1 = require("./invoice-product-types");
|
|
19
|
+
let InvoiceProductMutation = class InvoiceProductMutation {
|
|
20
|
+
async createInvoiceProduct(invoiceProduct, context) {
|
|
21
|
+
const { domain, user, tx } = context.state;
|
|
22
|
+
return await tx.getRepository(invoice_product_1.InvoiceProduct).save(Object.assign(Object.assign({}, invoiceProduct), { domain, creator: user, updater: user }));
|
|
23
|
+
}
|
|
24
|
+
async updateInvoiceProduct(name, patch, context) {
|
|
25
|
+
const { domain, user, tx } = context.state;
|
|
26
|
+
const repository = tx.getRepository(invoice_product_1.InvoiceProduct);
|
|
27
|
+
const invoiceProduct = await repository.findOne({
|
|
28
|
+
where: { domain, name }
|
|
29
|
+
});
|
|
30
|
+
return await repository.save(Object.assign(Object.assign(Object.assign({}, invoiceProduct), patch), { updater: user }));
|
|
31
|
+
}
|
|
32
|
+
async deleteInvoiceProduct(name, context) {
|
|
33
|
+
const { domain, tx } = context.state;
|
|
34
|
+
await tx.getRepository(invoice_product_1.InvoiceProduct).delete({ domain, name });
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, type_graphql_1.Mutation)(returns => invoice_product_1.InvoiceProduct),
|
|
40
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
41
|
+
__param(0, (0, type_graphql_1.Arg)('invoiceProduct', type => invoice_product_types_1.NewInvoiceProduct)),
|
|
42
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
43
|
+
__metadata("design:type", Function),
|
|
44
|
+
__metadata("design:paramtypes", [invoice_product_types_1.NewInvoiceProduct, Object]),
|
|
45
|
+
__metadata("design:returntype", Promise)
|
|
46
|
+
], InvoiceProductMutation.prototype, "createInvoiceProduct", null);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, type_graphql_1.Mutation)(returns => invoice_product_1.InvoiceProduct),
|
|
49
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
50
|
+
__param(0, (0, type_graphql_1.Arg)('name')),
|
|
51
|
+
__param(1, (0, type_graphql_1.Arg)('patch', type => invoice_product_types_1.InvoiceProductPatch)),
|
|
52
|
+
__param(2, (0, type_graphql_1.Ctx)()),
|
|
53
|
+
__metadata("design:type", Function),
|
|
54
|
+
__metadata("design:paramtypes", [String, invoice_product_types_1.InvoiceProductPatch, Object]),
|
|
55
|
+
__metadata("design:returntype", Promise)
|
|
56
|
+
], InvoiceProductMutation.prototype, "updateInvoiceProduct", null);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, type_graphql_1.Mutation)(returns => Boolean),
|
|
59
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
60
|
+
__param(0, (0, type_graphql_1.Arg)('name')),
|
|
61
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
62
|
+
__metadata("design:type", Function),
|
|
63
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
64
|
+
__metadata("design:returntype", Promise)
|
|
65
|
+
], InvoiceProductMutation.prototype, "deleteInvoiceProduct", null);
|
|
66
|
+
InvoiceProductMutation = __decorate([
|
|
67
|
+
(0, type_graphql_1.Resolver)(invoice_product_1.InvoiceProduct)
|
|
68
|
+
], InvoiceProductMutation);
|
|
69
|
+
exports.InvoiceProductMutation = InvoiceProductMutation;
|
|
70
|
+
//# sourceMappingURL=invoice-product-mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-product-mutation.js","sourceRoot":"","sources":["../../../server/service/invoice-product/invoice-product-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAsE;AAEtE,wEAAmE;AACnE,mEAAgF;AAGhF,IAAa,sBAAsB,GAAnC,MAAa,sBAAsB;IAGjC,KAAK,CAAC,oBAAoB,CAC0B,cAAiC,EAC5E,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,gCAAc,CAAC,CAAC,IAAI,iCAC7C,cAAc,KACjB,MAAM,EACN,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAID,KAAK,CAAC,oBAAoB,CACX,IAAY,EACkB,KAA0B,EAC9D,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAE1C,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,gCAAc,CAAC,CAAA;QACnD,MAAM,cAAc,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YAC9C,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;SACxB,CAAC,CAAA;QAEF,OAAO,MAAM,UAAU,CAAC,IAAI,+CACvB,cAAc,GACd,KAAK,KACR,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAID,KAAK,CAAC,oBAAoB,CAAc,IAAY,EAAS,OAAY;QACvE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAEpC,MAAM,EAAE,CAAC,aAAa,CAAC,gCAAc,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;QAE/D,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA;AA5CC;IAFC,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,gCAAc,CAAC;IACnC,IAAA,wBAAS,EAAC,cAAc,CAAC;IAEvB,WAAA,IAAA,kBAAG,EAAC,gBAAgB,EAAE,IAAI,CAAC,EAAE,CAAC,yCAAiB,CAAC,CAAA;IAChD,WAAA,IAAA,kBAAG,GAAE,CAAA;;qCAD4D,yCAAiB;;kEAWpF;AAID;IAFC,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,gCAAc,CAAC;IACnC,IAAA,wBAAS,EAAC,cAAc,CAAC;IAEvB,WAAA,IAAA,kBAAG,EAAC,MAAM,CAAC,CAAA;IACX,WAAA,IAAA,kBAAG,EAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,2CAAmB,CAAC,CAAA;IACzC,WAAA,IAAA,kBAAG,GAAE,CAAA;;6CAD4C,2CAAmB;;kEAetE;AAID;IAFC,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC;IAC5B,IAAA,wBAAS,EAAC,cAAc,CAAC;IACE,WAAA,IAAA,kBAAG,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;kEAM3D;AA9CU,sBAAsB;IADlC,IAAA,uBAAQ,EAAC,gCAAc,CAAC;GACZ,sBAAsB,CA+ClC;AA/CY,wDAAsB"}
|
|
@@ -0,0 +1,95 @@
|
|
|
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.InvoiceProductQuery = 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 shell_1 = require("@things-factory/shell");
|
|
21
|
+
const invoice_product_1 = require("./invoice-product");
|
|
22
|
+
const invoice_product_types_1 = require("./invoice-product-types");
|
|
23
|
+
let InvoiceProductQuery = class InvoiceProductQuery {
|
|
24
|
+
async invoiceProducts(context, filters, pagination, sortings) {
|
|
25
|
+
const queryBuilder = (0, typeorm_1.getRepository)(invoice_product_1.InvoiceProduct).createQueryBuilder();
|
|
26
|
+
(0, shell_1.buildQuery)(queryBuilder, { filters, pagination, sortings }, context);
|
|
27
|
+
const [items, total] = await queryBuilder
|
|
28
|
+
.leftJoinAndSelect('InvoiceProduct.domain', 'Domain')
|
|
29
|
+
.leftJoinAndSelect('InvoiceProduct.invoice', 'Invoice')
|
|
30
|
+
.leftJoinAndSelect('InvoiceProduct.creator', 'Creator')
|
|
31
|
+
.leftJoinAndSelect('InvoiceProduct.updater', 'Updater')
|
|
32
|
+
.getManyAndCount();
|
|
33
|
+
return { items, total };
|
|
34
|
+
}
|
|
35
|
+
async invoiceProduct(name, context) {
|
|
36
|
+
const { domain } = context.state;
|
|
37
|
+
return await (0, typeorm_1.getRepository)(invoice_product_1.InvoiceProduct).findOne({
|
|
38
|
+
where: { domain, name },
|
|
39
|
+
relations: ['domain', 'invoice', 'creator', 'updater']
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
async domain(invoiceProduct) {
|
|
43
|
+
return await (0, typeorm_1.getRepository)(shell_1.Domain).findOne(invoiceProduct.domainId);
|
|
44
|
+
}
|
|
45
|
+
async creator(invoiceProduct) {
|
|
46
|
+
return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(invoiceProduct.creatorId);
|
|
47
|
+
}
|
|
48
|
+
async updater(invoiceProduct) {
|
|
49
|
+
return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(invoiceProduct.updaterId);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, type_graphql_1.Query)(returns => invoice_product_types_1.InvoiceProductList),
|
|
54
|
+
__param(0, (0, type_graphql_1.Ctx)()),
|
|
55
|
+
__param(1, (0, type_graphql_1.Arg)('filters', type => [shell_1.Filter], { nullable: true })),
|
|
56
|
+
__param(2, (0, type_graphql_1.Arg)('pagination', type => shell_1.Pagination, { nullable: true })),
|
|
57
|
+
__param(3, (0, type_graphql_1.Arg)('sortings', type => [shell_1.Sorting], { nullable: true })),
|
|
58
|
+
__metadata("design:type", Function),
|
|
59
|
+
__metadata("design:paramtypes", [Object, Array, typeof (_a = typeof shell_1.Pagination !== "undefined" && shell_1.Pagination) === "function" ? _a : Object, Array]),
|
|
60
|
+
__metadata("design:returntype", Promise)
|
|
61
|
+
], InvoiceProductQuery.prototype, "invoiceProducts", null);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, type_graphql_1.Query)(returns => invoice_product_1.InvoiceProduct),
|
|
64
|
+
__param(0, (0, type_graphql_1.Arg)('name')),
|
|
65
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
66
|
+
__metadata("design:type", Function),
|
|
67
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
68
|
+
__metadata("design:returntype", Promise)
|
|
69
|
+
], InvoiceProductQuery.prototype, "invoiceProduct", null);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
72
|
+
__param(0, (0, type_graphql_1.Root)()),
|
|
73
|
+
__metadata("design:type", Function),
|
|
74
|
+
__metadata("design:paramtypes", [invoice_product_1.InvoiceProduct]),
|
|
75
|
+
__metadata("design:returntype", Promise)
|
|
76
|
+
], InvoiceProductQuery.prototype, "domain", null);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
79
|
+
__param(0, (0, type_graphql_1.Root)()),
|
|
80
|
+
__metadata("design:type", Function),
|
|
81
|
+
__metadata("design:paramtypes", [invoice_product_1.InvoiceProduct]),
|
|
82
|
+
__metadata("design:returntype", Promise)
|
|
83
|
+
], InvoiceProductQuery.prototype, "creator", null);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
86
|
+
__param(0, (0, type_graphql_1.Root)()),
|
|
87
|
+
__metadata("design:type", Function),
|
|
88
|
+
__metadata("design:paramtypes", [invoice_product_1.InvoiceProduct]),
|
|
89
|
+
__metadata("design:returntype", Promise)
|
|
90
|
+
], InvoiceProductQuery.prototype, "updater", null);
|
|
91
|
+
InvoiceProductQuery = __decorate([
|
|
92
|
+
(0, type_graphql_1.Resolver)(invoice_product_1.InvoiceProduct)
|
|
93
|
+
], InvoiceProductQuery);
|
|
94
|
+
exports.InvoiceProductQuery = InvoiceProductQuery;
|
|
95
|
+
//# sourceMappingURL=invoice-product-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-product-query.js","sourceRoot":"","sources":["../../../server/service/invoice-product/invoice-product-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6E;AAC7E,qCAAuC;AAEvC,yDAAgD;AAChD,iDAAuF;AAEvF,uDAAkD;AAClD,mEAA4D;AAG5D,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAE9B,KAAK,CAAC,eAAe,CACZ,OAAY,EACmC,OAAkB,EACb,UAAuB,EAC1B,QAAoB;QAE5E,MAAM,YAAY,GAAG,IAAA,uBAAa,EAAC,gCAAc,CAAC,CAAC,kBAAkB,EAAE,CAAA;QACvE,IAAA,kBAAU,EAAC,YAAY,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAA;QACpE,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY;aACtC,iBAAiB,CAAC,uBAAuB,EAAE,QAAQ,CAAC;aACpD,iBAAiB,CAAC,wBAAwB,EAAE,SAAS,CAAC;aACtD,iBAAiB,CAAC,wBAAwB,EAAE,SAAS,CAAC;aACtD,iBAAiB,CAAC,wBAAwB,EAAE,SAAS,CAAC;aACtD,eAAe,EAAE,CAAA;QAEpB,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGD,KAAK,CAAC,cAAc,CAAc,IAAY,EAAS,OAAY;QACjE,MAAM,EAAE,MAAM,EAAE,GAAuB,OAAO,CAAC,KAAK,CAAA;QAEpD,OAAO,MAAM,IAAA,uBAAa,EAAC,gCAAc,CAAC,CAAC,OAAO,CAAC;YACjD,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;YACvB,SAAS,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;SACvD,CAAC,CAAA;IACJ,CAAC;IAGD,KAAK,CAAC,MAAM,CAAS,cAA8B;QACjD,OAAO,MAAM,IAAA,uBAAa,EAAC,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AAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAiB,gCAAc;;kDAEnD;AAGD;IADC,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAiB,gCAAc;;kDAEnD;AA3CU,mBAAmB;IAD/B,IAAA,uBAAQ,EAAC,gCAAc,CAAC;GACZ,mBAAmB,CA4C/B;AA5CY,kDAAmB"}
|
|
@@ -0,0 +1,125 @@
|
|
|
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.InvoiceProductPatch = exports.NewInvoiceProduct = exports.ProductInput = exports.InvoiceProductList = void 0;
|
|
14
|
+
const type_graphql_1 = require("type-graphql");
|
|
15
|
+
const shell_1 = require("@things-factory/shell");
|
|
16
|
+
const invoice_product_1 = require("./invoice-product");
|
|
17
|
+
let InvoiceProductList = class InvoiceProductList {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, type_graphql_1.Field)(type => [invoice_product_1.InvoiceProduct], { nullable: true }),
|
|
21
|
+
__metadata("design:type", Array)
|
|
22
|
+
], InvoiceProductList.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
|
+
], InvoiceProductList.prototype, "total", void 0);
|
|
27
|
+
InvoiceProductList = __decorate([
|
|
28
|
+
(0, type_graphql_1.ObjectType)()
|
|
29
|
+
], InvoiceProductList);
|
|
30
|
+
exports.InvoiceProductList = InvoiceProductList;
|
|
31
|
+
let ProductInput = class ProductInput {
|
|
32
|
+
};
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, type_graphql_1.Field)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ProductInput.prototype, "sku", void 0);
|
|
37
|
+
ProductInput = __decorate([
|
|
38
|
+
(0, type_graphql_1.InputType)()
|
|
39
|
+
], ProductInput);
|
|
40
|
+
exports.ProductInput = ProductInput;
|
|
41
|
+
let NewInvoiceProduct = class NewInvoiceProduct {
|
|
42
|
+
};
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], NewInvoiceProduct.prototype, "name", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], NewInvoiceProduct.prototype, "sku", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], NewInvoiceProduct.prototype, "description", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, type_graphql_1.Field)(type => shell_1.ObjectRef),
|
|
57
|
+
__metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
|
|
58
|
+
], NewInvoiceProduct.prototype, "invoice", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, type_graphql_1.Field)(type => ProductInput),
|
|
61
|
+
__metadata("design:type", ProductInput)
|
|
62
|
+
], NewInvoiceProduct.prototype, "product", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], NewInvoiceProduct.prototype, "qty", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: false }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], NewInvoiceProduct.prototype, "otherCharges", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], NewInvoiceProduct.prototype, "unitPrice", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float),
|
|
77
|
+
__metadata("design:type", Number)
|
|
78
|
+
], NewInvoiceProduct.prototype, "paidPrice", void 0);
|
|
79
|
+
NewInvoiceProduct = __decorate([
|
|
80
|
+
(0, type_graphql_1.InputType)()
|
|
81
|
+
], NewInvoiceProduct);
|
|
82
|
+
exports.NewInvoiceProduct = NewInvoiceProduct;
|
|
83
|
+
let InvoiceProductPatch = class InvoiceProductPatch {
|
|
84
|
+
};
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], InvoiceProductPatch.prototype, "name", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], InvoiceProductPatch.prototype, "sku", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], InvoiceProductPatch.prototype, "description", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, type_graphql_1.Field)(type => shell_1.ObjectRef),
|
|
99
|
+
__metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
|
|
100
|
+
], InvoiceProductPatch.prototype, "invoice", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, type_graphql_1.Field)(type => ProductInput),
|
|
103
|
+
__metadata("design:type", ProductInput)
|
|
104
|
+
], InvoiceProductPatch.prototype, "product", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
107
|
+
__metadata("design:type", Number)
|
|
108
|
+
], InvoiceProductPatch.prototype, "qty", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: false }),
|
|
111
|
+
__metadata("design:type", Number)
|
|
112
|
+
], InvoiceProductPatch.prototype, "otherCharges", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float),
|
|
115
|
+
__metadata("design:type", Number)
|
|
116
|
+
], InvoiceProductPatch.prototype, "unitPrice", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Float),
|
|
119
|
+
__metadata("design:type", Number)
|
|
120
|
+
], InvoiceProductPatch.prototype, "paidPrice", void 0);
|
|
121
|
+
InvoiceProductPatch = __decorate([
|
|
122
|
+
(0, type_graphql_1.InputType)()
|
|
123
|
+
], InvoiceProductPatch);
|
|
124
|
+
exports.InvoiceProductPatch = InvoiceProductPatch;
|
|
125
|
+
//# sourceMappingURL=invoice-product-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-product-types.js","sourceRoot":"","sources":["../../../server/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
"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;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.InvoiceProduct = 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 product_base_1 = require("@things-factory/product-base");
|
|
18
|
+
const shell_1 = require("@things-factory/shell");
|
|
19
|
+
const invoice_1 = require("../invoice/invoice");
|
|
20
|
+
let InvoiceProduct = class InvoiceProduct {
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
24
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], InvoiceProduct.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
29
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain, { nullable: true }),
|
|
30
|
+
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
31
|
+
], InvoiceProduct.prototype, "domain", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.RelationId)((invoiceProduct) => invoiceProduct.domain),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], InvoiceProduct.prototype, "domainId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
38
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], InvoiceProduct.prototype, "sku", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)(),
|
|
43
|
+
(0, type_graphql_1.Field)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], InvoiceProduct.prototype, "name", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
48
|
+
(0, type_graphql_1.Field)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], InvoiceProduct.prototype, "description", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.ManyToOne)(type => invoice_1.Invoice),
|
|
53
|
+
(0, type_graphql_1.Field)(type => invoice_1.Invoice),
|
|
54
|
+
__metadata("design:type", invoice_1.Invoice)
|
|
55
|
+
], InvoiceProduct.prototype, "invoice", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.ManyToOne)(type => product_base_1.Product, { nullable: true }),
|
|
58
|
+
(0, type_graphql_1.Field)(type => product_base_1.Product, { nullable: true }),
|
|
59
|
+
__metadata("design:type", typeof (_b = typeof product_base_1.Product !== "undefined" && product_base_1.Product) === "function" ? _b : Object)
|
|
60
|
+
], InvoiceProduct.prototype, "product", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)('int', { default: 0 }),
|
|
63
|
+
(0, type_graphql_1.Field)(),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], InvoiceProduct.prototype, "qty", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)('float', { default: 0 }),
|
|
68
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], InvoiceProduct.prototype, "otherCharges", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)('float', { default: 0 }),
|
|
73
|
+
(0, type_graphql_1.Field)(),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], InvoiceProduct.prototype, "unitPrice", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)('float', { default: 0 }),
|
|
78
|
+
(0, type_graphql_1.Field)(),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], InvoiceProduct.prototype, "paidPrice", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
83
|
+
(0, type_graphql_1.Field)(),
|
|
84
|
+
__metadata("design:type", Date)
|
|
85
|
+
], InvoiceProduct.prototype, "createdAt", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
88
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
89
|
+
__metadata("design:type", Date)
|
|
90
|
+
], InvoiceProduct.prototype, "updatedAt", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
93
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
94
|
+
__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
|
|
95
|
+
], InvoiceProduct.prototype, "creator", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.RelationId)((invoiceProduct) => invoiceProduct.creator),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], InvoiceProduct.prototype, "creatorId", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
102
|
+
(0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
|
|
103
|
+
__metadata("design:type", typeof (_d = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _d : Object)
|
|
104
|
+
], InvoiceProduct.prototype, "updater", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.RelationId)((invoiceProduct) => invoiceProduct.updater),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], InvoiceProduct.prototype, "updaterId", void 0);
|
|
109
|
+
InvoiceProduct = __decorate([
|
|
110
|
+
(0, typeorm_1.Entity)(),
|
|
111
|
+
(0, typeorm_1.Index)('ix_invoice_product_0', (invoiceProduct) => [invoiceProduct.id], {
|
|
112
|
+
unique: true
|
|
113
|
+
}),
|
|
114
|
+
(0, type_graphql_1.ObjectType)()
|
|
115
|
+
], InvoiceProduct);
|
|
116
|
+
exports.InvoiceProduct = InvoiceProduct;
|
|
117
|
+
//# sourceMappingURL=invoice-product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-product.js","sourceRoot":"","sources":["../../../server/service/invoice-product/invoice-product.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,+DAAsD;AACtD,iDAA8C;AAE9C,gDAA4C;AAO5C,IAAa,cAAc,GAA3B,MAAa,cAAc;CAqE1B,CAAA;AAlEC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;0CACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,IAAI,CAAC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A,cAAc,CAqE1B;AArEY,wCAAc"}
|
|
@@ -19,7 +19,9 @@ const typeorm_1 = require("typeorm");
|
|
|
19
19
|
const auth_base_1 = require("@things-factory/auth-base");
|
|
20
20
|
const biz_base_1 = require("@things-factory/biz-base");
|
|
21
21
|
const shell_1 = require("@things-factory/shell");
|
|
22
|
-
const
|
|
22
|
+
const arrival_notice_1 = require("../arrival-notice/arrival-notice");
|
|
23
|
+
const order_inventory_types_1 = require("../order-inventory/order-inventory-types");
|
|
24
|
+
const release_good_1 = require("../release-good/release-good");
|
|
23
25
|
const order_inventory_1 = require("./order-inventory");
|
|
24
26
|
let OrderInventoryQuery = class OrderInventoryQuery {
|
|
25
27
|
async orderInventories(context, params) {
|
|
@@ -29,7 +31,7 @@ let OrderInventoryQuery = class OrderInventoryQuery {
|
|
|
29
31
|
const anParam = filters.find((filter) => filter.name === 'arrivalNoticeNo' && filter.operator === 'eq');
|
|
30
32
|
const rgParam = filters.find((filter) => filter.name === 'releaseGoodNo' && filter.operator === 'eq');
|
|
31
33
|
if (anParam && !filters.some((filter) => filter.name === 'arrivalNotice')) {
|
|
32
|
-
const foundArrivalNotice = await (0, typeorm_1.getRepository)(
|
|
34
|
+
const foundArrivalNotice = await (0, typeorm_1.getRepository)(arrival_notice_1.ArrivalNotice).findOne({
|
|
33
35
|
where: {
|
|
34
36
|
name: anParam.value,
|
|
35
37
|
domain
|
|
@@ -43,7 +45,7 @@ let OrderInventoryQuery = class OrderInventoryQuery {
|
|
|
43
45
|
throw new Error(`Cannot find result for order "${anParam.value}"`);
|
|
44
46
|
}
|
|
45
47
|
if (rgParam && !filters.some(filter => filter.name === 'releaseGood')) {
|
|
46
|
-
const foundReleaseGood = await (0, typeorm_1.getRepository)(
|
|
48
|
+
const foundReleaseGood = await (0, typeorm_1.getRepository)(release_good_1.ReleaseGood).findOne({
|
|
47
49
|
where: {
|
|
48
50
|
name: rgParam.value,
|
|
49
51
|
domain
|
|
@@ -157,7 +159,7 @@ let OrderInventoryQuery = class OrderInventoryQuery {
|
|
|
157
159
|
params.filters.find(filter => filter.name === 'bizplaceId').relation = true;
|
|
158
160
|
}
|
|
159
161
|
if ((_a = params.filters.find((filter) => filter.name === 'releaseGoodName')) === null || _a === void 0 ? void 0 : _a.value) {
|
|
160
|
-
let releaseGood = await (0, typeorm_1.getRepository)(
|
|
162
|
+
let releaseGood = await (0, typeorm_1.getRepository)(release_good_1.ReleaseGood).findOne({
|
|
161
163
|
where: {
|
|
162
164
|
name: (0, typeorm_1.Like)(params.filters.find(filter => filter.name === 'releaseGoodName').value)
|
|
163
165
|
}
|
|
@@ -199,7 +201,7 @@ let OrderInventoryQuery = class OrderInventoryQuery {
|
|
|
199
201
|
}
|
|
200
202
|
};
|
|
201
203
|
__decorate([
|
|
202
|
-
(0, type_graphql_1.Query)(returns =>
|
|
204
|
+
(0, type_graphql_1.Query)(returns => order_inventory_types_1.OrderInventoryList),
|
|
203
205
|
__param(0, (0, type_graphql_1.Ctx)()),
|
|
204
206
|
__param(1, (0, type_graphql_1.Args)()),
|
|
205
207
|
__metadata("design:type", Function),
|
|
@@ -207,7 +209,7 @@ __decorate([
|
|
|
207
209
|
__metadata("design:returntype", Promise)
|
|
208
210
|
], OrderInventoryQuery.prototype, "orderInventories", null);
|
|
209
211
|
__decorate([
|
|
210
|
-
(0, type_graphql_1.Query)(returns =>
|
|
212
|
+
(0, type_graphql_1.Query)(returns => order_inventory_types_1.OrderInventoryList),
|
|
211
213
|
__param(0, (0, type_graphql_1.Ctx)()),
|
|
212
214
|
__param(1, (0, type_graphql_1.Arg)('filters', type => [shell_1.Filter], { nullable: true })),
|
|
213
215
|
__param(2, (0, type_graphql_1.Arg)('pagination', type => shell_1.Pagination, { nullable: true })),
|
|
@@ -225,7 +227,7 @@ __decorate([
|
|
|
225
227
|
__metadata("design:returntype", Promise)
|
|
226
228
|
], OrderInventoryQuery.prototype, "orderInventory", null);
|
|
227
229
|
__decorate([
|
|
228
|
-
(0, type_graphql_1.Query)(returns =>
|
|
230
|
+
(0, type_graphql_1.Query)(returns => order_inventory_types_1.OrderInventoryList),
|
|
229
231
|
__param(0, (0, type_graphql_1.Ctx)()),
|
|
230
232
|
__param(1, (0, type_graphql_1.Args)()),
|
|
231
233
|
__metadata("design:type", Function),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-inventory-query.js","sourceRoot":"","sources":["../../../server/service/order-inventory/order-inventory-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAmF;AACnF,qCAAiE;AAEjE,yDAAgD;AAChD,uDAAkE;AAElE,iDAAqH;AAErH,
|
|
1
|
+
{"version":3,"file":"order-inventory-query.js","sourceRoot":"","sources":["../../../server/service/order-inventory/order-inventory-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAmF;AACnF,qCAAiE;AAEjE,yDAAgD;AAChD,uDAAkE;AAElE,iDAAqH;AAErH,qEAAgE;AAChE,oFAA6E;AAC7E,+DAA0D;AAC1D,uDAAkD;AAQlD,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAE9B,KAAK,CAAC,gBAAgB,CAAQ,OAAY,EAAU,MAAiB;QACnE,MAAM,EAAE,MAAM,EAAE,GAAuB,OAAO,CAAC,KAAK,CAAA;QACpD,IAAI,OAAO,GAAG,MAAM,CAAC,OAAO,CAAA;QAE5B,iGAAiG;QACjG,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAC1B,CAAC,MAAuB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,iBAAiB,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,CAC3F,CAAA;QACD,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAC1B,CAAC,MAAuB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,eAAe,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,CACzF,CAAA;QAED,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,M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