@things-factory/sales-base 4.2.12 → 4.3.0

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.
Files changed (109) hide show
  1. package/dist-server/constants/attachment-type.js +2 -1
  2. package/dist-server/constants/attachment-type.js.map +1 -1
  3. package/dist-server/constants/index.js +1 -0
  4. package/dist-server/constants/index.js.map +1 -1
  5. package/dist-server/constants/order.js +12 -3
  6. package/dist-server/constants/order.js.map +1 -1
  7. package/dist-server/constants/release-good.js +9 -0
  8. package/dist-server/constants/release-good.js.map +1 -0
  9. package/dist-server/service/draft-release-good/draft-release-good-mutation.js +501 -0
  10. package/dist-server/service/draft-release-good/draft-release-good-mutation.js.map +1 -0
  11. package/dist-server/service/draft-release-good/draft-release-good-query.js +289 -0
  12. package/dist-server/service/draft-release-good/draft-release-good-query.js.map +1 -0
  13. package/dist-server/service/draft-release-good/draft-release-good-type.js +364 -0
  14. package/dist-server/service/draft-release-good/draft-release-good-type.js.map +1 -0
  15. package/dist-server/service/draft-release-good/draft-release-good.js +321 -0
  16. package/dist-server/service/draft-release-good/draft-release-good.js.map +1 -0
  17. package/dist-server/service/draft-release-good/index.js +21 -0
  18. package/dist-server/service/draft-release-good/index.js.map +1 -0
  19. package/dist-server/service/index.js +47 -19
  20. package/dist-server/service/index.js.map +1 -1
  21. package/dist-server/service/order-inventory/order-inventory-query.js +38 -1
  22. package/dist-server/service/order-inventory/order-inventory-query.js.map +1 -1
  23. package/dist-server/service/order-inventory/order-inventory-types.js +9 -1
  24. package/dist-server/service/order-inventory/order-inventory-types.js.map +1 -1
  25. package/dist-server/service/order-inventory/order-inventory.js +5 -1
  26. package/dist-server/service/order-inventory/order-inventory.js.map +1 -1
  27. package/dist-server/service/order-product/order-product-types.js +13 -13
  28. package/dist-server/service/order-product/order-product-types.js.map +1 -1
  29. package/dist-server/service/order-product/order-product.js +39 -4
  30. package/dist-server/service/order-product/order-product.js.map +1 -1
  31. package/dist-server/service/order-tote/index.js +21 -0
  32. package/dist-server/service/order-tote/index.js.map +1 -0
  33. package/dist-server/service/order-tote/order-tote-mutation.js +56 -0
  34. package/dist-server/service/order-tote/order-tote-mutation.js.map +1 -0
  35. package/dist-server/service/order-tote/order-tote-query.js +123 -0
  36. package/dist-server/service/order-tote/order-tote-query.js.map +1 -0
  37. package/dist-server/service/order-tote/order-tote-types.js +79 -0
  38. package/dist-server/service/order-tote/order-tote-types.js.map +1 -0
  39. package/dist-server/service/order-tote/order-tote.js +91 -0
  40. package/dist-server/service/order-tote/order-tote.js.map +1 -0
  41. package/dist-server/service/order-tote-item/index.js +21 -0
  42. package/dist-server/service/order-tote-item/index.js.map +1 -0
  43. package/dist-server/service/order-tote-item/order-tote-item-mutation.js +56 -0
  44. package/dist-server/service/order-tote-item/order-tote-item-mutation.js.map +1 -0
  45. package/dist-server/service/order-tote-item/order-tote-item-query.js +100 -0
  46. package/dist-server/service/order-tote-item/order-tote-item-query.js.map +1 -0
  47. package/dist-server/service/order-tote-item/order-tote-item-types.js +91 -0
  48. package/dist-server/service/order-tote-item/order-tote-item-types.js.map +1 -0
  49. package/dist-server/service/order-tote-item/order-tote-item.js +104 -0
  50. package/dist-server/service/order-tote-item/order-tote-item.js.map +1 -0
  51. package/dist-server/service/order-tote-seal/index.js +21 -0
  52. package/dist-server/service/order-tote-seal/index.js.map +1 -0
  53. package/dist-server/service/order-tote-seal/order-tote-seal-mutation.js +56 -0
  54. package/dist-server/service/order-tote-seal/order-tote-seal-mutation.js.map +1 -0
  55. package/dist-server/service/order-tote-seal/order-tote-seal-query.js +97 -0
  56. package/dist-server/service/order-tote-seal/order-tote-seal-query.js.map +1 -0
  57. package/dist-server/service/order-tote-seal/order-tote-seal-types.js +71 -0
  58. package/dist-server/service/order-tote-seal/order-tote-seal-types.js.map +1 -0
  59. package/dist-server/service/order-tote-seal/order-tote-seal.js +71 -0
  60. package/dist-server/service/order-tote-seal/order-tote-seal.js.map +1 -0
  61. package/dist-server/service/others/other-query.js +37 -2
  62. package/dist-server/service/others/other-query.js.map +1 -1
  63. package/dist-server/service/release-good/release-good-mutation.js +23 -1
  64. package/dist-server/service/release-good/release-good-mutation.js.map +1 -1
  65. package/dist-server/service/release-good/release-good-query.js +28 -2
  66. package/dist-server/service/release-good/release-good-query.js.map +1 -1
  67. package/dist-server/service/release-good/release-good.js +32 -12
  68. package/dist-server/service/release-good/release-good.js.map +1 -1
  69. package/dist-server/utils/inventory-util.js +258 -99
  70. package/dist-server/utils/inventory-util.js.map +1 -1
  71. package/dist-server/utils/order-no-generator.js +7 -0
  72. package/dist-server/utils/order-no-generator.js.map +1 -1
  73. package/package.json +13 -13
  74. package/server/constants/attachment-type.ts +2 -1
  75. package/server/constants/index.ts +1 -0
  76. package/server/constants/order.ts +12 -2
  77. package/server/constants/release-good.ts +6 -0
  78. package/server/service/draft-release-good/draft-release-good-mutation.ts +671 -0
  79. package/server/service/draft-release-good/draft-release-good-query.ts +314 -0
  80. package/server/service/draft-release-good/draft-release-good-type.ts +261 -0
  81. package/server/service/draft-release-good/draft-release-good.ts +270 -0
  82. package/server/service/draft-release-good/index.ts +9 -0
  83. package/server/service/index.ts +51 -21
  84. package/server/service/order-inventory/order-inventory-query.ts +40 -2
  85. package/server/service/order-inventory/order-inventory-types.ts +6 -0
  86. package/server/service/order-inventory/order-inventory.ts +5 -5
  87. package/server/service/order-product/order-product-types.ts +5 -3
  88. package/server/service/order-product/order-product.ts +30 -3
  89. package/server/service/order-tote/index.ts +9 -0
  90. package/server/service/order-tote/order-tote-mutation.ts +30 -0
  91. package/server/service/order-tote/order-tote-query.ts +114 -0
  92. package/server/service/order-tote/order-tote-types.ts +47 -0
  93. package/server/service/order-tote/order-tote.ts +62 -0
  94. package/server/service/order-tote-item/index.ts +9 -0
  95. package/server/service/order-tote-item/order-tote-item-mutation.ts +30 -0
  96. package/server/service/order-tote-item/order-tote-item-query.ts +88 -0
  97. package/server/service/order-tote-item/order-tote-item-types.ts +56 -0
  98. package/server/service/order-tote-item/order-tote-item.ts +72 -0
  99. package/server/service/order-tote-seal/index.ts +9 -0
  100. package/server/service/order-tote-seal/order-tote-seal-mutation.ts +30 -0
  101. package/server/service/order-tote-seal/order-tote-seal-query.ts +60 -0
  102. package/server/service/order-tote-seal/order-tote-seal-types.ts +41 -0
  103. package/server/service/order-tote-seal/order-tote-seal.ts +46 -0
  104. package/server/service/others/other-query.ts +43 -8
  105. package/server/service/release-good/release-good-mutation.ts +24 -2
  106. package/server/service/release-good/release-good-query.ts +57 -30
  107. package/server/service/release-good/release-good.ts +28 -9
  108. package/server/utils/inventory-util.ts +287 -106
  109. package/server/utils/order-no-generator.ts +42 -48
