@things-factory/warehouse-base 5.0.1 → 5.0.11

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 (156) hide show
  1. package/dist-server/constants/index.js +6 -19
  2. package/dist-server/constants/index.js.map +1 -1
  3. package/dist-server/constants/inventory.js.map +1 -1
  4. package/dist-server/constants/location.js.map +1 -1
  5. package/dist-server/constants/pallet.js.map +1 -1
  6. package/dist-server/constants/rule-type.js.map +1 -1
  7. package/dist-server/constants/tote.js.map +1 -1
  8. package/dist-server/controllers/ecommerce/ecommerce-controller.js.map +1 -1
  9. package/dist-server/controllers/ecommerce/index.js +3 -16
  10. package/dist-server/controllers/ecommerce/index.js.map +1 -1
  11. package/dist-server/controllers/ecommerce/sellercraft-controller.js.map +1 -1
  12. package/dist-server/controllers/index.js +3 -16
  13. package/dist-server/controllers/index.js.map +1 -1
  14. package/dist-server/controllers/warehouse-controller.js.map +1 -1
  15. package/dist-server/index.js +6 -19
  16. package/dist-server/index.js.map +1 -1
  17. package/dist-server/middlewares/index.js.map +1 -1
  18. package/dist-server/migrations/index.js.map +1 -1
  19. package/dist-server/service/index.js +28 -41
  20. package/dist-server/service/index.js.map +1 -1
  21. package/dist-server/service/inventory/index.js.map +1 -1
  22. package/dist-server/service/inventory/inventory-mutation.js +50 -61
  23. package/dist-server/service/inventory/inventory-mutation.js.map +1 -1
  24. package/dist-server/service/inventory/inventory-query.js +124 -135
  25. package/dist-server/service/inventory/inventory-query.js.map +1 -1
  26. package/dist-server/service/inventory/inventory-types.js +198 -206
  27. package/dist-server/service/inventory/inventory-types.js.map +1 -1
  28. package/dist-server/service/inventory/inventory.js +133 -141
  29. package/dist-server/service/inventory/inventory.js.map +1 -1
  30. package/dist-server/service/inventory-change/index.js.map +1 -1
  31. package/dist-server/service/inventory-change/inventory-change-mutation.js +51 -62
  32. package/dist-server/service/inventory-change/inventory-change-mutation.js.map +1 -1
  33. package/dist-server/service/inventory-change/inventory-change-query.js +29 -40
  34. package/dist-server/service/inventory-change/inventory-change-query.js.map +1 -1
  35. package/dist-server/service/inventory-change/inventory-change-types.js +20 -28
  36. package/dist-server/service/inventory-change/inventory-change-types.js.map +1 -1
  37. package/dist-server/service/inventory-change/inventory-change.js +68 -76
  38. package/dist-server/service/inventory-change/inventory-change.js.map +1 -1
  39. package/dist-server/service/inventory-history/index.js.map +1 -1
  40. package/dist-server/service/inventory-history/inventory-history-mutation.js +33 -44
  41. package/dist-server/service/inventory-history/inventory-history-mutation.js.map +1 -1
  42. package/dist-server/service/inventory-history/inventory-history-query.js +105 -116
  43. package/dist-server/service/inventory-history/inventory-history-query.js.map +1 -1
  44. package/dist-server/service/inventory-history/inventory-history-types.js +282 -290
  45. package/dist-server/service/inventory-history/inventory-history-types.js.map +1 -1
  46. package/dist-server/service/inventory-history/inventory-history.js +82 -90
  47. package/dist-server/service/inventory-history/inventory-history.js.map +1 -1
  48. package/dist-server/service/inventory-item/index.js.map +1 -1
  49. package/dist-server/service/inventory-item/inventory-item-mutation.js +47 -58
  50. package/dist-server/service/inventory-item/inventory-item-mutation.js.map +1 -1
  51. package/dist-server/service/inventory-item/inventory-item-query.js +41 -52
  52. package/dist-server/service/inventory-item/inventory-item-query.js.map +1 -1
  53. package/dist-server/service/inventory-item/inventory-item-type.js +44 -52
  54. package/dist-server/service/inventory-item/inventory-item-type.js.map +1 -1
  55. package/dist-server/service/inventory-item/inventory-item.js +44 -52
  56. package/dist-server/service/inventory-item/inventory-item.js.map +1 -1
  57. package/dist-server/service/inventory-item-change/index.js.map +1 -1
  58. package/dist-server/service/inventory-item-change/inventory-item-change-mutation.js +33 -44
  59. package/dist-server/service/inventory-item-change/inventory-item-change-mutation.js.map +1 -1
  60. package/dist-server/service/inventory-item-change/inventory-item-change-query.js +29 -40
  61. package/dist-server/service/inventory-item-change/inventory-item-change-query.js.map +1 -1
  62. package/dist-server/service/inventory-item-change/inventory-item-change-type.js +40 -48
  63. package/dist-server/service/inventory-item-change/inventory-item-change-type.js.map +1 -1
  64. package/dist-server/service/inventory-item-change/inventory-item-change.js +34 -42
  65. package/dist-server/service/inventory-item-change/inventory-item-change.js.map +1 -1
  66. package/dist-server/service/inventory-product/index.js.map +1 -1
  67. package/dist-server/service/inventory-product/inventory-product-mutation.js +33 -44
  68. package/dist-server/service/inventory-product/inventory-product-mutation.js.map +1 -1
  69. package/dist-server/service/inventory-product/inventory-product-query.js +29 -40
  70. package/dist-server/service/inventory-product/inventory-product-query.js.map +1 -1
  71. package/dist-server/service/inventory-product/inventory-product-type.js +34 -42
  72. package/dist-server/service/inventory-product/inventory-product-type.js.map +1 -1
  73. package/dist-server/service/inventory-product/inventory-product.js +34 -42
  74. package/dist-server/service/inventory-product/inventory-product.js.map +1 -1
  75. package/dist-server/service/location/index.js.map +1 -1
  76. package/dist-server/service/location/location-mutation.js +39 -50
  77. package/dist-server/service/location/location-mutation.js.map +1 -1
  78. package/dist-server/service/location/location-query.js +65 -76
  79. package/dist-server/service/location/location-query.js.map +1 -1
  80. package/dist-server/service/location/location-types.js +105 -113
  81. package/dist-server/service/location/location-types.js.map +1 -1
  82. package/dist-server/service/location/location.js +41 -49
  83. package/dist-server/service/location/location.js.map +1 -1
  84. package/dist-server/service/movement/index.js.map +1 -1
  85. package/dist-server/service/movement/movement-mutation.js +21 -32
  86. package/dist-server/service/movement/movement-mutation.js.map +1 -1
  87. package/dist-server/service/movement/movement-query.js +51 -65
  88. package/dist-server/service/movement/movement-query.js.map +1 -1
  89. package/dist-server/service/movement/movement-types.js +43 -51
  90. package/dist-server/service/movement/movement-types.js.map +1 -1
  91. package/dist-server/service/movement/movement.js +30 -38
  92. package/dist-server/service/movement/movement.js.map +1 -1
  93. package/dist-server/service/pallet/index.js.map +1 -1
  94. package/dist-server/service/pallet/pallet-mutation.js +39 -50
  95. package/dist-server/service/pallet/pallet-mutation.js.map +1 -1
  96. package/dist-server/service/pallet/pallet-query.js +48 -59
  97. package/dist-server/service/pallet/pallet-query.js.map +1 -1
  98. package/dist-server/service/pallet/pallet-types.js +39 -47
  99. package/dist-server/service/pallet/pallet-types.js.map +1 -1
  100. package/dist-server/service/pallet/pallet.js +34 -42
  101. package/dist-server/service/pallet/pallet.js.map +1 -1
  102. package/dist-server/service/pallet-count/index.js.map +1 -1
  103. package/dist-server/service/pallet-count/pallet-count-mutation.js +39 -50
  104. package/dist-server/service/pallet-count/pallet-count-mutation.js.map +1 -1
  105. package/dist-server/service/pallet-count/pallet-count-query.js +28 -39
  106. package/dist-server/service/pallet-count/pallet-count-query.js.map +1 -1
  107. package/dist-server/service/pallet-count/pallet-count-types.js +20 -28
  108. package/dist-server/service/pallet-count/pallet-count-types.js.map +1 -1
  109. package/dist-server/service/pallet-count/pallet-count.js +26 -34
  110. package/dist-server/service/pallet-count/pallet-count.js.map +1 -1
  111. package/dist-server/service/pallet-history/index.js.map +1 -1
  112. package/dist-server/service/pallet-history/pallet-history-mutation.js +33 -44
  113. package/dist-server/service/pallet-history/pallet-history-mutation.js.map +1 -1
  114. package/dist-server/service/pallet-history/pallet-history-query.js +29 -40
  115. package/dist-server/service/pallet-history/pallet-history-query.js.map +1 -1
  116. package/dist-server/service/pallet-history/pallet-history-types.js +20 -28
  117. package/dist-server/service/pallet-history/pallet-history-types.js.map +1 -1
  118. package/dist-server/service/pallet-history/pallet-history.js +34 -42
  119. package/dist-server/service/pallet-history/pallet-history.js.map +1 -1
  120. package/dist-server/service/reduced-inventory-history/index.js.map +1 -1
  121. package/dist-server/service/reduced-inventory-history/reduced-inventory-history.js +52 -60
  122. package/dist-server/service/reduced-inventory-history/reduced-inventory-history.js.map +1 -1
  123. package/dist-server/service/tote/index.js.map +1 -1
  124. package/dist-server/service/tote/tote-mutation.js +46 -57
  125. package/dist-server/service/tote/tote-mutation.js.map +1 -1
  126. package/dist-server/service/tote/tote-query.js +44 -55
  127. package/dist-server/service/tote/tote-query.js.map +1 -1
  128. package/dist-server/service/tote/tote-types.js +24 -32
  129. package/dist-server/service/tote/tote-types.js.map +1 -1
  130. package/dist-server/service/tote/tote.js +30 -38
  131. package/dist-server/service/tote/tote.js.map +1 -1
  132. package/dist-server/service/warehouse/index.js.map +1 -1
  133. package/dist-server/service/warehouse/warehouse-mutation.js +33 -44
  134. package/dist-server/service/warehouse/warehouse-mutation.js.map +1 -1
  135. package/dist-server/service/warehouse/warehouse-query.js +29 -40
  136. package/dist-server/service/warehouse/warehouse-query.js.map +1 -1
  137. package/dist-server/service/warehouse/warehouse-types.js +28 -36
  138. package/dist-server/service/warehouse/warehouse-types.js.map +1 -1
  139. package/dist-server/service/warehouse/warehouse.js +31 -39
  140. package/dist-server/service/warehouse/warehouse.js.map +1 -1
  141. package/dist-server/tsconfig.tsbuildinfo +1 -0
  142. package/dist-server/utils/datetime-util.js.map +1 -1
  143. package/dist-server/utils/index.js +4 -17
  144. package/dist-server/utils/index.js.map +1 -1
  145. package/dist-server/utils/inventory-no-generator.js.map +1 -1
  146. package/dist-server/utils/inventory-util.js.map +1 -1
  147. package/package.json +8 -8
  148. package/server/service/inventory/inventory-mutation.ts +2 -2
  149. package/server/service/inventory/inventory-query.ts +2 -2
  150. package/server/service/inventory/inventory.ts +6 -5
  151. package/server/service/inventory-change/inventory-change-mutation.ts +1 -1
  152. package/server/service/inventory-change/inventory-change-query.ts +2 -2
  153. package/server/service/inventory-history/inventory-history-query.ts +29 -28
  154. package/server/service/inventory-history/inventory-history.ts +39 -39
  155. package/server/service/inventory-item/inventory-item-mutation.ts +3 -3
  156. package/server/service/movement/movement-query.ts +3 -6
