@things-factory/warehouse-base 4.3.671 → 4.3.673
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/constants/adjustment-code.js +13 -0
- package/dist-server/constants/adjustment-code.js.map +1 -0
- package/dist-server/constants/index.js +23 -0
- package/dist-server/constants/index.js.map +1 -0
- package/dist-server/constants/inventory.js +74 -0
- package/dist-server/constants/inventory.js.map +1 -0
- package/dist-server/constants/location.js +19 -0
- package/dist-server/constants/location.js.map +1 -0
- package/dist-server/constants/pallet.js +13 -0
- package/dist-server/constants/pallet.js.map +1 -0
- package/dist-server/constants/rule-type.js +8 -0
- package/dist-server/constants/rule-type.js.map +1 -0
- package/dist-server/constants/tote.js +9 -0
- package/dist-server/constants/tote.js.map +1 -0
- package/dist-server/controllers/ecommerce/ecommerce-controller.js +125 -0
- package/dist-server/controllers/ecommerce/ecommerce-controller.js.map +1 -0
- package/dist-server/controllers/ecommerce/index.js +22 -0
- package/dist-server/controllers/ecommerce/index.js.map +1 -0
- package/dist-server/controllers/ecommerce/pos-controller.js +65 -0
- package/dist-server/controllers/ecommerce/pos-controller.js.map +1 -0
- package/dist-server/controllers/ecommerce/powrup-controller.js +87 -0
- package/dist-server/controllers/ecommerce/powrup-controller.js.map +1 -0
- package/dist-server/controllers/ecommerce/sellercraft-controller.js +85 -0
- package/dist-server/controllers/ecommerce/sellercraft-controller.js.map +1 -0
- package/dist-server/controllers/ecommerce/webspert-controller.js +131 -0
- package/dist-server/controllers/ecommerce/webspert-controller.js.map +1 -0
- package/dist-server/controllers/index.js +19 -0
- package/dist-server/controllers/index.js.map +1 -0
- package/dist-server/controllers/warehouse-controller.js +143 -0
- package/dist-server/controllers/warehouse-controller.js.map +1 -0
- package/dist-server/index.js +35 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/middlewares/index.js +1 -0
- package/dist-server/middlewares/index.js.map +1 -0
- package/dist-server/migrations/index.js +12 -0
- package/dist-server/migrations/index.js.map +1 -0
- package/dist-server/service/index.js +96 -0
- package/dist-server/service/index.js.map +1 -0
- package/dist-server/service/inventory/index.js +9 -0
- package/dist-server/service/inventory/index.js.map +1 -0
- package/dist-server/service/inventory/inventory-mutation.js +414 -0
- package/dist-server/service/inventory/inventory-mutation.js.map +1 -0
- package/dist-server/service/inventory/inventory-query.js +1211 -0
- package/dist-server/service/inventory/inventory-query.js.map +1 -0
- package/dist-server/service/inventory/inventory-types.js +478 -0
- package/dist-server/service/inventory/inventory-types.js.map +1 -0
- package/dist-server/service/inventory/inventory.js +569 -0
- package/dist-server/service/inventory/inventory.js.map +1 -0
- package/dist-server/service/inventory-change/index.js +9 -0
- package/dist-server/service/inventory-change/index.js.map +1 -0
- package/dist-server/service/inventory-change/inventory-change-mutation.js +1188 -0
- package/dist-server/service/inventory-change/inventory-change-mutation.js.map +1 -0
- package/dist-server/service/inventory-change/inventory-change-query.js +150 -0
- package/dist-server/service/inventory-change/inventory-change-query.js.map +1 -0
- package/dist-server/service/inventory-change/inventory-change-types.js +73 -0
- package/dist-server/service/inventory-change/inventory-change-types.js.map +1 -0
- package/dist-server/service/inventory-change/inventory-change.js +225 -0
- package/dist-server/service/inventory-change/inventory-change.js.map +1 -0
- package/dist-server/service/inventory-history/index.js +9 -0
- package/dist-server/service/inventory-history/index.js.map +1 -0
- package/dist-server/service/inventory-history/inventory-history-mutation.js +121 -0
- package/dist-server/service/inventory-history/inventory-history-mutation.js.map +1 -0
- package/dist-server/service/inventory-history/inventory-history-query.js +1694 -0
- package/dist-server/service/inventory-history/inventory-history-query.js.map +1 -0
- package/dist-server/service/inventory-history/inventory-history-types.js +626 -0
- package/dist-server/service/inventory-history/inventory-history-types.js.map +1 -0
- package/dist-server/service/inventory-history/inventory-history.js +238 -0
- package/dist-server/service/inventory-history/inventory-history.js.map +1 -0
- package/dist-server/service/inventory-item/index.js +9 -0
- package/dist-server/service/inventory-item/index.js.map +1 -0
- package/dist-server/service/inventory-item/inventory-item-mutation.js +274 -0
- package/dist-server/service/inventory-item/inventory-item-mutation.js.map +1 -0
- package/dist-server/service/inventory-item/inventory-item-query.js +265 -0
- package/dist-server/service/inventory-item/inventory-item-query.js.map +1 -0
- package/dist-server/service/inventory-item/inventory-item-type.js +127 -0
- package/dist-server/service/inventory-item/inventory-item-type.js.map +1 -0
- package/dist-server/service/inventory-item/inventory-item.js +146 -0
- package/dist-server/service/inventory-item/inventory-item.js.map +1 -0
- package/dist-server/service/inventory-item-change/index.js +9 -0
- package/dist-server/service/inventory-item-change/index.js.map +1 -0
- package/dist-server/service/inventory-item-change/inventory-item-change-mutation.js +121 -0
- package/dist-server/service/inventory-item-change/inventory-item-change-mutation.js.map +1 -0
- package/dist-server/service/inventory-item-change/inventory-item-change-query.js +87 -0
- package/dist-server/service/inventory-item-change/inventory-item-change-query.js.map +1 -0
- package/dist-server/service/inventory-item-change/inventory-item-change-type.js +107 -0
- package/dist-server/service/inventory-item-change/inventory-item-change-type.js.map +1 -0
- package/dist-server/service/inventory-item-change/inventory-item-change.js +110 -0
- package/dist-server/service/inventory-item-change/inventory-item-change.js.map +1 -0
- package/dist-server/service/inventory-product/index.js +9 -0
- package/dist-server/service/inventory-product/index.js.map +1 -0
- package/dist-server/service/inventory-product/inventory-product-mutation.js +120 -0
- package/dist-server/service/inventory-product/inventory-product-mutation.js.map +1 -0
- package/dist-server/service/inventory-product/inventory-product-query.js +87 -0
- package/dist-server/service/inventory-product/inventory-product-query.js.map +1 -0
- package/dist-server/service/inventory-product/inventory-product-type.js +95 -0
- package/dist-server/service/inventory-product/inventory-product-type.js.map +1 -0
- package/dist-server/service/inventory-product/inventory-product.js +112 -0
- package/dist-server/service/inventory-product/inventory-product.js.map +1 -0
- package/dist-server/service/location/index.js +9 -0
- package/dist-server/service/location/index.js.map +1 -0
- package/dist-server/service/location/location-mutation.js +279 -0
- package/dist-server/service/location/location-mutation.js.map +1 -0
- package/dist-server/service/location/location-query.js +321 -0
- package/dist-server/service/location/location-query.js.map +1 -0
- package/dist-server/service/location/location-types.js +296 -0
- package/dist-server/service/location/location-types.js.map +1 -0
- package/dist-server/service/location/location.js +146 -0
- package/dist-server/service/location/location.js.map +1 -0
- package/dist-server/service/movement/index.js +9 -0
- package/dist-server/service/movement/index.js.map +1 -0
- package/dist-server/service/movement/movement-mutation.js +80 -0
- package/dist-server/service/movement/movement-mutation.js.map +1 -0
- package/dist-server/service/movement/movement-query.js +286 -0
- package/dist-server/service/movement/movement-query.js.map +1 -0
- package/dist-server/service/movement/movement-types.js +117 -0
- package/dist-server/service/movement/movement-types.js.map +1 -0
- package/dist-server/service/movement/movement.js +101 -0
- package/dist-server/service/movement/movement.js.map +1 -0
- package/dist-server/service/pallet/index.js +9 -0
- package/dist-server/service/pallet/index.js.map +1 -0
- package/dist-server/service/pallet/pallet-mutation.js +194 -0
- package/dist-server/service/pallet/pallet-mutation.js.map +1 -0
- package/dist-server/service/pallet/pallet-query.js +164 -0
- package/dist-server/service/pallet/pallet-query.js.map +1 -0
- package/dist-server/service/pallet/pallet-types.js +109 -0
- package/dist-server/service/pallet/pallet-types.js.map +1 -0
- package/dist-server/service/pallet/pallet.js +112 -0
- package/dist-server/service/pallet/pallet.js.map +1 -0
- package/dist-server/service/pallet-count/index.js +9 -0
- package/dist-server/service/pallet-count/index.js.map +1 -0
- package/dist-server/service/pallet-count/pallet-count-mutation.js +153 -0
- package/dist-server/service/pallet-count/pallet-count-mutation.js.map +1 -0
- package/dist-server/service/pallet-count/pallet-count-query.js +86 -0
- package/dist-server/service/pallet-count/pallet-count-query.js.map +1 -0
- package/dist-server/service/pallet-count/pallet-count-types.js +65 -0
- package/dist-server/service/pallet-count/pallet-count-types.js.map +1 -0
- package/dist-server/service/pallet-count/pallet-count.js +89 -0
- package/dist-server/service/pallet-count/pallet-count.js.map +1 -0
- package/dist-server/service/pallet-history/index.js +9 -0
- package/dist-server/service/pallet-history/index.js.map +1 -0
- package/dist-server/service/pallet-history/pallet-history-mutation.js +120 -0
- package/dist-server/service/pallet-history/pallet-history-mutation.js.map +1 -0
- package/dist-server/service/pallet-history/pallet-history-query.js +87 -0
- package/dist-server/service/pallet-history/pallet-history-query.js.map +1 -0
- package/dist-server/service/pallet-history/pallet-history-types.js +65 -0
- package/dist-server/service/pallet-history/pallet-history-types.js.map +1 -0
- package/dist-server/service/pallet-history/pallet-history.js +107 -0
- package/dist-server/service/pallet-history/pallet-history.js.map +1 -0
- package/dist-server/service/product-detail-stock/index.js +9 -0
- package/dist-server/service/product-detail-stock/index.js.map +1 -0
- package/dist-server/service/product-detail-stock/product-detail-stock-mutation.js +120 -0
- package/dist-server/service/product-detail-stock/product-detail-stock-mutation.js.map +1 -0
- package/dist-server/service/product-detail-stock/product-detail-stock-query.js +66 -0
- package/dist-server/service/product-detail-stock/product-detail-stock-query.js.map +1 -0
- package/dist-server/service/product-detail-stock/product-detail-stock-types.js +57 -0
- package/dist-server/service/product-detail-stock/product-detail-stock-types.js.map +1 -0
- package/dist-server/service/product-detail-stock/product-detail-stock.js +90 -0
- package/dist-server/service/product-detail-stock/product-detail-stock.js.map +1 -0
- package/dist-server/service/reduced-inventory-history/index.js +6 -0
- package/dist-server/service/reduced-inventory-history/index.js.map +1 -0
- package/dist-server/service/reduced-inventory-history/reduced-inventory-history.js +133 -0
- package/dist-server/service/reduced-inventory-history/reduced-inventory-history.js.map +1 -0
- package/dist-server/service/tote/index.js +9 -0
- package/dist-server/service/tote/index.js.map +1 -0
- package/dist-server/service/tote/tote-mutation.js +192 -0
- package/dist-server/service/tote/tote-mutation.js.map +1 -0
- package/dist-server/service/tote/tote-query.js +162 -0
- package/dist-server/service/tote/tote-query.js.map +1 -0
- package/dist-server/service/tote/tote-types.js +75 -0
- package/dist-server/service/tote/tote-types.js.map +1 -0
- package/dist-server/service/tote/tote.js +98 -0
- package/dist-server/service/tote/tote.js.map +1 -0
- package/dist-server/service/warehouse/index.js +9 -0
- package/dist-server/service/warehouse/index.js.map +1 -0
- package/dist-server/service/warehouse/warehouse-mutation.js +148 -0
- package/dist-server/service/warehouse/warehouse-mutation.js.map +1 -0
- package/dist-server/service/warehouse/warehouse-query.js +91 -0
- package/dist-server/service/warehouse/warehouse-query.js.map +1 -0
- package/dist-server/service/warehouse/warehouse-types.js +82 -0
- package/dist-server/service/warehouse/warehouse-types.js.map +1 -0
- package/dist-server/service/warehouse/warehouse.js +114 -0
- package/dist-server/service/warehouse/warehouse.js.map +1 -0
- package/dist-server/utils/datetime-util.js +61 -0
- package/dist-server/utils/datetime-util.js.map +1 -0
- package/dist-server/utils/index.js +20 -0
- package/dist-server/utils/index.js.map +1 -0
- package/dist-server/utils/inventory-no-generator.js +17 -0
- package/dist-server/utils/inventory-no-generator.js.map +1 -0
- package/dist-server/utils/inventory-util.js +413 -0
- package/dist-server/utils/inventory-util.js.map +1 -0
- package/package.json +10 -10
|
@@ -0,0 +1,109 @@
|
|
|
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.PalletValidate = exports.PalletPatch = exports.PalletList = exports.NewPallet = void 0;
|
|
14
|
+
const type_graphql_1 = require("type-graphql");
|
|
15
|
+
const shell_1 = require("@things-factory/shell");
|
|
16
|
+
const pallet_1 = require("./pallet");
|
|
17
|
+
let NewPallet = class NewPallet {
|
|
18
|
+
};
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, type_graphql_1.Field)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], NewPallet.prototype, "name", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], NewPallet.prototype, "seq", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
|
|
29
|
+
__metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
|
|
30
|
+
], NewPallet.prototype, "owner", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
|
|
33
|
+
__metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
|
|
34
|
+
], NewPallet.prototype, "holder", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], NewPallet.prototype, "status", void 0);
|
|
39
|
+
NewPallet = __decorate([
|
|
40
|
+
(0, type_graphql_1.InputType)()
|
|
41
|
+
], NewPallet);
|
|
42
|
+
exports.NewPallet = NewPallet;
|
|
43
|
+
let PalletList = class PalletList {
|
|
44
|
+
};
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, type_graphql_1.Field)(type => [pallet_1.Pallet], { nullable: true }),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], PalletList.prototype, "items", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], PalletList.prototype, "total", void 0);
|
|
53
|
+
PalletList = __decorate([
|
|
54
|
+
(0, type_graphql_1.ObjectType)()
|
|
55
|
+
], PalletList);
|
|
56
|
+
exports.PalletList = PalletList;
|
|
57
|
+
let PalletPatch = class PalletPatch {
|
|
58
|
+
};
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], PalletPatch.prototype, "id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], PalletPatch.prototype, "name", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], PalletPatch.prototype, "seq", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
|
|
73
|
+
__metadata("design:type", typeof (_c = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _c : Object)
|
|
74
|
+
], PalletPatch.prototype, "owner", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
|
|
77
|
+
__metadata("design:type", typeof (_d = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _d : Object)
|
|
78
|
+
], PalletPatch.prototype, "holder", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
|
|
81
|
+
__metadata("design:type", typeof (_e = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _e : Object)
|
|
82
|
+
], PalletPatch.prototype, "inventory", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], PalletPatch.prototype, "status", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], PalletPatch.prototype, "cuFlag", void 0);
|
|
91
|
+
PalletPatch = __decorate([
|
|
92
|
+
(0, type_graphql_1.InputType)()
|
|
93
|
+
], PalletPatch);
|
|
94
|
+
exports.PalletPatch = PalletPatch;
|
|
95
|
+
let PalletValidate = class PalletValidate {
|
|
96
|
+
};
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, type_graphql_1.Field)(type => pallet_1.Pallet, { nullable: true }),
|
|
99
|
+
__metadata("design:type", pallet_1.Pallet)
|
|
100
|
+
], PalletValidate.prototype, "item", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], PalletValidate.prototype, "error", void 0);
|
|
105
|
+
PalletValidate = __decorate([
|
|
106
|
+
(0, type_graphql_1.ObjectType)()
|
|
107
|
+
], PalletValidate);
|
|
108
|
+
exports.PalletValidate = PalletValidate;
|
|
109
|
+
//# sourceMappingURL=pallet-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pallet-types.js","sourceRoot":"","sources":["../../../server/service/pallet/pallet-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAgE;AAEhE,iDAAiD;AAEjD,qCAAiC;AAG1B,IAAM,SAAS,GAAf,MAAM,SAAS;CAerB,CAAA;AAdC;IAAC,IAAA,oBAAK,GAAE;;uCACI;AAEZ;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC3B;AAEZ;IAAC,IAAA,oBAAK,EAAC,IAA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AA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACpC,iBAAS,oBAAT,iBAAS;2CAAA;AAElB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACjC,iBAAS,oBAAT,iBAAS;8CAAA;AAErB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACX;AAEf;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACX;AAvBJ,WAAW;IADvB,IAAA,wBAAS,GAAE;GACC,WAAW,CAwBvB;AAxBY,kCAAW;AA2BjB,IAAM,cAAc,GAApB,MAAM,cAAc;CAM1B,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,eAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACnC,eAAM;4CAAA;AAEb;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACZ;AALH,cAAc;IAD1B,IAAA,yBAAU,GAAE;GACA,cAAc,CAM1B;AANY,wCAAc"}
|
|
@@ -0,0 +1,112 @@
|
|
|
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.Pallet = 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 shell_1 = require("@things-factory/shell");
|
|
19
|
+
const inventory_1 = require("../inventory/inventory");
|
|
20
|
+
let Pallet = class Pallet {
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
24
|
+
(0, type_graphql_1.Field)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], Pallet.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
29
|
+
(0, type_graphql_1.Field)(),
|
|
30
|
+
__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
|
|
31
|
+
], Pallet.prototype, "domain", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.RelationId)((pallet) => pallet.domain),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], Pallet.prototype, "domainId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)(),
|
|
38
|
+
(0, type_graphql_1.Field)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Pallet.prototype, "name", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
43
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], Pallet.prototype, "seq", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.ManyToOne)(type => biz_base_1.Bizplace),
|
|
48
|
+
(0, type_graphql_1.Field)(),
|
|
49
|
+
__metadata("design:type", typeof (_b = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _b : Object)
|
|
50
|
+
], Pallet.prototype, "owner", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.ManyToOne)(type => biz_base_1.Bizplace),
|
|
53
|
+
(0, type_graphql_1.Field)(),
|
|
54
|
+
__metadata("design:type", typeof (_c = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _c : Object)
|
|
55
|
+
], Pallet.prototype, "holder", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.OneToOne)(type => inventory_1.Inventory, { nullable: true }),
|
|
58
|
+
(0, typeorm_1.JoinColumn)(),
|
|
59
|
+
(0, type_graphql_1.Field)(type => inventory_1.Inventory, { nullable: true }),
|
|
60
|
+
__metadata("design:type", inventory_1.Inventory)
|
|
61
|
+
], Pallet.prototype, "inventory", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({
|
|
64
|
+
nullable: true
|
|
65
|
+
}),
|
|
66
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], Pallet.prototype, "refOrderNo", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)(),
|
|
71
|
+
(0, type_graphql_1.Field)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], Pallet.prototype, "status", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
76
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
77
|
+
__metadata("design:type", Date)
|
|
78
|
+
], Pallet.prototype, "createdAt", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
81
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
82
|
+
__metadata("design:type", Date)
|
|
83
|
+
], Pallet.prototype, "updatedAt", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
86
|
+
nullable: true
|
|
87
|
+
}),
|
|
88
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
89
|
+
__metadata("design:type", typeof (_d = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _d : Object)
|
|
90
|
+
], Pallet.prototype, "creator", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.RelationId)((pallet) => pallet.creator),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], Pallet.prototype, "creatorId", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
|
|
97
|
+
nullable: true
|
|
98
|
+
}),
|
|
99
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
100
|
+
__metadata("design:type", typeof (_e = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _e : Object)
|
|
101
|
+
], Pallet.prototype, "updater", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.RelationId)((pallet) => pallet.updater),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], Pallet.prototype, "updaterId", void 0);
|
|
106
|
+
Pallet = __decorate([
|
|
107
|
+
(0, typeorm_1.Entity)(),
|
|
108
|
+
(0, typeorm_1.Index)('ix_pallet_0', (pallet) => [pallet.domain, pallet.name], { unique: true }),
|
|
109
|
+
(0, type_graphql_1.ObjectType)()
|
|
110
|
+
], Pallet);
|
|
111
|
+
exports.Pallet = Pallet;
|
|
112
|
+
//# sourceMappingURL=pallet.js.map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I,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACxF,IAAA,yBAAU,GAAE;GACA,MAAM,CAoElB;AApEY,wBAAM"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const pallet_count_1 = require("./pallet-count");
|
|
5
|
+
const pallet_count_mutation_1 = require("./pallet-count-mutation");
|
|
6
|
+
const pallet_count_query_1 = require("./pallet-count-query");
|
|
7
|
+
exports.entities = [pallet_count_1.PalletCount];
|
|
8
|
+
exports.resolvers = [pallet_count_query_1.PalletCountQuery, pallet_count_mutation_1.PalletCountMutation];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/pallet-count/index.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAC5C,mEAA6D;AAC7D,6DAAuD;AAE1C,QAAA,QAAQ,GAAG,CAAC,0BAAW,CAAC,CAAA;AACxB,QAAA,SAAS,GAAG,CAAC,qCAAgB,EAAE,2CAAmB,CAAC,CAAA"}
|
|
@@ -0,0 +1,153 @@
|
|
|
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.PalletCountMutation = void 0;
|
|
16
|
+
const type_graphql_1 = require("type-graphql");
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
const uuid_1 = require("uuid");
|
|
19
|
+
const pallet_count_1 = require("./pallet-count");
|
|
20
|
+
const pallet_count_types_1 = require("./pallet-count-types");
|
|
21
|
+
let PalletCountMutation = class PalletCountMutation {
|
|
22
|
+
async createPalletCount(palletCount, context) {
|
|
23
|
+
const { domain, user, tx } = context.state;
|
|
24
|
+
return await tx.getRepository(pallet_count_1.PalletCount).save(Object.assign(Object.assign({}, palletCount), { domain: domain, creator: user, updater: user }));
|
|
25
|
+
}
|
|
26
|
+
async updatePalletCount(name, patch, context) {
|
|
27
|
+
const { domain, user, tx } = context.state;
|
|
28
|
+
const repository = tx.getRepository(pallet_count_1.PalletCount);
|
|
29
|
+
const palletCount = await repository.findOne({
|
|
30
|
+
where: { domain: domain, name }
|
|
31
|
+
});
|
|
32
|
+
return await repository.save(Object.assign(Object.assign(Object.assign({}, palletCount), patch), { updater: user }));
|
|
33
|
+
}
|
|
34
|
+
async updateMultiplePalletCount(patches, context) {
|
|
35
|
+
const { domain, user, tx } = context.state;
|
|
36
|
+
let results = [];
|
|
37
|
+
const _createRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === '+');
|
|
38
|
+
const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
|
|
39
|
+
const palletCountRepo = tx.getRepository(pallet_count_1.PalletCount);
|
|
40
|
+
if (_createRecords.length > 0) {
|
|
41
|
+
for (let i = 0; i < _createRecords.length; i++) {
|
|
42
|
+
const newRecord = _createRecords[i];
|
|
43
|
+
const result = await palletCountRepo.save(Object.assign(Object.assign({}, newRecord), { domain: domain, creator: user, updater: user }));
|
|
44
|
+
results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (_updateRecords.length > 0) {
|
|
48
|
+
for (let i = 0; i < _updateRecords.length; i++) {
|
|
49
|
+
const newRecord = _updateRecords[i];
|
|
50
|
+
const palletCount = await palletCountRepo.findOne(newRecord.id);
|
|
51
|
+
const result = await palletCountRepo.save(Object.assign(Object.assign(Object.assign({}, palletCount), newRecord), { updater: user }));
|
|
52
|
+
results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return results;
|
|
56
|
+
}
|
|
57
|
+
async deletePalletCount(name, context) {
|
|
58
|
+
const { domain, tx } = context.state;
|
|
59
|
+
await tx.getRepository(pallet_count_1.PalletCount).delete({ domain: domain, name });
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
async deletePalletCounts(names, context) {
|
|
63
|
+
const { domain, tx } = context.state;
|
|
64
|
+
await tx.getRepository(pallet_count_1.PalletCount).delete({
|
|
65
|
+
domain: domain,
|
|
66
|
+
name: (0, typeorm_1.In)(names)
|
|
67
|
+
});
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
async updatePalletCountSeq(printQty, context) {
|
|
71
|
+
const { domain, user, tx } = context.state;
|
|
72
|
+
const repository = tx.getRepository(pallet_count_1.PalletCount);
|
|
73
|
+
const todayDate = new Date();
|
|
74
|
+
todayDate.setHours(0, 0, 0, 0);
|
|
75
|
+
const palletCount = await repository.findOne({
|
|
76
|
+
where: { domain: domain, createdAt: (0, typeorm_1.MoreThan)(todayDate) }
|
|
77
|
+
});
|
|
78
|
+
if (!palletCount) {
|
|
79
|
+
let newPallet = {
|
|
80
|
+
name: (0, uuid_1.v4)(),
|
|
81
|
+
seq: 0,
|
|
82
|
+
domain: domain,
|
|
83
|
+
creator: user,
|
|
84
|
+
updater: user
|
|
85
|
+
};
|
|
86
|
+
return await tx.getRepository(pallet_count_1.PalletCount).save(Object.assign(Object.assign({}, newPallet), { seq: printQty }));
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
await tx.getRepository(pallet_count_1.PalletCount).save(Object.assign(Object.assign({}, palletCount), { seq: printQty + palletCount.seq }));
|
|
90
|
+
return palletCount;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
96
|
+
(0, type_graphql_1.Mutation)(returns => pallet_count_1.PalletCount),
|
|
97
|
+
__param(0, (0, type_graphql_1.Arg)('palletCount')),
|
|
98
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
99
|
+
__metadata("design:type", Function),
|
|
100
|
+
__metadata("design:paramtypes", [pallet_count_types_1.NewPalletCount, Object]),
|
|
101
|
+
__metadata("design:returntype", Promise)
|
|
102
|
+
], PalletCountMutation.prototype, "createPalletCount", null);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
105
|
+
(0, type_graphql_1.Mutation)(returns => pallet_count_1.PalletCount),
|
|
106
|
+
__param(0, (0, type_graphql_1.Arg)('name')),
|
|
107
|
+
__param(1, (0, type_graphql_1.Arg)('patch')),
|
|
108
|
+
__param(2, (0, type_graphql_1.Ctx)()),
|
|
109
|
+
__metadata("design:type", Function),
|
|
110
|
+
__metadata("design:paramtypes", [String, pallet_count_types_1.PalletCountPatch, Object]),
|
|
111
|
+
__metadata("design:returntype", Promise)
|
|
112
|
+
], PalletCountMutation.prototype, "updatePalletCount", null);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
115
|
+
(0, type_graphql_1.Mutation)(returns => [pallet_count_1.PalletCount]),
|
|
116
|
+
__param(0, (0, type_graphql_1.Arg)('patches', type => [pallet_count_types_1.PalletCountPatch])),
|
|
117
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
118
|
+
__metadata("design:type", Function),
|
|
119
|
+
__metadata("design:paramtypes", [Array, Object]),
|
|
120
|
+
__metadata("design:returntype", Promise)
|
|
121
|
+
], PalletCountMutation.prototype, "updateMultiplePalletCount", null);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
124
|
+
(0, type_graphql_1.Mutation)(returns => Boolean),
|
|
125
|
+
__param(0, (0, type_graphql_1.Arg)('name')),
|
|
126
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
127
|
+
__metadata("design:type", Function),
|
|
128
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
129
|
+
__metadata("design:returntype", Promise)
|
|
130
|
+
], PalletCountMutation.prototype, "deletePalletCount", null);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
133
|
+
(0, type_graphql_1.Mutation)(returns => Boolean),
|
|
134
|
+
__param(0, (0, type_graphql_1.Arg)('names', type => [String])),
|
|
135
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
136
|
+
__metadata("design:type", Function),
|
|
137
|
+
__metadata("design:paramtypes", [Array, Object]),
|
|
138
|
+
__metadata("design:returntype", Promise)
|
|
139
|
+
], PalletCountMutation.prototype, "deletePalletCounts", null);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, type_graphql_1.Directive)('@transaction'),
|
|
142
|
+
(0, type_graphql_1.Mutation)(returns => pallet_count_1.PalletCount),
|
|
143
|
+
__param(0, (0, type_graphql_1.Arg)('printQty')),
|
|
144
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
145
|
+
__metadata("design:type", Function),
|
|
146
|
+
__metadata("design:paramtypes", [Number, Object]),
|
|
147
|
+
__metadata("design:returntype", Promise)
|
|
148
|
+
], PalletCountMutation.prototype, "updatePalletCountSeq", null);
|
|
149
|
+
PalletCountMutation = __decorate([
|
|
150
|
+
(0, type_graphql_1.Resolver)(pallet_count_1.PalletCount)
|
|
151
|
+
], PalletCountMutation);
|
|
152
|
+
exports.PalletCountMutation = PalletCountMutation;
|
|
153
|
+
//# sourceMappingURL=pallet-count-mutation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pallet-count-mutation.js","sourceRoot":"","sources":["../../../server/service/pallet-count/pallet-count-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAAqD;AACrD,+BAAmC;AAKnC,iDAA4C;AAC5C,6DAAuE;AAGhE,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAGxB,AAAN,KAAK,CAAC,iBAAiB,CAAqB,WAA2B,EAAS,OAAY;QAC1F,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;QAE7F,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,0BAAW,CAAC,CAAC,IAAI,iCAC1C,WAAW,KACd,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAIK,AAAN,KAAK,CAAC,iBAAiB,CACR,IAAY,EACX,KAAuB,EAC9B,OAAY;QAEnB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;QAE7F,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,0BAAW,CAAC,CAAA;QAChD,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC;YAC3C,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE;SAChC,CAAC,CAAA;QAEF,OAAO,MAAM,UAAU,CAAC,IAAI,+CACvB,WAAW,GACX,KAAK,KACR,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAIK,AAAN,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AW,CAAC,CAAC;IAEhC,WAAA,IAAA,kBAAG,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,qCAAgB,CAAC,CAAC,CAAA;IAC1C,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;oEAwCP;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC;IACJ,WAAA,IAAA,kBAAG,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;4DAKxD;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC;IACH,WAAA,IAAA,kBAAG,EAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAAmB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;6DAQ/E;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,0BAAW,CAAC;IACL,WAAA,IAAA,kBAAG,EAAC,UAAU,CAAC,CAAA;IAAoB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;+DA+BnE;AAvIU,mBAAmB;IAD/B,IAAA,uBAAQ,EAAC,0BAAW,CAAC;GACT,mBAAmB,CAwI/B;AAxIY,kDAAmB"}
|
|
@@ -0,0 +1,86 @@
|
|
|
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.PalletCountQuery = 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 pallet_count_1 = require("./pallet-count");
|
|
22
|
+
const pallet_count_types_1 = require("./pallet-count-types");
|
|
23
|
+
let PalletCountQuery = class PalletCountQuery {
|
|
24
|
+
async palletCounts(params) {
|
|
25
|
+
const convertedParams = (0, shell_1.convertListParams)(params);
|
|
26
|
+
const [items, total] = await (0, typeorm_1.getRepository)(pallet_count_1.PalletCount).findAndCount(Object.assign(Object.assign({}, convertedParams), { relations: ['domain', 'creator', 'updater'] }));
|
|
27
|
+
return { items, total };
|
|
28
|
+
}
|
|
29
|
+
async palletCount(name, context) {
|
|
30
|
+
const { domain } = context.state;
|
|
31
|
+
return await (0, typeorm_1.getRepository)(pallet_count_1.PalletCount).findOne({
|
|
32
|
+
where: { domain: domain, name },
|
|
33
|
+
relations: ['domain', 'creator', 'updater']
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
async domain(palletCount) {
|
|
37
|
+
return await (0, typeorm_1.getRepository)(shell_1.Domain).findOne(palletCount.domainId);
|
|
38
|
+
}
|
|
39
|
+
async updater(palletCount) {
|
|
40
|
+
return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(palletCount.updaterId);
|
|
41
|
+
}
|
|
42
|
+
async creator(palletCount) {
|
|
43
|
+
return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(palletCount.creatorId);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, type_graphql_1.Query)(returns => pallet_count_types_1.PalletCountList),
|
|
48
|
+
__param(0, (0, type_graphql_1.Args)()),
|
|
49
|
+
__metadata("design:type", Function),
|
|
50
|
+
__metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object]),
|
|
51
|
+
__metadata("design:returntype", Promise)
|
|
52
|
+
], PalletCountQuery.prototype, "palletCounts", null);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, type_graphql_1.Query)(returns => pallet_count_1.PalletCount),
|
|
55
|
+
__param(0, (0, type_graphql_1.Arg)('name')),
|
|
56
|
+
__param(1, (0, type_graphql_1.Ctx)()),
|
|
57
|
+
__metadata("design:type", Function),
|
|
58
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
59
|
+
__metadata("design:returntype", Promise)
|
|
60
|
+
], PalletCountQuery.prototype, "palletCount", null);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, type_graphql_1.FieldResolver)(type => shell_1.Domain),
|
|
63
|
+
__param(0, (0, type_graphql_1.Root)()),
|
|
64
|
+
__metadata("design:type", Function),
|
|
65
|
+
__metadata("design:paramtypes", [pallet_count_1.PalletCount]),
|
|
66
|
+
__metadata("design:returntype", Promise)
|
|
67
|
+
], PalletCountQuery.prototype, "domain", null);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
70
|
+
__param(0, (0, type_graphql_1.Root)()),
|
|
71
|
+
__metadata("design:type", Function),
|
|
72
|
+
__metadata("design:paramtypes", [pallet_count_1.PalletCount]),
|
|
73
|
+
__metadata("design:returntype", Promise)
|
|
74
|
+
], PalletCountQuery.prototype, "updater", null);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, type_graphql_1.FieldResolver)(type => auth_base_1.User),
|
|
77
|
+
__param(0, (0, type_graphql_1.Root)()),
|
|
78
|
+
__metadata("design:type", Function),
|
|
79
|
+
__metadata("design:paramtypes", [pallet_count_1.PalletCount]),
|
|
80
|
+
__metadata("design:returntype", Promise)
|
|
81
|
+
], PalletCountQuery.prototype, "creator", null);
|
|
82
|
+
PalletCountQuery = __decorate([
|
|
83
|
+
(0, type_graphql_1.Resolver)(pallet_count_1.PalletCount)
|
|
84
|
+
], PalletCountQuery);
|
|
85
|
+
exports.PalletCountQuery = PalletCountQuery;
|
|
86
|
+
//# sourceMappingURL=pallet-count-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pallet-count-query.js","sourceRoot":"","sources":["../../../server/service/pallet-count/pallet-count-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAmF;AACnF,qCAAuC;AAEvC,yDAAgD;AAChD,iDAA4E;AAE5E,iDAA4C;AAC5C,6DAAsD;AAG/C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAErB,AAAN,KAAK,CAAC,YAAY,CAAS,MAAiB;QAC1C,MAAM,eAAe,GAAG,IAAA,yBAAiB,EAAC,MAAM,CAAC,CAAA;QACjD,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,IAAA,uBAAa,EAAC,0BAAW,CAAC,CAAC,YAAY,iCAC/D,eAAe,KAClB,SAAS,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,IAC3C,CAAA;QACF,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAGK,AAAN,KAAK,CAAC,WAAW,CAAc,IAAY,EAAS,OAAY;QAC9D,MAAM,EAAE,MAAM,EAAE,GAAuB,OAAO,CAAC,KAAK,CAAA;QAE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E,CAAA;;qCAAc,0BAAW;;+CAE7C;AAGK;IADL,IAAA,4BAAa,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,CAAC;IACb,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAc,0BAAW;;+CAE7C;AAlCU,gBAAgB;IAD5B,IAAA,uBAAQ,EAAC,0BAAW,CAAC;GACT,gBAAgB,CAmC5B;AAnCY,4CAAgB"}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.PalletCountPatch = exports.PalletCountList = exports.NewPalletCount = void 0;
|
|
13
|
+
const type_graphql_1 = require("type-graphql");
|
|
14
|
+
const pallet_count_1 = require("./pallet-count");
|
|
15
|
+
let NewPalletCount = class NewPalletCount {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, type_graphql_1.Field)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], NewPalletCount.prototype, "name", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], NewPalletCount.prototype, "description", void 0);
|
|
25
|
+
NewPalletCount = __decorate([
|
|
26
|
+
(0, type_graphql_1.InputType)()
|
|
27
|
+
], NewPalletCount);
|
|
28
|
+
exports.NewPalletCount = NewPalletCount;
|
|
29
|
+
let PalletCountList = class PalletCountList {
|
|
30
|
+
};
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, type_graphql_1.Field)(type => [pallet_count_1.PalletCount], { nullable: true }),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], PalletCountList.prototype, "items", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], PalletCountList.prototype, "total", void 0);
|
|
39
|
+
PalletCountList = __decorate([
|
|
40
|
+
(0, type_graphql_1.ObjectType)()
|
|
41
|
+
], PalletCountList);
|
|
42
|
+
exports.PalletCountList = PalletCountList;
|
|
43
|
+
let PalletCountPatch = class PalletCountPatch {
|
|
44
|
+
};
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], PalletCountPatch.prototype, "id", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], PalletCountPatch.prototype, "name", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], PalletCountPatch.prototype, "description", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, type_graphql_1.Field)({ nullable: true }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], PalletCountPatch.prototype, "cuFlag", void 0);
|
|
61
|
+
PalletCountPatch = __decorate([
|
|
62
|
+
(0, type_graphql_1.InputType)()
|
|
63
|
+
], PalletCountPatch);
|
|
64
|
+
exports.PalletCountPatch = PalletCountPatch;
|
|
65
|
+
//# sourceMappingURL=pallet-count-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pallet-count-types.js","sourceRoot":"","sources":["../../../server/service/pallet-count/pallet-count-types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAgE;AAEhE,iDAA4C;AAGrC,IAAM,cAAc,GAApB,MAAM,cAAc;CAM1B,CAAA;AALC;IAAC,IAAA,oBAAK,GAAE;;4CACI;AAEZ;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACN;AALT,cAAc;IAD1B,IAAA,wBAAS,GAAE;GACC,cAAc,CAM1B;AANY,wCAAc;AASpB,IAAM,eAAe,GAArB,MAAM,eAAe;CAM3B,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,0BAAW,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CAC5B;AAErB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACzB;AALH,eAAe;IAD3B,IAAA,yBAAU,GAAE;GACA,eAAe,CAM3B;AANY,0CAAe;AASrB,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAY5B,CAAA;AAXC;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACf;AAEX;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACb;AAEb;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACN;AAEpB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACX;AAXJ,gBAAgB;IAD5B,IAAA,wBAAS,GAAE;GACC,gBAAgB,CAY5B;AAZY,4CAAgB"}
|