@@ -0,0 +1,123 @@
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.OrderToteQuery = void 0;
17
+ const type_graphql_1 = require("type-graphql");
18
+ const typeorm_1 = require("typeorm");
19
+ const release_good_1 = require("../release-good/release-good");
20
+ const warehouse_base_1 = require("@things-factory/warehouse-base");
21
+ const shell_1 = require("@things-factory/shell");
22
+ const order_tote_1 = require("./order-tote");
23
+ const order_tote_types_1 = require("./order-tote-types");
24
+ const order_tote_seal_1 = require("../order-tote-seal/order-tote-seal");
25
+ let OrderToteQuery = class OrderToteQuery {
26
+ async orderTotes(context, filters, pagination, sortings) {
27
+ try {
28
+ const { domain } = context.state;
29
+ const releaseGoodNoParam = filters.find(item => item.name === 'releaseGoodNo');
30
+ const queryBuilder = await (0, typeorm_1.getRepository)(order_tote_1.OrderTote).createQueryBuilder();
31
+ (0, shell_1.buildQuery)(queryBuilder, { filters, pagination, sortings }, context);
32
+ queryBuilder
33
+ .leftJoinAndSelect('OrderTote.domain', 'Domain')
34
+ .leftJoinAndSelect('OrderTote.releaseGood', 'ReleaseGood')
35
+ .leftJoinAndSelect('OrderTote.tote', 'Tote')
36
+ .leftJoinAndSelect('OrderTote.updater', 'Updater')
37
+ .where('Domain.id = :domainId', { domainId: domain.id });
38
+ if (releaseGoodNoParam) {
39
+ filters.splice(filters.findIndex(item => item.name == 'releaseGoodNo'), 1);
40
+ queryBuilder.andWhere('ReleaseGood.name = :rgName', { rgName: releaseGoodNoParam.value });
41
+ }
42
+ let [items, total] = await queryBuilder.getManyAndCount();
43
+ let orderToteIds = items.map(itm => itm.id);
44
+ let orderToteSeals = await (0, typeorm_1.getRepository)(order_tote_seal_1.OrderToteSeal).find({
45
+ where: { orderTote: (0, typeorm_1.In)(orderToteIds) }
46
+ });
47
+ items = items.map((itm) => {
48
+ return Object.assign(Object.assign({}, itm), { orderToteSeals: orderToteSeals.filter(seal => seal.orderToteId == itm.id) });
49
+ });
50
+ return { items, total };
51
+ }
52
+ catch (e) {
53
+ throw new Error(e);
54
+ }
55
+ }
56
+ async orderTote(id, context) {
57
+ const { domain } = context.state;
58
+ return await (0, typeorm_1.getRepository)(order_tote_1.OrderTote).findOne({
59
+ where: { domain, id },
60
+ relations: ['domain', 'releaseGood', 'tote', 'updater']
61
+ });
62
+ }
63
+ async checkOrderTote(name, orderNo, context) {
64
+ const { domain } = context.state;
65
+ let foundOrder = await (0, typeorm_1.getRepository)(release_good_1.ReleaseGood).findOne({
66
+ where: { name: orderNo, domain },
67
+ relations: ['bizplace']
68
+ });
69
+ let scannedTote = await (0, typeorm_1.getRepository)(warehouse_base_1.Tote).findOne({ where: { name, bizplace: foundOrder.bizplace } });
70
+ let foundOrderTote = await (0, typeorm_1.getRepository)(order_tote_1.OrderTote).findOne({
71
+ where: { domain, releaseGood: foundOrder, name },
72
+ relations: ['domain', 'releaseGood', 'tote', 'updater']
73
+ });
74
+ if (!foundOrderTote && scannedTote) {
75
+ let executingOrderTote = await (0, typeorm_1.getRepository)(order_tote_1.OrderTote).find({
76
+ where: { tote: scannedTote },
77
+ relations: ['releaseGood']
78
+ });
79
+ executingOrderTote = executingOrderTote.filter(itm => itm.releaseGood.status !== 'DONE');
80
+ if (executingOrderTote && executingOrderTote.length > 0) {
81
+ throw new Error(`Current tote is used in another RO (${executingOrderTote[0].releaseGood.name})`);
82
+ }
83
+ }
84
+ if (foundOrderTote === null || foundOrderTote === void 0 ? void 0 : foundOrderTote.closedDate) {
85
+ return true;
86
+ }
87
+ else {
88
+ return false;
89
+ }
90
+ }
91
+ };
92
+ __decorate([
93
+ (0, type_graphql_1.Query)(returns => order_tote_types_1.OrderToteList),
94
+ __param(0, (0, type_graphql_1.Ctx)()),
95
+ __param(1, (0, type_graphql_1.Arg)('filters', type => [shell_1.Filter], { nullable: true })),
96
+ __param(2, (0, type_graphql_1.Arg)('pagination', type => shell_1.Pagination, { nullable: true })),
97
+ __param(3, (0, type_graphql_1.Arg)('sortings', type => [shell_1.Sorting], { nullable: true })),
98
+ __metadata("design:type", Function),
99
+ __metadata("design:paramtypes", [Object, Array, typeof (_a = typeof shell_1.Pagination !== "undefined" && shell_1.Pagination) === "function" ? _a : Object, Array]),
100
+ __metadata("design:returntype", Promise)
101
+ ], OrderToteQuery.prototype, "orderTotes", null);
102
+ __decorate([
103
+ (0, type_graphql_1.Query)(returns => order_tote_1.OrderTote),
104
+ __param(0, (0, type_graphql_1.Arg)('id')),
105
+ __param(1, (0, type_graphql_1.Ctx)()),
106
+ __metadata("design:type", Function),
107
+ __metadata("design:paramtypes", [String, Object]),
108
+ __metadata("design:returntype", Promise)
109
+ ], OrderToteQuery.prototype, "orderTote", null);
110
+ __decorate([
111
+ (0, type_graphql_1.Query)(returns => Boolean),
112
+ __param(0, (0, type_graphql_1.Arg)('name')),
113
+ __param(1, (0, type_graphql_1.Arg)('orderNo')),
114
+ __param(2, (0, type_graphql_1.Ctx)()),
115
+ __metadata("design:type", Function),
116
+ __metadata("design:paramtypes", [String, String, Object]),
117
+ __metadata("design:returntype", Promise)
118
+ ], OrderToteQuery.prototype, "checkOrderTote", null);
119
+ OrderToteQuery = __decorate([
120
+ (0, type_graphql_1.Resolver)(order_tote_1.OrderTote)
121
+ ], OrderToteQuery);
122
+ exports.OrderToteQuery = OrderToteQuery;
123
+ //# sourceMappingURL=order-tote-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-tote-query.js","sourceRoot":"","sources":["../../../server/service/order-tote/order-tote-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6E;AAC7E,qCAAmD;AAGnD,+DAA0D;AAC1D,mEAAqD;AACrD,iDAAuF;AAGvF,6CAAwC;AACxC,yDAAkD;AAClD,wEAAkE;AAGlE,IAAa,cAAc,GAA3B,MAAa,cAAc;IAEzB,KAAK,CAAC,UAAU,CACP,OAAY,EACmC,OAAkB,EACb,UAAuB,EAC1B,QAAoB;QAE5E,IAAI;YACF,MAAM,EAAE,MAAM,EAAE,GAAuB,OAAO,CAAC,KAAK,CAAA;YAEpD,MAAM,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,eAAe,CAAC,CAAA;YAE9E,MAAM,YAAY,GAAG,MAAM,IAAA,uBAAa,EAAC,sBAAS,CAAC,CAAC,kBAAkB,EAAE,CAAA;YACxE,IAAA,kBAAU,EAAC,YAAY,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,O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AAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;+CAO5C;AAGD;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC;IAEvB,WAAA,IAAA,kBAAG,EAAC,MAAM,CAAC,CAAA;IACX,WAAA,IAAA,kBAAG,EAAC,SAAS,CAAC,CAAA;IACd,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;oDAgCP;AAlGU,cAAc;IAD1B,IAAA,uBAAQ,EAAC,sBAAS,CAAC;GACP,cAAc,CAmG1B;AAnGY,wCAAc"}
@@ -0,0 +1,79 @@
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;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.OrderTotePatch = exports.NewOrderTote = exports.OrderToteList = void 0;
14
+ const type_graphql_1 = require("type-graphql");
15
+ const shell_1 = require("@things-factory/shell");
16
+ const order_tote_1 = require("./order-tote");
17
+ let OrderToteList = class OrderToteList {
18
+ };
19
+ __decorate([
20
+ (0, type_graphql_1.Field)(type => [order_tote_1.OrderTote], { nullable: true }),
21
+ __metadata("design:type", Array)
22
+ ], OrderToteList.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
+ ], OrderToteList.prototype, "total", void 0);
27
+ OrderToteList = __decorate([
28
+ (0, type_graphql_1.ObjectType)()
29
+ ], OrderToteList);
30
+ exports.OrderToteList = OrderToteList;
31
+ let NewOrderTote = class NewOrderTote {
32
+ };
33
+ __decorate([
34
+ (0, type_graphql_1.Field)({ nullable: true }),
35
+ __metadata("design:type", String)
36
+ ], NewOrderTote.prototype, "name", void 0);
37
+ __decorate([
38
+ (0, type_graphql_1.Field)({ nullable: true }),
39
+ __metadata("design:type", String)
40
+ ], NewOrderTote.prototype, "description", void 0);
41
+ __decorate([
42
+ (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
43
+ __metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
44
+ ], NewOrderTote.prototype, "releaseGood", void 0);
45
+ __decorate([
46
+ (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
47
+ __metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
48
+ ], NewOrderTote.prototype, "tote", void 0);
49
+ NewOrderTote = __decorate([
50
+ (0, type_graphql_1.InputType)()
51
+ ], NewOrderTote);
52
+ exports.NewOrderTote = NewOrderTote;
53
+ let OrderTotePatch = class OrderTotePatch {
54
+ };
55
+ __decorate([
56
+ (0, type_graphql_1.Field)({ nullable: true }),
57
+ __metadata("design:type", String)
58
+ ], OrderTotePatch.prototype, "id", void 0);
59
+ __decorate([
60
+ (0, type_graphql_1.Field)({ nullable: true }),
61
+ __metadata("design:type", String)
62
+ ], OrderTotePatch.prototype, "name", void 0);
63
+ __decorate([
64
+ (0, type_graphql_1.Field)({ nullable: true }),
65
+ __metadata("design:type", String)
66
+ ], OrderTotePatch.prototype, "description", void 0);
67
+ __decorate([
68
+ (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
69
+ __metadata("design:type", typeof (_c = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _c : Object)
70
+ ], OrderTotePatch.prototype, "releaseGood", void 0);
71
+ __decorate([
72
+ (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
73
+ __metadata("design:type", typeof (_d = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _d : Object)
74
+ ], OrderTotePatch.prototype, "tote", void 0);
75
+ OrderTotePatch = __decorate([
76
+ (0, type_graphql_1.InputType)()
77
+ ], OrderTotePatch);
78
+ exports.OrderTotePatch = OrderTotePatch;
79
+ //# sourceMappingURL=order-tote-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-tote-types.js","sourceRoot":"","sources":["../../../server/service/order-tote/order-tote-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAgE;AAEhE,iDAAiD;AAEjD,6CAAwC;AAGxC,IAAa,aAAa,GAA1B,MAAa,aAAa;CAMzB,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,sBAAS,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC7B;AAGlB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC1B;AALF,aAAa;IADzB,IAAA,yBAAU,GAAE;GACA,aAAa,CAMzB;AANY,sCAAa;AAS1B,IAAa,YAAY,GAAzB,MAAa,YAAY;CAYxB,CAAA;AAVC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACd;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACP;AAGnB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAChC,iBAAS,oBAAT,iBAAS;iDAAA;AAGtB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACvC,iBAAS,oBAAT,iBAAS;0CAAA;AAXJ,YAAY;IADxB,IAAA,wBAAS,GAAE;GACC,YAAY,CAYxB;AAZY,oCAAY;AAezB,IAAa,cAAc,GAA3B,MAAa,cAAc;CAe1B,CAAA;AAbC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAChB;AAGV;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACd;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACP;AAGnB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAChC,iBAAS,oBAAT,iBAAS;mDAAA;AAGtB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACvC,iBAAS,oBAAT,iBAAS;4CAAA;AAdJ,cAAc;IAD1B,IAAA,wBAAS,GAAE;GACC,cAAc,CAe1B;AAfY,wCAAc"}
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var _a, _b, _c;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.OrderTote = void 0;
14
+ const type_graphql_1 = require("type-graphql");
15
+ const typeorm_1 = require("typeorm");
16
+ const auth_base_1 = require("@things-factory/auth-base");
17
+ const shell_1 = require("@things-factory/shell");
18
+ const warehouse_base_1 = require("@things-factory/warehouse-base");
19
+ const release_good_1 = require("../release-good/release-good");
20
+ const order_tote_seal_1 = require("../order-tote-seal/order-tote-seal");
21
+ let OrderTote = class OrderTote {
22
+ };
23
+ __decorate([
24
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
25
+ (0, type_graphql_1.Field)(),
26
+ __metadata("design:type", String)
27
+ ], OrderTote.prototype, "id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
30
+ (0, type_graphql_1.Field)(),
31
+ __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
32
+ ], OrderTote.prototype, "domain", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.RelationId)((orderTote) => orderTote.domain),
35
+ __metadata("design:type", String)
36
+ ], OrderTote.prototype, "domainId", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)(),
39
+ (0, type_graphql_1.Field)(),
40
+ __metadata("design:type", String)
41
+ ], OrderTote.prototype, "name", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.ManyToOne)(type => release_good_1.ReleaseGood),
44
+ (0, type_graphql_1.Field)(type => release_good_1.ReleaseGood),
45
+ __metadata("design:type", release_good_1.ReleaseGood)
46
+ ], OrderTote.prototype, "releaseGood", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.RelationId)((orderTote) => orderTote.releaseGood),
49
+ __metadata("design:type", String)
50
+ ], OrderTote.prototype, "releaseGoodId", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.ManyToOne)(type => warehouse_base_1.Tote),
53
+ (0, type_graphql_1.Field)(type => warehouse_base_1.Tote, { nullable: true }),
54
+ __metadata("design:type", typeof (_b = typeof warehouse_base_1.Tote !== "undefined" && warehouse_base_1.Tote) === "function" ? _b : Object)
55
+ ], OrderTote.prototype, "tote", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.RelationId)((orderTote) => orderTote.tote),
58
+ __metadata("design:type", String)
59
+ ], OrderTote.prototype, "toteId", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ nullable: true }),
62
+ (0, type_graphql_1.Field)({ nullable: true }),
63
+ __metadata("design:type", Date)
64
+ ], OrderTote.prototype, "closedDate", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.UpdateDateColumn)(),
67
+ (0, type_graphql_1.Field)({ nullable: true }),
68
+ __metadata("design:type", Date)
69
+ ], OrderTote.prototype, "updatedAt", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
72
+ nullable: true
73
+ }),
74
+ (0, type_graphql_1.Field)({ nullable: true }),
75
+ __metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
76
+ ], OrderTote.prototype, "updater", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.RelationId)((orderTote) => orderTote.updater),
79
+ __metadata("design:type", String)
80
+ ], OrderTote.prototype, "updaterId", void 0);
81
+ __decorate([
82
+ (0, type_graphql_1.Field)(type => [order_tote_seal_1.OrderToteSeal], { nullable: true }),
83
+ __metadata("design:type", Array)
84
+ ], OrderTote.prototype, "orderToteSeals", void 0);
85
+ OrderTote = __decorate([
86
+ (0, typeorm_1.Entity)(),
87
+ (0, typeorm_1.Index)('ix_order_tote_0', (orderTote) => [orderTote.id], { unique: true }),
88
+ (0, type_graphql_1.ObjectType)()
89
+ ], OrderTote);
90
+ exports.OrderTote = OrderTote;
91
+ //# sourceMappingURL=order-tote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-tote.js","sourceRoot":"","sources":["../../../server/service/order-tote/order-tote.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAgD;AAChD,qCAAgH;AAEhH,yDAAgD;AAChD,iDAA8C;AAC9C,mEAAqD;AACrD,+DAA0D;AAC1D,wEAAkE;AAKlE,IAAa,SAAS,GAAtB,MAAa,SAAS;CAiDrB,CAAA;AA9CC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,GAAE;;qCACE;AAIV;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,GAAE;kDACA,cAAM,oBAAN,cAAM;yCAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,SAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC;;2CACvC;AAIhB;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,oBAAK,GAAE;;uCACI;AAIZ;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,0BAAW,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,0BAAW,CAAC;8BACb,0BAAW;8CAAA;AAGzB;IADC,IAAA,oBAAU,EAAC,CAAC,SAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC;;gDACvC;AAIrB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,qBAAI,CAAC;IACvB,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,qBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACjC,qBAAI,oBAAJ,qBAAI;uCAAA;AAGX;IADC,IAAA,oBAAU,EAAC,CAAC,SAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC;;yCACvC;AAId;IAFC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACb,IAAI;6CAAA;AAIjB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACf,IAAI;4CAAA;AAMf;IAJC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAChB,gBAAI,oBAAJ,gBAAI;0CAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,SAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;;4CACvC;AAGjB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,+BAAa,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACnB;AAhDrB,SAAS;IAHrB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,iBAAiB,EAAE,CAAC,SAAoB,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACpF,IAAA,yBAAU,GAAE;GACA,SAAS,CAiDrB;AAjDY,8BAAS"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(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 order_tote_item_1 = require("./order-tote-item");
15
+ const order_tote_item_mutation_1 = require("./order-tote-item-mutation");
16
+ const order_tote_item_query_1 = require("./order-tote-item-query");
17
+ exports.entities = [order_tote_item_1.OrderToteItem];
18
+ exports.resolvers = [order_tote_item_query_1.OrderToteItemQuery, order_tote_item_mutation_1.OrderToteItemMutation];
19
+ __exportStar(require("./order-tote-item-mutation"), exports);
20
+ __exportStar(require("./order-tote-item-query"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/order-tote-item/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,uDAAiD;AACjD,yEAAkE;AAClE,mEAA4D;AAE/C,QAAA,QAAQ,GAAG,CAAC,+BAAa,CAAC,CAAA;AAC1B,QAAA,SAAS,GAAG,CAAC,0CAAkB,EAAE,gDAAqB,CAAC,CAAA;AAEpE,6DAA0C;AAC1C,0DAAuC"}
@@ -0,0 +1,56 @@
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.OrderToteItemMutation = void 0;
16
+ const type_graphql_1 = require("type-graphql");
17
+ const typeorm_1 = require("typeorm");
18
+ const order_tote_item_1 = require("./order-tote-item");
19
+ let OrderToteItemMutation = class OrderToteItemMutation {
20
+ async deleteOrderToteItem(id, context) {
21
+ const { domain, tx } = context.state;
22
+ await tx.getRepository(order_tote_item_1.OrderToteItem).delete({ domain, id });
23
+ return true;
24
+ }
25
+ async deleteOrderToteItems(ids, context) {
26
+ const { domain, tx } = context.state;
27
+ await tx.getRepository(order_tote_item_1.OrderToteItem).delete({
28
+ domain,
29
+ id: (0, typeorm_1.In)(ids)
30
+ });
31
+ return true;
32
+ }
33
+ };
34
+ __decorate([
35
+ (0, type_graphql_1.Directive)('@transaction'),
36
+ (0, type_graphql_1.Mutation)(returns => Boolean),
37
+ __param(0, (0, type_graphql_1.Arg)('name')),
38
+ __param(1, (0, type_graphql_1.Ctx)()),
39
+ __metadata("design:type", Function),
40
+ __metadata("design:paramtypes", [String, Object]),
41
+ __metadata("design:returntype", Promise)
42
+ ], OrderToteItemMutation.prototype, "deleteOrderToteItem", null);
43
+ __decorate([
44
+ (0, type_graphql_1.Directive)('@transaction'),
45
+ (0, type_graphql_1.Mutation)(returns => Boolean),
46
+ __param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
47
+ __param(1, (0, type_graphql_1.Ctx)()),
48
+ __metadata("design:type", Function),
49
+ __metadata("design:paramtypes", [Array, Object]),
50
+ __metadata("design:returntype", Promise)
51
+ ], OrderToteItemMutation.prototype, "deleteOrderToteItems", null);
52
+ OrderToteItemMutation = __decorate([
53
+ (0, type_graphql_1.Resolver)(order_tote_item_1.OrderToteItem)
54
+ ], OrderToteItemMutation);
55
+ exports.OrderToteItemMutation = OrderToteItemMutation;
56
+ //# sourceMappingURL=order-tote-item-mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-tote-item-mutation.js","sourceRoot":"","sources":["../../../server/service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BAAa,CAAC;GACX,qBAAqB,CAqBjC;AArBY,sDAAqB"}
@@ -0,0 +1,100 @@
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.OrderToteItemQuery = void 0;
16
+ const type_graphql_1 = require("type-graphql");
17
+ const typeorm_1 = require("typeorm");
18
+ const shell_1 = require("@things-factory/shell");
19
+ const order_tote_item_1 = require("./order-tote-item");
20
+ const order_tote_item_types_1 = require("./order-tote-item-types");
21
+ const release_good_1 = require("../release-good/release-good");
22
+ let OrderToteItemQuery = class OrderToteItemQuery {
23
+ async orderToteItems(context, toteNo, orderNo, sortings) {
24
+ try {
25
+ const { domain } = context.state;
26
+ const foundOrder = await (0, typeorm_1.getRepository)(release_good_1.ReleaseGood).findOne({
27
+ where: { name: orderNo, domain }
28
+ });
29
+ const queryBuilder = (0, typeorm_1.getRepository)(order_tote_item_1.OrderToteItem).createQueryBuilder();
30
+ (0, shell_1.buildQuery)(queryBuilder, { sortings }, context);
31
+ queryBuilder
32
+ .select('OrderToteItem.id', 'id')
33
+ .addSelect('OrderToteItem.name', 'name')
34
+ .addSelect('OrderProduct.id', 'orderProductId')
35
+ .addSelect('OrderProduct.name', 'orderProductName')
36
+ .addSelect('Domain.id', 'domainId')
37
+ .addSelect('Domain.name', 'domainName')
38
+ .addSelect('SUM(OrderToteItem.qty)', 'pickedQty')
39
+ .addSelect('Product.id', 'productId')
40
+ .addSelect('Product.sku', 'productSku')
41
+ .addSelect('Product.packingType', 'packingType')
42
+ .leftJoin('OrderToteItem.domain', 'Domain')
43
+ .leftJoin('OrderToteItem.orderProduct', 'OrderProduct')
44
+ .leftJoin('OrderProduct.product', 'Product')
45
+ .leftJoin('OrderToteItem.orderTote', 'OrderTote')
46
+ .where('"OrderTote"."release_good_id" = :foundOrderId', { foundOrderId: foundOrder.id })
47
+ .andWhere('Domain.id = :domainId', { domainId: domain.id })
48
+ .andWhere('"OrderTote"."name" = :toteName', { toteName: toteNo })
49
+ .groupBy('Product.id')
50
+ .addGroupBy('OrderToteItem.id')
51
+ .addGroupBy('Domain.id')
52
+ .addGroupBy('OrderProduct.id');
53
+ const items = await queryBuilder.getRawMany();
54
+ return {
55
+ items: items.map(itm => {
56
+ return Object.assign(Object.assign({}, itm), { orderProduct: {
57
+ id: itm.orderProductId,
58
+ name: itm.orderProductName,
59
+ product: { id: itm.productId, sku: itm.productSku, packingType: itm.packingType }
60
+ }, domain: { id: itm.domainId, name: itm.domainName }, qty: itm.pickedQty });
61
+ }),
62
+ total: items.length
63
+ };
64
+ }
65
+ catch (e) {
66
+ throw new Error(e);
67
+ }
68
+ }
69
+ async orderToteItem(id, context) {
70
+ const { domain } = context.state;
71
+ return await (0, typeorm_1.getRepository)(order_tote_item_1.OrderToteItem).findOne({
72
+ where: { domain, id },
73
+ relations: ['domain', 'orderProduct', 'orderInventory', 'orderTote', 'updater']
74
+ });
75
+ }
76
+ };
77
+ __decorate([
78
+ (0, type_graphql_1.Query)(returns => order_tote_item_types_1.OrderToteItemList),
79
+ __param(0, (0, type_graphql_1.Ctx)()),
80
+ __param(1, (0, type_graphql_1.Arg)('toteNo', type => String)),
81
+ __param(2, (0, type_graphql_1.Arg)('orderNo', type => String)),
82
+ __param(3, (0, type_graphql_1.Arg)('sortings', type => [shell_1.Sorting], { nullable: true })),
83
+ __metadata("design:type", Function),
84
+ __metadata("design:paramtypes", [Object, String,
85
+ String, Array]),
86
+ __metadata("design:returntype", Promise)
87
+ ], OrderToteItemQuery.prototype, "orderToteItems", null);
88
+ __decorate([
89
+ (0, type_graphql_1.Query)(returns => order_tote_item_1.OrderToteItem),
90
+ __param(0, (0, type_graphql_1.Arg)('id')),
91
+ __param(1, (0, type_graphql_1.Ctx)()),
92
+ __metadata("design:type", Function),
93
+ __metadata("design:paramtypes", [String, Object]),
94
+ __metadata("design:returntype", Promise)
95
+ ], OrderToteItemQuery.prototype, "orderToteItem", null);
96
+ OrderToteItemQuery = __decorate([
97
+ (0, type_graphql_1.Resolver)(order_tote_item_1.OrderToteItem)
98
+ ], OrderToteItemQuery);
99
+ exports.OrderToteItemQuery = OrderToteItemQuery;
100
+ //# sourceMappingURL=order-tote-item-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-tote-item-query.js","sourceRoot":"","sources":["../../../server/service/order-tote-item/order-tote-item-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAA6E;AAC7E,qCAAuC;AAKvC,iDAAuF;AACvF,uDAAiD;AACjD,mEAA2D;AAG3D,+DAA0D;AAI1D,IAAa,kBAAkB,GAA/B,MAAa,kBAAkB;IAE7B,KAAK,CAAC,cAAc,CACX,OAAY,EACY,MAAc,EACb,OAAe,EACS,QAAoB;QAE5E,IAAI;YACF,MAAM,EAAE,MAAM,EAAE,GAAuB,OAAO,CAAC,KAAK,CAAA;YAEpD,MAAM,UAAU,GAAgB,MAAM,IAAA,uBAAa,EAAC,0BAAW,CAAC,CAAC,OAAO,CAAC;gBACvE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE;aACjC,CAAC,CAAA;YAEF,MAAM,YAAY,GAAG,IAAA,uBAAa,EAAC,+BAAa,CAAC,CA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IAC9B,WAAA,IAAA,kBAAG,EAAC,UAAU,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,eAAO,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAA;;6CAFhB,MAAM;QACJ,MAAM;;wDAwDhD;AAGD;IADC,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,+BAAa,CAAC;IACX,WAAA,IAAA,kBAAG,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;uDAOhD;AAvEU,kBAAkB;IAD9B,IAAA,uBAAQ,EAAC,+BAAa,CAAC;GACX,kBAAkB,CAwE9B;AAxEY,gDAAkB"}
@@ -0,0 +1,91 @@
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.OrderToteItemPatch = exports.NewOrderToteItem = exports.OrderToteItemList = void 0;
14
+ const type_graphql_1 = require("type-graphql");
15
+ const shell_1 = require("@things-factory/shell");
16
+ const order_tote_item_1 = require("./order-tote-item");
17
+ let OrderToteItemList = class OrderToteItemList {
18
+ };
19
+ __decorate([
20
+ (0, type_graphql_1.Field)(type => [order_tote_item_1.OrderToteItem], { nullable: true }),
21
+ __metadata("design:type", Array)
22
+ ], OrderToteItemList.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
+ ], OrderToteItemList.prototype, "total", void 0);
27
+ OrderToteItemList = __decorate([
28
+ (0, type_graphql_1.ObjectType)()
29
+ ], OrderToteItemList);
30
+ exports.OrderToteItemList = OrderToteItemList;
31
+ let NewOrderToteItem = class NewOrderToteItem {
32
+ };
33
+ __decorate([
34
+ (0, type_graphql_1.Field)({ nullable: true }),
35
+ __metadata("design:type", String)
36
+ ], NewOrderToteItem.prototype, "name", void 0);
37
+ __decorate([
38
+ (0, type_graphql_1.Field)({ nullable: true }),
39
+ __metadata("design:type", String)
40
+ ], NewOrderToteItem.prototype, "description", void 0);
41
+ __decorate([
42
+ (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
43
+ __metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
44
+ ], NewOrderToteItem.prototype, "orderProduct", void 0);
45
+ __decorate([
46
+ (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
47
+ __metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
48
+ ], NewOrderToteItem.prototype, "orderInventory", void 0);
49
+ __decorate([
50
+ (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
51
+ __metadata("design:type", typeof (_c = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _c : Object)
52
+ ], NewOrderToteItem.prototype, "orderTote", void 0);
53
+ __decorate([
54
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int),
55
+ __metadata("design:type", Number)
56
+ ], NewOrderToteItem.prototype, "qty", void 0);
57
+ NewOrderToteItem = __decorate([
58
+ (0, type_graphql_1.InputType)()
59
+ ], NewOrderToteItem);
60
+ exports.NewOrderToteItem = NewOrderToteItem;
61
+ let OrderToteItemPatch = class OrderToteItemPatch {
62
+ };
63
+ __decorate([
64
+ (0, type_graphql_1.Field)({ nullable: true }),
65
+ __metadata("design:type", String)
66
+ ], OrderToteItemPatch.prototype, "id", void 0);
67
+ __decorate([
68
+ (0, type_graphql_1.Field)({ nullable: true }),
69
+ __metadata("design:type", String)
70
+ ], OrderToteItemPatch.prototype, "name", void 0);
71
+ __decorate([
72
+ (0, type_graphql_1.Field)({ nullable: true }),
73
+ __metadata("design:type", String)
74
+ ], OrderToteItemPatch.prototype, "description", 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
+ ], OrderToteItemPatch.prototype, "orderProduct", 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
+ ], OrderToteItemPatch.prototype, "orderTote", void 0);
83
+ __decorate([
84
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int),
85
+ __metadata("design:type", Number)
86
+ ], OrderToteItemPatch.prototype, "qty", void 0);
87
+ OrderToteItemPatch = __decorate([
88
+ (0, type_graphql_1.InputType)()
89
+ ], OrderToteItemPatch);
90
+ exports.OrderToteItemPatch = OrderToteItemPatch;
91
+ //# sourceMappingURL=order-tote-item-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-tote-item-types.js","sourceRoot":"","sources":["../../../server/service/order-tote-item/order-tote-item-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAgE;AAEhE,iDAAiD;AAEjD,uDAAiD;AAGjD,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;CAM7B,CAAA;AAJC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAA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