@@ -1,16 +1,8 @@
1
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
2
  var _a, _b, _c, _d;
12
3
  Object.defineProperty(exports, "__esModule", { value: true });
13
4
  exports.NewLocation = exports.LocationPatch = exports.LocationOccupancy = exports.LocationList = exports.LocationInventories = exports.LocationInventory = void 0;
5
+ const tslib_1 = require("tslib");
14
6
  const type_graphql_1 = require("type-graphql");
15
7
  const biz_base_1 = require("@things-factory/biz-base");
16
8
  const product_base_1 = require("@things-factory/product-base");
@@ -19,233 +11,233 @@ const warehouse_1 = require("../warehouse/warehouse");
19
11
  const location_1 = require("./location");
20
12
  let LocationInventory = class LocationInventory {
21
13
  };
22
- __decorate([
14
+ tslib_1.__decorate([
23
15
  (0, type_graphql_1.Field)({ nullable: true }),
24
- __metadata("design:type", String)
16
+ tslib_1.__metadata("design:type", String)
25
17
  ], LocationInventory.prototype, "id", void 0);
26
- __decorate([
18
+ tslib_1.__decorate([
27
19
  (0, type_graphql_1.Field)({ nullable: true }),
28
- __metadata("design:type", String)
20
+ tslib_1.__metadata("design:type", String)
29
21
  ], LocationInventory.prototype, "name", void 0);
30
- __decorate([
22
+ tslib_1.__decorate([
31
23
  (0, type_graphql_1.Field)(type => biz_base_1.Bizplace, { nullable: true }),
32
- __metadata("design:type", typeof (_a = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _a : Object)
24
+ tslib_1.__metadata("design:type", typeof (_a = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _a : Object)
33
25
  ], LocationInventory.prototype, "bizplace", void 0);
34
- __decorate([
26
+ tslib_1.__decorate([
35
27
  (0, type_graphql_1.Field)({ nullable: true }),
36
- __metadata("design:type", String)
28
+ tslib_1.__metadata("design:type", String)
37
29
  ], LocationInventory.prototype, "palletId", void 0);
38
- __decorate([
30
+ tslib_1.__decorate([
39
31
  (0, type_graphql_1.Field)({ nullable: true }),
40
- __metadata("design:type", String)
32
+ tslib_1.__metadata("design:type", String)
41
33
  ], LocationInventory.prototype, "batchId", void 0);
42
- __decorate([
34
+ tslib_1.__decorate([
43
35
  (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
44
- __metadata("design:type", Number)
36
+ tslib_1.__metadata("design:type", Number)
45
37
  ], LocationInventory.prototype, "qty", void 0);
46
- __decorate([
38
+ tslib_1.__decorate([
47
39
  (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
48
- __metadata("design:type", Number)
40
+ tslib_1.__metadata("design:type", Number)
49
41
  ], LocationInventory.prototype, "accumulatedQty", void 0);
50
- __decorate([
42
+ tslib_1.__decorate([
51
43
  (0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
52
- __metadata("design:type", Number)
44
+ tslib_1.__metadata("design:type", Number)
53
45
  ], LocationInventory.prototype, "uomValue", void 0);
54
- __decorate([
46
+ tslib_1.__decorate([
55
47
  (0, type_graphql_1.Field)({ nullable: true }),
56
- __metadata("design:type", String)
48
+ tslib_1.__metadata("design:type", String)
57
49
  ], LocationInventory.prototype, "uom", void 0);
58
- __decorate([
50
+ tslib_1.__decorate([
59
51
  (0, type_graphql_1.Field)({ nullable: true }),
60
- __metadata("design:type", String)
52
+ tslib_1.__metadata("design:type", String)
61
53
  ], LocationInventory.prototype, "packingType", void 0);
62
- __decorate([
54
+ tslib_1.__decorate([
63
55
  (0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
64
- __metadata("design:type", Number)
56
+ tslib_1.__metadata("design:type", Number)
65
57
  ], LocationInventory.prototype, "packingSize", void 0);
66
- __decorate([
58
+ tslib_1.__decorate([
67
59
  (0, type_graphql_1.Field)({ nullable: true }),
68
- __metadata("design:type", String)
60
+ tslib_1.__metadata("design:type", String)
69
61
  ], LocationInventory.prototype, "expirationDate", void 0);
70
- __decorate([
62
+ tslib_1.__decorate([
71
63
  (0, type_graphql_1.Field)(type => warehouse_1.Warehouse, { nullable: true }),
72
- __metadata("design:type", warehouse_1.Warehouse)
64
+ tslib_1.__metadata("design:type", warehouse_1.Warehouse)
73
65
  ], LocationInventory.prototype, "warehouse", void 0);
74
- __decorate([
66
+ tslib_1.__decorate([
75
67
  (0, type_graphql_1.Field)(type => product_base_1.Product, { nullable: true }),
76
- __metadata("design:type", typeof (_b = typeof product_base_1.Product !== "undefined" && product_base_1.Product) === "function" ? _b : Object)
68
+ tslib_1.__metadata("design:type", typeof (_b = typeof product_base_1.Product !== "undefined" && product_base_1.Product) === "function" ? _b : Object)
77
69
  ], LocationInventory.prototype, "product", void 0);
78
- __decorate([
70
+ tslib_1.__decorate([
79
71
  (0, type_graphql_1.Field)({ nullable: true }),
80
- __metadata("design:type", String)
72
+ tslib_1.__metadata("design:type", String)
81
73
  ], LocationInventory.prototype, "zone", void 0);
82
- LocationInventory = __decorate([
74
+ LocationInventory = tslib_1.__decorate([
83
75
  (0, type_graphql_1.ObjectType)()
84
76
  ], LocationInventory);
85
77
  exports.LocationInventory = LocationInventory;
86
78
  let LocationInventories = class LocationInventories {
87
79
  };
88
- __decorate([
80
+ tslib_1.__decorate([
89
81
  (0, type_graphql_1.Field)(type => [LocationInventory], { nullable: true }),
90
- __metadata("design:type", Array)
82
+ tslib_1.__metadata("design:type", Array)
91
83
  ], LocationInventories.prototype, "items", void 0);
92
- __decorate([
84
+ tslib_1.__decorate([
93
85
  (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
94
- __metadata("design:type", Number)
86
+ tslib_1.__metadata("design:type", Number)
95
87
  ], LocationInventories.prototype, "total", void 0);
96
- LocationInventories = __decorate([
88
+ LocationInventories = tslib_1.__decorate([
97
89
  (0, type_graphql_1.ObjectType)()
98
90
  ], LocationInventories);
99
91
  exports.LocationInventories = LocationInventories;
100
92
  let LocationList = class LocationList {
101
93
  };
102
- __decorate([
94
+ tslib_1.__decorate([
103
95
  (0, type_graphql_1.Field)(type => [location_1.Location], { nullable: true }),
104
- __metadata("design:type", Array)
96
+ tslib_1.__metadata("design:type", Array)
105
97
  ], LocationList.prototype, "items", void 0);
106
- __decorate([
98
+ tslib_1.__decorate([
107
99
  (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
108
- __metadata("design:type", Number)
100
+ tslib_1.__metadata("design:type", Number)
109
101
  ], LocationList.prototype, "total", void 0);
110
- LocationList = __decorate([
102
+ LocationList = tslib_1.__decorate([
111
103
  (0, type_graphql_1.ObjectType)()
112
104
  ], LocationList);
113
105
  exports.LocationList = LocationList;
114
106
  let LocationOccupancy = class LocationOccupancy {
115
107
  };
116
- __decorate([
108
+ tslib_1.__decorate([
117
109
  (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
118
- __metadata("design:type", Number)
110
+ tslib_1.__metadata("design:type", Number)
119
111
  ], LocationOccupancy.prototype, "total", void 0);
120
- __decorate([
112
+ tslib_1.__decorate([
121
113
  (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
122
- __metadata("design:type", Number)
114
+ tslib_1.__metadata("design:type", Number)
123
115
  ], LocationOccupancy.prototype, "occupied", void 0);
124
- __decorate([
116
+ tslib_1.__decorate([
125
117
  (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
126
- __metadata("design:type", Number)
118
+ tslib_1.__metadata("design:type", Number)
127
119
  ], LocationOccupancy.prototype, "empty", void 0);
128
- __decorate([
120
+ tslib_1.__decorate([
129
121
  (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
130
- __metadata("design:type", Number)
122
+ tslib_1.__metadata("design:type", Number)
131
123
  ], LocationOccupancy.prototype, "percentage", void 0);
132
- LocationOccupancy = __decorate([
124
+ LocationOccupancy = tslib_1.__decorate([
133
125
  (0, type_graphql_1.ObjectType)()
134
126
  ], LocationOccupancy);
135
127
  exports.LocationOccupancy = LocationOccupancy;
136
128
  let LocationPatch = class LocationPatch {
137
129
  };
138
- __decorate([
130
+ tslib_1.__decorate([
139
131
  (0, type_graphql_1.Field)({ nullable: true }),
140
- __metadata("design:type", String)
132
+ tslib_1.__metadata("design:type", String)
141
133
  ], LocationPatch.prototype, "id", void 0);
142
- __decorate([
134
+ tslib_1.__decorate([
143
135
  (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
144
- __metadata("design:type", typeof (_c = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _c : Object)
136
+ tslib_1.__metadata("design:type", typeof (_c = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _c : Object)
145
137
  ], LocationPatch.prototype, "warehouse", void 0);
146
- __decorate([
138
+ tslib_1.__decorate([
147
139
  (0, type_graphql_1.Field)({ nullable: true }),
148
- __metadata("design:type", String)
140
+ tslib_1.__metadata("design:type", String)
149
141
  ], LocationPatch.prototype, "name", void 0);
150
- __decorate([
142
+ tslib_1.__decorate([
151
143
  (0, type_graphql_1.Field)({ nullable: true }),
152
- __metadata("design:type", String)
144
+ tslib_1.__metadata("design:type", String)
153
145
  ], LocationPatch.prototype, "description", void 0);
154
- __decorate([
146
+ tslib_1.__decorate([
155
147
  (0, type_graphql_1.Field)({ nullable: true }),
156
- __metadata("design:type", String)
148
+ tslib_1.__metadata("design:type", String)
157
149
  ], LocationPatch.prototype, "type", void 0);
158
- __decorate([
150
+ tslib_1.__decorate([
159
151
  (0, type_graphql_1.Field)({ nullable: true }),
160
- __metadata("design:type", String)
152
+ tslib_1.__metadata("design:type", String)
161
153
  ], LocationPatch.prototype, "zone", void 0);
162
- __decorate([
154
+ tslib_1.__decorate([
163
155
  (0, type_graphql_1.Field)({ nullable: true }),
164
- __metadata("design:type", String)
156
+ tslib_1.__metadata("design:type", String)
165
157
  ], LocationPatch.prototype, "firstDelimiter", void 0);
166
- __decorate([
158
+ tslib_1.__decorate([
167
159
  (0, type_graphql_1.Field)({ nullable: true }),
168
- __metadata("design:type", String)
160
+ tslib_1.__metadata("design:type", String)
169
161
  ], LocationPatch.prototype, "secondDelimiter", void 0);
170
- __decorate([
162
+ tslib_1.__decorate([
171
163
  (0, type_graphql_1.Field)({ nullable: true }),
172
- __metadata("design:type", String)
164
+ tslib_1.__metadata("design:type", String)
173
165
  ], LocationPatch.prototype, "thirdDelimiter", void 0);
174
- __decorate([
166
+ tslib_1.__decorate([
175
167
  (0, type_graphql_1.Field)({ nullable: true }),
176
- __metadata("design:type", String)
168
+ tslib_1.__metadata("design:type", String)
177
169
  ], LocationPatch.prototype, "row", void 0);
178
- __decorate([
170
+ tslib_1.__decorate([
179
171
  (0, type_graphql_1.Field)({ nullable: true }),
180
- __metadata("design:type", String)
172
+ tslib_1.__metadata("design:type", String)
181
173
  ], LocationPatch.prototype, "column", void 0);
182
- __decorate([
174
+ tslib_1.__decorate([
183
175
  (0, type_graphql_1.Field)({ nullable: true }),
184
- __metadata("design:type", String)
176
+ tslib_1.__metadata("design:type", String)
185
177
  ], LocationPatch.prototype, "shelf", void 0);
186
- __decorate([
178
+ tslib_1.__decorate([
187
179
  (0, type_graphql_1.Field)({ nullable: true }),
188
- __metadata("design:type", String)
180
+ tslib_1.__metadata("design:type", String)
189
181
  ], LocationPatch.prototype, "status", void 0);
190
- __decorate([
182
+ tslib_1.__decorate([
191
183
  (0, type_graphql_1.Field)({ nullable: true }),
192
- __metadata("design:type", String)
184
+ tslib_1.__metadata("design:type", String)
193
185
  ], LocationPatch.prototype, "cuFlag", void 0);
194
- LocationPatch = __decorate([
186
+ LocationPatch = tslib_1.__decorate([
195
187
  (0, type_graphql_1.InputType)()
196
188
  ], LocationPatch);
197
189
  exports.LocationPatch = LocationPatch;
198
190
  let NewLocation = class NewLocation {
199
191
  };
200
- __decorate([
192
+ tslib_1.__decorate([
201
193
  (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
202
- __metadata("design:type", typeof (_d = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _d : Object)
194
+ tslib_1.__metadata("design:type", typeof (_d = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _d : Object)
203
195
  ], NewLocation.prototype, "warehouse", void 0);
204
- __decorate([
196
+ tslib_1.__decorate([
205
197
  (0, type_graphql_1.Field)(),
206
- __metadata("design:type", String)
198
+ tslib_1.__metadata("design:type", String)
207
199
  ], NewLocation.prototype, "name", void 0);
208
- __decorate([
200
+ tslib_1.__decorate([
209
201
  (0, type_graphql_1.Field)({ nullable: true }),
210
- __metadata("design:type", String)
202
+ tslib_1.__metadata("design:type", String)
211
203
  ], NewLocation.prototype, "description", void 0);
212
- __decorate([
204
+ tslib_1.__decorate([
213
205
  (0, type_graphql_1.Field)({ nullable: true }),
214
- __metadata("design:type", String)
206
+ tslib_1.__metadata("design:type", String)
215
207
  ], NewLocation.prototype, "type", void 0);
216
- __decorate([
208
+ tslib_1.__decorate([
217
209
  (0, type_graphql_1.Field)(),
218
- __metadata("design:type", String)
210
+ tslib_1.__metadata("design:type", String)
219
211
  ], NewLocation.prototype, "zone", void 0);
220
- __decorate([
212
+ tslib_1.__decorate([
221
213
  (0, type_graphql_1.Field)({ nullable: true }),
222
- __metadata("design:type", String)
214
+ tslib_1.__metadata("design:type", String)
223
215
  ], NewLocation.prototype, "firstDelimiter", void 0);
224
- __decorate([
216
+ tslib_1.__decorate([
225
217
  (0, type_graphql_1.Field)({ nullable: true }),
226
- __metadata("design:type", String)
218
+ tslib_1.__metadata("design:type", String)
227
219
  ], NewLocation.prototype, "secondDelimiter", void 0);
228
- __decorate([
220
+ tslib_1.__decorate([
229
221
  (0, type_graphql_1.Field)({ nullable: true }),
230
- __metadata("design:type", String)
222
+ tslib_1.__metadata("design:type", String)
231
223
  ], NewLocation.prototype, "thirdDelimiter", void 0);
232
- __decorate([
224
+ tslib_1.__decorate([
233
225
  (0, type_graphql_1.Field)(),
234
- __metadata("design:type", String)
226
+ tslib_1.__metadata("design:type", String)
235
227
  ], NewLocation.prototype, "row", void 0);
236
- __decorate([
228
+ tslib_1.__decorate([
237
229
  (0, type_graphql_1.Field)(),
238
- __metadata("design:type", String)
230
+ tslib_1.__metadata("design:type", String)
239
231
  ], NewLocation.prototype, "column", void 0);
240
- __decorate([
232
+ tslib_1.__decorate([
241
233
  (0, type_graphql_1.Field)(),
242
- __metadata("design:type", String)
234
+ tslib_1.__metadata("design:type", String)
243
235
  ], NewLocation.prototype, "shelf", void 0);
244
- __decorate([
236
+ tslib_1.__decorate([
245
237
  (0, type_graphql_1.Field)(),
246
- __metadata("design:type", String)
238
+ tslib_1.__metadata("design:type", String)
247
239
  ], NewLocation.prototype, "status", void 0);
248
- NewLocation = __decorate([
240
+ NewLocation = tslib_1.__decorate([
249
241
  (0, type_graphql_1.InputType)()
250
242
  ], NewLocation);
251
243
  exports.NewLocation = NewLocation;
@@ -1 +1 @@
1
- {"version":3,"file":"location-types.js","sourceRoot":"","sources":["../../../server/service/location/location-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAuE;AAEvE,uDAAmD;AACnD,+DAAsD;AACtD,iDAAiD;AAEjD,sDAAkD;AAClD,yCAAqC;AAGrC,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;CA6C7B,CAAA;AA3CC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACf;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACb;AAGb;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACjC,mBAAQ,oBAAR,mBAAQ;mDAAA;AAGnB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACT;AAGjB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACV;AAGhB;IADC,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AAW;CAoCvB,CAAA;AAlCC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACjC,iBAAS,oBAAT,iBAAS;8CAAA;AAGrB;IADC,IAAA,oBAAK,GAAE;;yCACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACN;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACb;AAGb;IADC,IAAA,oBAAK,GAAE;;yCACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACH;AAGvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACF;AAGxB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACH;AAGvB;IADC,IAAA,oBAAK,GAAE;;wCACG;AAGX;IADC,IAAA,oBAAK,GAAE;;2CACM;AAGd;IADC,IAAA,oBAAK,GAAE;;0CACK;AAGb;IADC,IAAA,oBAAK,GAAE;;2CACM;AAnCH,WAAW;IADvB,IAAA,wBAAS,GAAE;GACC,WAAW,CAoCvB;AApCY,kCAAW"}
1
+ {"version":3,"file":"location-types.js","sourceRoot":"","sources":["../../../server/service/location/location-types.ts"],"names":[],"mappings":";;;;;AAAA,+CAAuE;AAEvE,uDAAmD;AACnD,+DAAsD;AACtD,iDAAiD;AAEjD,sDAAkD;AAClD,yCAAqC;AAGrC,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;CA6C7B,CAAA;AA3CC;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACf;AAGX;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACb;AAGb;IADC,IAAA,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,EAAE,IAAI,EAAE,CAAC;;4CACZ;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACX;AAGf;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACX;AAzCJ,aAAa;IADzB,IAAA,wBAAS,GAAE;GACC,aAAa,CA0CzB;AA1CY,sCAAa;AA6C1B,IAAa,WAAW,GAAxB,MAAa,WAAW;CAoCvB,CAAA;AAlCC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;0DACjC,iBAAS,oBAAT,iBAAS;8CAAA;AAGrB;IADC,IAAA,oBAAK,GAAE;;yCACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACN;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACb;AAGb;IADC,IAAA,oBAAK,GAAE;;yCACI;AAGZ;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACH;AAGvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACF;AAGxB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACH;AAGvB;IADC,IAAA,oBAAK,GAAE;;wCACG;AAGX;IADC,IAAA,oBAAK,GAAE;;2CACM;AAGd;IADC,IAAA,oBAAK,GAAE;;0CACK;AAGb;IADC,IAAA,oBAAK,GAAE;;2CACM;AAnCH,WAAW;IADvB,IAAA,wBAAS,GAAE;GACC,WAAW,CAoCvB;AApCY,kCAAW","sourcesContent":["import { Field, Float, InputType, Int, ObjectType } from 'type-graphql'\n\nimport { Bizplace } from '@things-factory/biz-base'\nimport { Product } from '@things-factory/product-base'\nimport { ObjectRef } from '@things-factory/shell'\n\nimport { Warehouse } from '../warehouse/warehouse'\nimport { Location } from './location'\n\n@ObjectType()\nexport class LocationInventory {\n @Field({ nullable: true })\n id?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field(type => Bizplace, { nullable: true })\n bizplace?: Bizplace\n\n @Field({ nullable: true })\n palletId?: string\n\n @Field({ nullable: true })\n batchId?: string\n\n @Field(type => Int, { nullable: true })\n qty?: number\n\n @Field(type => Int, { nullable: true })\n accumulatedQty?: number\n\n @Field(type => Float, { nullable: true })\n uomValue?: number\n\n @Field({ nullable: true })\n uom?: string\n\n @Field({ nullable: true })\n packingType?: string\n\n @Field(type => Float, { nullable: true })\n packingSize?: number\n\n @Field({ nullable: true })\n expirationDate?: string\n\n @Field(type => Warehouse, { nullable: true })\n warehouse?: Warehouse\n\n @Field(type => Product, { nullable: true })\n product?: Product\n\n @Field({ nullable: true })\n zone?: string\n}\n\n@ObjectType()\nexport class LocationInventories {\n @Field(type => [LocationInventory], { nullable: true })\n items?: LocationInventory[]\n\n @Field(type => Int, { nullable: true })\n total?: number\n}\n\n@ObjectType()\nexport class LocationList {\n @Field(type => [Location], { nullable: true })\n items?: Location[]\n\n @Field(type => Int, { nullable: true })\n total?: number\n}\n\n@ObjectType()\nexport class LocationOccupancy {\n @Field(type => Int, { nullable: true })\n total?: number\n\n @Field(type => Int, { nullable: true })\n occupied?: number\n\n @Field(type => Int, { nullable: true })\n empty?: number\n\n @Field(type => Int, { nullable: true })\n percentage?: number\n}\n\n@InputType()\nexport class LocationPatch {\n @Field({ nullable: true })\n id?: string\n\n @Field(type => ObjectRef, { nullable: true })\n warehouse?: ObjectRef\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n type?: string\n\n @Field({ nullable: true })\n zone?: string\n\n @Field({ nullable: true })\n firstDelimiter?: string\n\n @Field({ nullable: true })\n secondDelimiter?: string\n\n @Field({ nullable: true })\n thirdDelimiter?: string\n\n @Field({ nullable: true })\n row?: string\n\n @Field({ nullable: true })\n column?: string\n\n @Field({ nullable: true })\n shelf?: string\n\n @Field({ nullable: true })\n status?: string\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@InputType()\nexport class NewLocation {\n @Field(type => ObjectRef, { nullable: true })\n warehouse?: ObjectRef\n\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n type?: string\n\n @Field()\n zone: string\n\n @Field({ nullable: true })\n firstDelimiter?: string\n\n @Field({ nullable: true })\n secondDelimiter?: string\n\n @Field({ nullable: true })\n thirdDelimiter?: string\n\n @Field()\n row: string\n\n @Field()\n column: string\n\n @Field()\n shelf: string\n\n @Field()\n status: string\n}\n"]}
@@ -1,16 +1,8 @@
1
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
2
  var _a, _b, _c;
12
3
  Object.defineProperty(exports, "__esModule", { value: true });
13
4
  exports.Location = void 0;
5
+ const tslib_1 = require("tslib");
14
6
  const type_graphql_1 = require("type-graphql");
15
7
  const typeorm_1 = require("typeorm");
16
8
  const auth_base_1 = require("@things-factory/auth-base");
@@ -32,114 +24,114 @@ let Location = class Location {
32
24
  }
33
25
  }
34
26
  };
35
- __decorate([
27
+ tslib_1.__decorate([
36
28
  (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
37
29
  (0, type_graphql_1.Field)(type => type_graphql_1.ID),
38
- __metadata("design:type", String)
30
+ tslib_1.__metadata("design:type", String)
39
31
  ], Location.prototype, "id", void 0);
40
- __decorate([
32
+ tslib_1.__decorate([
41
33
  (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
42
34
  (0, type_graphql_1.Field)(),
43
- __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
35
+ tslib_1.__metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
44
36
  ], Location.prototype, "domain", void 0);
45
- __decorate([
37
+ tslib_1.__decorate([
46
38
  (0, typeorm_1.RelationId)((location) => location.domain),
47
- __metadata("design:type", String)
39
+ tslib_1.__metadata("design:type", String)
48
40
  ], Location.prototype, "domainId", void 0);
49
- __decorate([
41
+ tslib_1.__decorate([
50
42
  (0, typeorm_1.ManyToOne)(type => warehouse_1.Warehouse, warehouse => warehouse.locations, {
51
43
  nullable: false
52
44
  }),
53
45
  (0, type_graphql_1.Field)(type => warehouse_1.Warehouse, { nullable: true }),
54
- __metadata("design:type", warehouse_1.Warehouse)
46
+ tslib_1.__metadata("design:type", warehouse_1.Warehouse)
55
47
  ], Location.prototype, "warehouse", void 0);
56
- __decorate([
48
+ tslib_1.__decorate([
57
49
  (0, typeorm_1.RelationId)((location) => location.warehouse),
58
- __metadata("design:type", String)
50
+ tslib_1.__metadata("design:type", String)
59
51
  ], Location.prototype, "warehouseId", void 0);
60
- __decorate([
52
+ tslib_1.__decorate([
61
53
  (0, typeorm_1.Column)({ nullable: true }),
62
54
  (0, type_graphql_1.Field)({ nullable: true }),
63
- __metadata("design:type", String)
55
+ tslib_1.__metadata("design:type", String)
64
56
  ], Location.prototype, "name", void 0);
65
- __decorate([
57
+ tslib_1.__decorate([
66
58
  (0, typeorm_1.Column)({
67
59
  nullable: true
68
60
  }),
69
61
  (0, type_graphql_1.Field)({ nullable: true }),
70
- __metadata("design:type", String)
62
+ tslib_1.__metadata("design:type", String)
71
63
  ], Location.prototype, "description", void 0);
72
- __decorate([
64
+ tslib_1.__decorate([
73
65
  (0, typeorm_1.Column)({
74
66
  nullable: true
75
67
  }),
76
68
  (0, type_graphql_1.Field)({ nullable: true }),
77
- __metadata("design:type", String)
69
+ tslib_1.__metadata("design:type", String)
78
70
  ], Location.prototype, "type", void 0);
79
- __decorate([
71
+ tslib_1.__decorate([
80
72
  (0, typeorm_1.Column)(),
81
73
  (0, type_graphql_1.Field)(),
82
- __metadata("design:type", String)
74
+ tslib_1.__metadata("design:type", String)
83
75
  ], Location.prototype, "zone", void 0);
84
- __decorate([
76
+ tslib_1.__decorate([
85
77
  (0, typeorm_1.Column)(),
86
78
  (0, type_graphql_1.Field)(),
87
- __metadata("design:type", String)
79
+ tslib_1.__metadata("design:type", String)
88
80
  ], Location.prototype, "row", void 0);
89
- __decorate([
81
+ tslib_1.__decorate([
90
82
  (0, typeorm_1.Column)(),
91
83
  (0, type_graphql_1.Field)(),
92
- __metadata("design:type", String)
84
+ tslib_1.__metadata("design:type", String)
93
85
  ], Location.prototype, "column", void 0);
94
- __decorate([
86
+ tslib_1.__decorate([
95
87
  (0, typeorm_1.Column)(),
96
88
  (0, type_graphql_1.Field)(),
97
- __metadata("design:type", String)
89
+ tslib_1.__metadata("design:type", String)
98
90
  ], Location.prototype, "shelf", void 0);
99
- __decorate([
91
+ tslib_1.__decorate([
100
92
  (0, typeorm_1.Column)({ type: 'text', comment: 'occupied, hold, empty' }),
101
93
  (0, type_graphql_1.Field)(),
102
- __metadata("design:type", String)
94
+ tslib_1.__metadata("design:type", String)
103
95
  ], Location.prototype, "status", void 0);
104
- __decorate([
96
+ tslib_1.__decorate([
105
97
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
106
98
  nullable: true
107
99
  }),
108
100
  (0, type_graphql_1.Field)({ nullable: true }),
109
- __metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
101
+ tslib_1.__metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
110
102
  ], Location.prototype, "creator", void 0);
111
- __decorate([
103
+ tslib_1.__decorate([
112
104
  (0, typeorm_1.RelationId)((location) => location.creator),
113
- __metadata("design:type", String)
105
+ tslib_1.__metadata("design:type", String)
114
106
  ], Location.prototype, "creatorId", void 0);
115
- __decorate([
107
+ tslib_1.__decorate([
116
108
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
117
109
  nullable: true
118
110
  }),
119
111
  (0, type_graphql_1.Field)({ nullable: true }),
120
- __metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
112
+ tslib_1.__metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
121
113
  ], Location.prototype, "updater", void 0);
122
- __decorate([
114
+ tslib_1.__decorate([
123
115
  (0, typeorm_1.RelationId)((location) => location.updater),
124
- __metadata("design:type", String)
116
+ tslib_1.__metadata("design:type", String)
125
117
  ], Location.prototype, "updaterId", void 0);
126
- __decorate([
118
+ tslib_1.__decorate([
127
119
  (0, typeorm_1.CreateDateColumn)(),
128
120
  (0, type_graphql_1.Field)({ nullable: true }),
129
- __metadata("design:type", Date)
121
+ tslib_1.__metadata("design:type", Date)
130
122
  ], Location.prototype, "createdAt", void 0);
131
- __decorate([
123
+ tslib_1.__decorate([
132
124
  (0, typeorm_1.UpdateDateColumn)(),
133
125
  (0, type_graphql_1.Field)({ nullable: true }),
134
- __metadata("design:type", Date)
126
+ tslib_1.__metadata("design:type", Date)
135
127
  ], Location.prototype, "updatedAt", void 0);
136
- Location = __decorate([
128
+ Location = tslib_1.__decorate([
137
129
  (0, typeorm_1.Entity)(),
138
130
  (0, typeorm_1.Index)('ix_location_0', (location) => [location.domain, location.name], { unique: true }),
139
131
  (0, typeorm_1.Index)('ix_location_1', (location) => [location.id], { unique: true }),
140
132
  (0, typeorm_1.Index)('ix_location_2', (location) => [location.domain]),
141
133
  (0, type_graphql_1.ObjectType)(),
142
- __metadata("design:paramtypes", [Object])
134
+ tslib_1.__metadata("design:paramtypes", [Object])
143
135
  ], Location);
144
136
  exports.Location = Location;
145
137
  //# sourceMappingURL=location.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"location.js","sourceRoot":"","sources":["../../../server/service/location/location.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAE9C,sDAAkD;AAOlD,IAAa,QAAQ,GAArB,MAAa,QAAQ;IAmFnB,YAAY,GAAI;QACd,IAAI,GAAG,EAAE;YACP,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,WAAW,CAAA;YACzB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,aAAa,CAAA;YAC7B,IAAI,CAAC,WAAW,GAAG,GAAG,CAAC,oBAAoB,CAAA;YAC3C,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,aAAa,CAAA;YAC7B,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,aAAa,CAAA;YAC7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,YAAY,CAAA;YAC3B,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,eAAe,CAAA;YACjC,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,cAAc,CAAA;YAC/B,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,eAAe,CAAA;YACjC,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,mBAAmB,CAAA;SACzC;IACH,CAAC;CACF,CAAA;AA9FC;IAFC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;oCACC;AAInB;IAFC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,G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E,CAAC,QAAkB,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACjE,IAAA,yBAAU,GAAE;;GACA,QAAQ,CAiGpB;AAjGY,4BAAQ","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\nimport { Warehouse } from '../warehouse/warehouse'\n\n@Entity()\n@Index('ix_location_0', (location: Location) => [location.domain, location.name], { unique: true })\n@Index('ix_location_1', (location: Location) => [location.id], { unique: true })\n@Index('ix_location_2', (location: Location) => [location.domain])\n@ObjectType()\nexport class Location {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field()\n domain: Domain\n\n @RelationId((location: Location) => location.domain)\n domainId: string\n\n @ManyToOne(type => Warehouse, warehouse => warehouse.locations, {\n nullable: false\n })\n @Field(type => Warehouse, { nullable: true })\n warehouse: Warehouse\n\n @RelationId((location: Location) => location.warehouse)\n warehouseId: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n name: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n description: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n type: string\n\n @Column()\n @Field()\n zone: string\n\n @Column()\n @Field()\n row: string\n\n @Column()\n @Field()\n column: string\n\n @Column()\n @Field()\n shelf: string\n\n @Column({ type: 'text', comment: 'occupied, hold, empty' })\n @Field()\n status: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator: User\n\n @RelationId((location: Location) => location.creator)\n creatorId: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater: User\n\n @RelationId((location: Location) => location.updater)\n updaterId: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt: Date\n\n constructor(obj?) {\n if (obj) {\n this.id = obj.Location_id\n this.name = obj.Location_name\n this.description = obj.Location_description\n this.type = obj.Location_type\n this.zone = obj.Location_zone\n this.row = obj.Location_row\n this.column = obj.Location_column\n this.shelf = obj.Location_shelf\n this.status = obj.Location_status\n this.updatedAt = obj.Location_updated_at\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/movement/index.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AACrC,2DAAsD;AACtD,qDAAgD;AAEnC,QAAA,QAAQ,GAAG,CAAC,mBAAQ,CAAC,CAAA;AACrB,QAAA,SAAS,GAAG,CAAC,8BAAa,EAAE,oCAAgB,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/movement/index.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AACrC,2DAAsD;AACtD,qDAAgD;AAEnC,QAAA,QAAQ,GAAG,CAAC,mBAAQ,CAAC,CAAA;AACrB,QAAA,SAAS,GAAG,CAAC,8BAAa,EAAE,oCAAgB,CAAC,CAAA","sourcesContent":["import { Movement } from './movement'\nimport { MovementMutation } from './movement-mutation'\nimport { MovementQuery } from './movement-query'\n\nexport const entities = [Movement]\nexport const resolvers = [MovementQuery, MovementMutation]\n"]}