@things-factory/warehouse-base 4.3.651 → 4.3.652

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 (191) hide show
  1. package/dist-server/constants/adjustment-code.js +13 -0
  2. package/dist-server/constants/adjustment-code.js.map +1 -0
  3. package/dist-server/constants/index.js +23 -0
  4. package/dist-server/constants/index.js.map +1 -0
  5. package/dist-server/constants/inventory.js +74 -0
  6. package/dist-server/constants/inventory.js.map +1 -0
  7. package/dist-server/constants/location.js +19 -0
  8. package/dist-server/constants/location.js.map +1 -0
  9. package/dist-server/constants/pallet.js +13 -0
  10. package/dist-server/constants/pallet.js.map +1 -0
  11. package/dist-server/constants/rule-type.js +8 -0
  12. package/dist-server/constants/rule-type.js.map +1 -0
  13. package/dist-server/constants/tote.js +9 -0
  14. package/dist-server/constants/tote.js.map +1 -0
  15. package/dist-server/controllers/ecommerce/ecommerce-controller.js +125 -0
  16. package/dist-server/controllers/ecommerce/ecommerce-controller.js.map +1 -0
  17. package/dist-server/controllers/ecommerce/index.js +22 -0
  18. package/dist-server/controllers/ecommerce/index.js.map +1 -0
  19. package/dist-server/controllers/ecommerce/pos-controller.js +65 -0
  20. package/dist-server/controllers/ecommerce/pos-controller.js.map +1 -0
  21. package/dist-server/controllers/ecommerce/powrup-controller.js +87 -0
  22. package/dist-server/controllers/ecommerce/powrup-controller.js.map +1 -0
  23. package/dist-server/controllers/ecommerce/sellercraft-controller.js +85 -0
  24. package/dist-server/controllers/ecommerce/sellercraft-controller.js.map +1 -0
  25. package/dist-server/controllers/ecommerce/webspert-controller.js +131 -0
  26. package/dist-server/controllers/ecommerce/webspert-controller.js.map +1 -0
  27. package/dist-server/controllers/index.js +19 -0
  28. package/dist-server/controllers/index.js.map +1 -0
  29. package/dist-server/controllers/warehouse-controller.js +143 -0
  30. package/dist-server/controllers/warehouse-controller.js.map +1 -0
  31. package/dist-server/index.js +35 -0
  32. package/dist-server/index.js.map +1 -0
  33. package/dist-server/middlewares/index.js +1 -0
  34. package/dist-server/middlewares/index.js.map +1 -0
  35. package/dist-server/migrations/index.js +12 -0
  36. package/dist-server/migrations/index.js.map +1 -0
  37. package/dist-server/service/index.js +96 -0
  38. package/dist-server/service/index.js.map +1 -0
  39. package/dist-server/service/inventory/index.js +9 -0
  40. package/dist-server/service/inventory/index.js.map +1 -0
  41. package/dist-server/service/inventory/inventory-mutation.js +414 -0
  42. package/dist-server/service/inventory/inventory-mutation.js.map +1 -0
  43. package/dist-server/service/inventory/inventory-query.js +1211 -0
  44. package/dist-server/service/inventory/inventory-query.js.map +1 -0
  45. package/dist-server/service/inventory/inventory-types.js +478 -0
  46. package/dist-server/service/inventory/inventory-types.js.map +1 -0
  47. package/dist-server/service/inventory/inventory.js +569 -0
  48. package/dist-server/service/inventory/inventory.js.map +1 -0
  49. package/dist-server/service/inventory-change/index.js +9 -0
  50. package/dist-server/service/inventory-change/index.js.map +1 -0
  51. package/dist-server/service/inventory-change/inventory-change-mutation.js +1188 -0
  52. package/dist-server/service/inventory-change/inventory-change-mutation.js.map +1 -0
  53. package/dist-server/service/inventory-change/inventory-change-query.js +150 -0
  54. package/dist-server/service/inventory-change/inventory-change-query.js.map +1 -0
  55. package/dist-server/service/inventory-change/inventory-change-types.js +73 -0
  56. package/dist-server/service/inventory-change/inventory-change-types.js.map +1 -0
  57. package/dist-server/service/inventory-change/inventory-change.js +225 -0
  58. package/dist-server/service/inventory-change/inventory-change.js.map +1 -0
  59. package/dist-server/service/inventory-history/index.js +9 -0
  60. package/dist-server/service/inventory-history/index.js.map +1 -0
  61. package/dist-server/service/inventory-history/inventory-history-mutation.js +121 -0
  62. package/dist-server/service/inventory-history/inventory-history-mutation.js.map +1 -0
  63. package/dist-server/service/inventory-history/inventory-history-query.js +1694 -0
  64. package/dist-server/service/inventory-history/inventory-history-query.js.map +1 -0
  65. package/dist-server/service/inventory-history/inventory-history-types.js +626 -0
  66. package/dist-server/service/inventory-history/inventory-history-types.js.map +1 -0
  67. package/dist-server/service/inventory-history/inventory-history.js +238 -0
  68. package/dist-server/service/inventory-history/inventory-history.js.map +1 -0
  69. package/dist-server/service/inventory-item/index.js +9 -0
  70. package/dist-server/service/inventory-item/index.js.map +1 -0
  71. package/dist-server/service/inventory-item/inventory-item-mutation.js +274 -0
  72. package/dist-server/service/inventory-item/inventory-item-mutation.js.map +1 -0
  73. package/dist-server/service/inventory-item/inventory-item-query.js +265 -0
  74. package/dist-server/service/inventory-item/inventory-item-query.js.map +1 -0
  75. package/dist-server/service/inventory-item/inventory-item-type.js +127 -0
  76. package/dist-server/service/inventory-item/inventory-item-type.js.map +1 -0
  77. package/dist-server/service/inventory-item/inventory-item.js +146 -0
  78. package/dist-server/service/inventory-item/inventory-item.js.map +1 -0
  79. package/dist-server/service/inventory-item-change/index.js +9 -0
  80. package/dist-server/service/inventory-item-change/index.js.map +1 -0
  81. package/dist-server/service/inventory-item-change/inventory-item-change-mutation.js +121 -0
  82. package/dist-server/service/inventory-item-change/inventory-item-change-mutation.js.map +1 -0
  83. package/dist-server/service/inventory-item-change/inventory-item-change-query.js +87 -0
  84. package/dist-server/service/inventory-item-change/inventory-item-change-query.js.map +1 -0
  85. package/dist-server/service/inventory-item-change/inventory-item-change-type.js +107 -0
  86. package/dist-server/service/inventory-item-change/inventory-item-change-type.js.map +1 -0
  87. package/dist-server/service/inventory-item-change/inventory-item-change.js +110 -0
  88. package/dist-server/service/inventory-item-change/inventory-item-change.js.map +1 -0
  89. package/dist-server/service/inventory-product/index.js +9 -0
  90. package/dist-server/service/inventory-product/index.js.map +1 -0
  91. package/dist-server/service/inventory-product/inventory-product-mutation.js +120 -0
  92. package/dist-server/service/inventory-product/inventory-product-mutation.js.map +1 -0
  93. package/dist-server/service/inventory-product/inventory-product-query.js +87 -0
  94. package/dist-server/service/inventory-product/inventory-product-query.js.map +1 -0
  95. package/dist-server/service/inventory-product/inventory-product-type.js +95 -0
  96. package/dist-server/service/inventory-product/inventory-product-type.js.map +1 -0
  97. package/dist-server/service/inventory-product/inventory-product.js +112 -0
  98. package/dist-server/service/inventory-product/inventory-product.js.map +1 -0
  99. package/dist-server/service/location/index.js +9 -0
  100. package/dist-server/service/location/index.js.map +1 -0
  101. package/dist-server/service/location/location-mutation.js +279 -0
  102. package/dist-server/service/location/location-mutation.js.map +1 -0
  103. package/dist-server/service/location/location-query.js +320 -0
  104. package/dist-server/service/location/location-query.js.map +1 -0
  105. package/dist-server/service/location/location-types.js +296 -0
  106. package/dist-server/service/location/location-types.js.map +1 -0
  107. package/dist-server/service/location/location.js +146 -0
  108. package/dist-server/service/location/location.js.map +1 -0
  109. package/dist-server/service/movement/index.js +9 -0
  110. package/dist-server/service/movement/index.js.map +1 -0
  111. package/dist-server/service/movement/movement-mutation.js +80 -0
  112. package/dist-server/service/movement/movement-mutation.js.map +1 -0
  113. package/dist-server/service/movement/movement-query.js +286 -0
  114. package/dist-server/service/movement/movement-query.js.map +1 -0
  115. package/dist-server/service/movement/movement-types.js +117 -0
  116. package/dist-server/service/movement/movement-types.js.map +1 -0
  117. package/dist-server/service/movement/movement.js +101 -0
  118. package/dist-server/service/movement/movement.js.map +1 -0
  119. package/dist-server/service/pallet/index.js +9 -0
  120. package/dist-server/service/pallet/index.js.map +1 -0
  121. package/dist-server/service/pallet/pallet-mutation.js +194 -0
  122. package/dist-server/service/pallet/pallet-mutation.js.map +1 -0
  123. package/dist-server/service/pallet/pallet-query.js +164 -0
  124. package/dist-server/service/pallet/pallet-query.js.map +1 -0
  125. package/dist-server/service/pallet/pallet-types.js +109 -0
  126. package/dist-server/service/pallet/pallet-types.js.map +1 -0
  127. package/dist-server/service/pallet/pallet.js +112 -0
  128. package/dist-server/service/pallet/pallet.js.map +1 -0
  129. package/dist-server/service/pallet-count/index.js +9 -0
  130. package/dist-server/service/pallet-count/index.js.map +1 -0
  131. package/dist-server/service/pallet-count/pallet-count-mutation.js +153 -0
  132. package/dist-server/service/pallet-count/pallet-count-mutation.js.map +1 -0
  133. package/dist-server/service/pallet-count/pallet-count-query.js +86 -0
  134. package/dist-server/service/pallet-count/pallet-count-query.js.map +1 -0
  135. package/dist-server/service/pallet-count/pallet-count-types.js +65 -0
  136. package/dist-server/service/pallet-count/pallet-count-types.js.map +1 -0
  137. package/dist-server/service/pallet-count/pallet-count.js +89 -0
  138. package/dist-server/service/pallet-count/pallet-count.js.map +1 -0
  139. package/dist-server/service/pallet-history/index.js +9 -0
  140. package/dist-server/service/pallet-history/index.js.map +1 -0
  141. package/dist-server/service/pallet-history/pallet-history-mutation.js +120 -0
  142. package/dist-server/service/pallet-history/pallet-history-mutation.js.map +1 -0
  143. package/dist-server/service/pallet-history/pallet-history-query.js +87 -0
  144. package/dist-server/service/pallet-history/pallet-history-query.js.map +1 -0
  145. package/dist-server/service/pallet-history/pallet-history-types.js +65 -0
  146. package/dist-server/service/pallet-history/pallet-history-types.js.map +1 -0
  147. package/dist-server/service/pallet-history/pallet-history.js +107 -0
  148. package/dist-server/service/pallet-history/pallet-history.js.map +1 -0
  149. package/dist-server/service/product-detail-stock/index.js +9 -0
  150. package/dist-server/service/product-detail-stock/index.js.map +1 -0
  151. package/dist-server/service/product-detail-stock/product-detail-stock-mutation.js +120 -0
  152. package/dist-server/service/product-detail-stock/product-detail-stock-mutation.js.map +1 -0
  153. package/dist-server/service/product-detail-stock/product-detail-stock-query.js +66 -0
  154. package/dist-server/service/product-detail-stock/product-detail-stock-query.js.map +1 -0
  155. package/dist-server/service/product-detail-stock/product-detail-stock-types.js +57 -0
  156. package/dist-server/service/product-detail-stock/product-detail-stock-types.js.map +1 -0
  157. package/dist-server/service/product-detail-stock/product-detail-stock.js +90 -0
  158. package/dist-server/service/product-detail-stock/product-detail-stock.js.map +1 -0
  159. package/dist-server/service/reduced-inventory-history/index.js +6 -0
  160. package/dist-server/service/reduced-inventory-history/index.js.map +1 -0
  161. package/dist-server/service/reduced-inventory-history/reduced-inventory-history.js +133 -0
  162. package/dist-server/service/reduced-inventory-history/reduced-inventory-history.js.map +1 -0
  163. package/dist-server/service/tote/index.js +9 -0
  164. package/dist-server/service/tote/index.js.map +1 -0
  165. package/dist-server/service/tote/tote-mutation.js +192 -0
  166. package/dist-server/service/tote/tote-mutation.js.map +1 -0
  167. package/dist-server/service/tote/tote-query.js +162 -0
  168. package/dist-server/service/tote/tote-query.js.map +1 -0
  169. package/dist-server/service/tote/tote-types.js +75 -0
  170. package/dist-server/service/tote/tote-types.js.map +1 -0
  171. package/dist-server/service/tote/tote.js +98 -0
  172. package/dist-server/service/tote/tote.js.map +1 -0
  173. package/dist-server/service/warehouse/index.js +9 -0
  174. package/dist-server/service/warehouse/index.js.map +1 -0
  175. package/dist-server/service/warehouse/warehouse-mutation.js +148 -0
  176. package/dist-server/service/warehouse/warehouse-mutation.js.map +1 -0
  177. package/dist-server/service/warehouse/warehouse-query.js +91 -0
  178. package/dist-server/service/warehouse/warehouse-query.js.map +1 -0
  179. package/dist-server/service/warehouse/warehouse-types.js +82 -0
  180. package/dist-server/service/warehouse/warehouse-types.js.map +1 -0
  181. package/dist-server/service/warehouse/warehouse.js +114 -0
  182. package/dist-server/service/warehouse/warehouse.js.map +1 -0
  183. package/dist-server/utils/datetime-util.js +61 -0
  184. package/dist-server/utils/datetime-util.js.map +1 -0
  185. package/dist-server/utils/index.js +20 -0
  186. package/dist-server/utils/index.js.map +1 -0
  187. package/dist-server/utils/inventory-no-generator.js +17 -0
  188. package/dist-server/utils/inventory-no-generator.js.map +1 -0
  189. package/dist-server/utils/inventory-util.js +413 -0
  190. package/dist-server/utils/inventory-util.js.map +1 -0
  191. package/package.json +6 -6
@@ -0,0 +1,320 @@
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, _b, _c, _d, _e;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.LocationQuery = void 0;
17
+ const type_graphql_1 = require("type-graphql");
18
+ const typeorm_1 = require("typeorm");
19
+ const biz_base_1 = require("@things-factory/biz-base");
20
+ const shell_1 = require("@things-factory/shell");
21
+ const inventory_1 = require("../../constants/inventory");
22
+ const warehouse_1 = require("../warehouse/warehouse");
23
+ const location_1 = require("./location");
24
+ const location_types_1 = require("./location-types");
25
+ let LocationQuery = class LocationQuery {
26
+ async locations(params, context) {
27
+ const queryBuilder = (0, typeorm_1.getRepository)(location_1.Location).createQueryBuilder();
28
+ (0, shell_1.buildQuery)(queryBuilder, params, context);
29
+ const [items, total] = await queryBuilder.getManyAndCount();
30
+ return { items, total };
31
+ }
32
+ /**
33
+ * @description this resolver was specially made to return huge locations data
34
+ * without dropping off performance due to typegraphql limitations
35
+ * @returns pure location data only. there will be no other table joined to avoid
36
+ * ORM lagging issue (converting to object extremely withdraws the performance)
37
+ * */
38
+ async pureLocations(params, context) {
39
+ const queryBuilder = (0, typeorm_1.getRepository)(location_1.Location).createQueryBuilder('location');
40
+ (0, shell_1.buildQuery)(queryBuilder, params, context);
41
+ const items = await queryBuilder.getRawMany();
42
+ const total = await queryBuilder.getCount();
43
+ return { items: items.map(item => new location_1.Location(item)), total };
44
+ }
45
+ async locationOccupancies(warehouse, types, context) {
46
+ var _a, _b;
47
+ const { domain } = context.state;
48
+ const foundWarehouse = await (0, typeorm_1.getRepository)(warehouse_1.Warehouse).findOne({
49
+ where: {
50
+ domain,
51
+ name: warehouse
52
+ },
53
+ relations: ['locations']
54
+ });
55
+ if (!foundWarehouse)
56
+ throw new Error(`${warehouse} was not found!`);
57
+ const locations = types && types.length
58
+ ? (_a = foundWarehouse === null || foundWarehouse === void 0 ? void 0 : foundWarehouse.locations) === null || _a === void 0 ? void 0 : _a.filter((location) => types.indexOf(location.type) !== -1)
59
+ : foundWarehouse === null || foundWarehouse === void 0 ? void 0 : foundWarehouse.locations;
60
+ const total = locations.length;
61
+ const occupied = ((_b = locations.filter((location) => location.status === 'OCCUPIED')) === null || _b === void 0 ? void 0 : _b.length) || 0;
62
+ const empty = total - occupied;
63
+ const percentage = occupied > 0 ? Math.round((occupied / total) * 100) : 0;
64
+ return { total, occupied, empty, percentage };
65
+ }
66
+ async location(name, context) {
67
+ const { domain } = context.state;
68
+ const foundLocation = await (0, typeorm_1.getRepository)(location_1.Location).findOne({
69
+ where: { domain: domain, name },
70
+ relations: ['domain', 'warehouse', 'creator', 'updater']
71
+ });
72
+ if (!foundLocation)
73
+ throw new Error(context.t('error.no_location_found'));
74
+ return foundLocation;
75
+ }
76
+ async binLocation(name, context) {
77
+ const { domain } = context.state;
78
+ const foundBin = await (0, typeorm_1.getRepository)(location_1.Location).findOne({
79
+ where: { domain: domain, type: 'BIN', name },
80
+ });
81
+ if (!foundBin)
82
+ throw new Error(context.t('error.no_bin_found'));
83
+ return foundBin;
84
+ }
85
+ async locationByName(name, context) {
86
+ const { domain } = context.state;
87
+ return await (0, typeorm_1.getRepository)(location_1.Location).findOne({
88
+ where: {
89
+ domain: domain,
90
+ name
91
+ },
92
+ relations: ['domain', 'warehouse', 'creator', 'updater']
93
+ });
94
+ }
95
+ async locationsByGroup(params, context) {
96
+ const { domain } = context.state;
97
+ const warehouseIdParam = params.filters.find(param => (param.name = 'warehouse_id'));
98
+ if (!warehouseIdParam.value)
99
+ throw new Error(`invalid warehouse ID`);
100
+ const items = await (0, typeorm_1.getRepository)(location_1.Location).query(`
101
+ SELECT CONCAT("zone",'-',"row",'-',"column") as name, "zone", "row", "column"
102
+ FROM locations WHERE domain_id = '${domain.id}'
103
+ AND warehouse_id = '${warehouseIdParam.value}'
104
+ GROUP BY "zone", "row", "column"
105
+ `);
106
+ let [{ total }] = await (0, typeorm_1.getRepository)(location_1.Location).query(`
107
+ SELECT COUNT(DISTINCT("zone", "row", "column")) as total
108
+ FROM locations WHERE domain_id = '${domain.id}'
109
+ AND warehouse_id = '${warehouseIdParam.value}'
110
+ `);
111
+ total = parseInt(total);
112
+ return { items, total };
113
+ }
114
+ async locationWithInventories(params, context) {
115
+ var _a, _b;
116
+ const { domain, user } = context.state;
117
+ const bizplaceIds = await (0, biz_base_1.getPermittedBizplaceIds)(domain, user);
118
+ const queryBuilder = (0, typeorm_1.getRepository)(location_1.Location).createQueryBuilder();
119
+ const warehouseNames = (_a = params.filters.find(x => x.name === 'warehouseNames' && x.operator.toLowerCase() === 'in')) === null || _a === void 0 ? void 0 : _a.value;
120
+ const locationTypes = (_b = params.filters.find(x => x.name === 'locationTypes' && x.operator.toLowerCase() === 'in')) === null || _b === void 0 ? void 0 : _b.value;
121
+ params.filters = [];
122
+ (0, shell_1.buildQuery)(queryBuilder, params, context);
123
+ queryBuilder
124
+ .leftJoinAndSelect('Location.warehouse', 'Warehouse')
125
+ .leftJoinAndSelect('inventories', 'Inventory', 'Location.id = Inventory.location_id AND Inventory.status = :InvStatus', {
126
+ InvStatus: inventory_1.INVENTORY_STATUS.STORED
127
+ })
128
+ .leftJoinAndSelect('Inventory.product', 'Product')
129
+ .leftJoinAndSelect('Inventory.bizplace', 'Bizplace', 'Bizplace.id IN (:...bizplaceIds)', {
130
+ bizplaceIds: [...new Set(bizplaceIds)]
131
+ })
132
+ .leftJoinAndSelect('Inventory.creator', 'Creator')
133
+ .leftJoinAndSelect('Inventory.updater', 'Updater')
134
+ .addSelect('SUM("Inventory"."qty") OVER(PARTITION BY "Location"."id")', 'accumulate_qty')
135
+ .where('Location.domain_id = :domainId', { domainId: domain.id });
136
+ if (warehouseNames) {
137
+ queryBuilder.andWhere('Warehouse.name IN (:...warehouseNames)', { warehouseNames: [...new Set(warehouseNames)] });
138
+ }
139
+ if (locationTypes) {
140
+ queryBuilder.andWhere('Location.type ILIKE ANY (ARRAY[:...locationTypes])', {
141
+ locationTypes: [...new Set(locationTypes)]
142
+ });
143
+ }
144
+ let items = await queryBuilder.getRawMany();
145
+ const total = await queryBuilder.getCount();
146
+ items = items.map(item => {
147
+ return {
148
+ id: item.Location_id,
149
+ name: item.Location_name,
150
+ bizplace: {
151
+ name: item.Bizplace_name || '',
152
+ description: item.Bizplace_description || ''
153
+ },
154
+ product: {
155
+ name: item.Product_name || '',
156
+ sku: item.Product_sku || '',
157
+ description: item.Product_description || ''
158
+ },
159
+ palletId: item.Inventory_pallet_id || '',
160
+ batchId: item.Inventory_batch_id || '',
161
+ qty: item.Inventory_qty || 0,
162
+ accumulatedQty: item.accumulate_qty || 0,
163
+ uomValue: item.Inventory_uom_value || 0.0,
164
+ uom: item.Inventory_uom || '',
165
+ packingType: item.Inventory_packing_type || '',
166
+ packingSize: item.Inventory_packing_size || 0.0,
167
+ expirationDate: item.Inventory_expiration_date
168
+ ? new Date(item.Inventory_expiration_date).toISOString().split('T')[0].split('-').reverse().join('-')
169
+ : '',
170
+ warehouse: {
171
+ name: item.Warehouse_name,
172
+ description: item.Warehouse_description,
173
+ type: item.Warehouse_type
174
+ },
175
+ zone: item.Location_zone
176
+ };
177
+ });
178
+ return { items, total };
179
+ }
180
+ async locationByInventories(params, bizplaceId, context) {
181
+ const { domain, user } = context.state;
182
+ const queryBuilder = (0, typeorm_1.getRepository)(location_1.Location).createQueryBuilder();
183
+ queryBuilder
184
+ .innerJoin('inventories', 'Inventory', 'Location.id = Inventory.location_id AND Inventory.status = :InvStatus', {
185
+ InvStatus: inventory_1.INVENTORY_STATUS.STORED
186
+ })
187
+ .where('Location.domain_id = :domainId', { domainId: domain.id })
188
+ .andWhere('Inventory.bizplace_id = :bizplaceId', { bizplaceId: bizplaceId })
189
+ .andWhere(query => {
190
+ const subQuery = query.subQuery()
191
+ .select('DISTINCT ici.inventory_id', 'inventory_id')
192
+ .from('worksheets', 'w')
193
+ .innerJoin('worksheet_details', 'wd', 'wd.worksheet_id = w.id')
194
+ .innerJoin('inventory_check_items', 'ici', 'wd.target_inventory_check_item_id = ici.id')
195
+ .where('w.type IN (:...types)', { types: ['CYCLE_COUNT', 'CYCLE_COUNT_RECHECK'] })
196
+ .andWhere('w.status != :status', { status: 'DONE' })
197
+ .andWhere('w.bizplace_id = :bizplaceId', { bizplaceId: bizplaceId }) // assuming array
198
+ .andWhere('w.domain_id = :domainId', { domainId: domain.id })
199
+ .getQuery();
200
+ return `Inventory.id NOT IN ${subQuery}`;
201
+ });
202
+ if (params.filters) {
203
+ params.filters.forEach(filter => {
204
+ const value = filter.value;
205
+ if (!value)
206
+ return;
207
+ if (filter.name === 'name' && filter.operator.toLowerCase() === 'i_like') {
208
+ queryBuilder.andWhere('Location.name ILIKE :name', { name: `%${value}%` });
209
+ }
210
+ else if (filter.name === 'type' && filter.operator.toLowerCase() === 'eq') {
211
+ queryBuilder.andWhere('Location.type = :type', { type: value });
212
+ }
213
+ else if (filter.name === 'locationId' && filter.operator.toLowerCase() === 'notin') {
214
+ const locationIds = Array.isArray(value) ? value : [value];
215
+ queryBuilder.andWhere('Location.id NOT IN (:...locationIds)', { locationIds });
216
+ }
217
+ });
218
+ }
219
+ queryBuilder.select('DISTINCT "Location"."id","Location"."name", "Location"."type"');
220
+ queryBuilder.orderBy('Location.name', 'ASC');
221
+ let rawItems = await queryBuilder.getRawMany();
222
+ const total = await queryBuilder.getCount();
223
+ let items = rawItems.map(item => {
224
+ return {
225
+ id: item.id,
226
+ name: item.name,
227
+ type: item.type
228
+ };
229
+ });
230
+ return { items, total };
231
+ }
232
+ };
233
+ __decorate([
234
+ (0, type_graphql_1.Directive)('@privilege(category: "warehouse", privilege: "query")'),
235
+ (0, type_graphql_1.Query)(returns => location_types_1.LocationList),
236
+ __param(0, (0, type_graphql_1.Args)()),
237
+ __param(1, (0, type_graphql_1.Ctx)()),
238
+ __metadata("design:type", Function),
239
+ __metadata("design:paramtypes", [typeof (_a = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _a : Object, Object]),
240
+ __metadata("design:returntype", Promise)
241
+ ], LocationQuery.prototype, "locations", null);
242
+ __decorate([
243
+ (0, type_graphql_1.Directive)('@privilege(category: "warehouse", privilege: "query")'),
244
+ (0, type_graphql_1.Query)(returns => location_types_1.LocationList),
245
+ __param(0, (0, type_graphql_1.Args)()),
246
+ __param(1, (0, type_graphql_1.Ctx)()),
247
+ __metadata("design:type", Function),
248
+ __metadata("design:paramtypes", [typeof (_b = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _b : Object, Object]),
249
+ __metadata("design:returntype", Promise)
250
+ ], LocationQuery.prototype, "pureLocations", null);
251
+ __decorate([
252
+ (0, type_graphql_1.Directive)('@privilege(category: "warehouse", privilege: "query")'),
253
+ (0, type_graphql_1.Query)(returns => location_types_1.LocationOccupancy),
254
+ __param(0, (0, type_graphql_1.Arg)('warehouse')),
255
+ __param(1, (0, type_graphql_1.Arg)('types', type => [String], { nullable: true })),
256
+ __param(2, (0, type_graphql_1.Ctx)()),
257
+ __metadata("design:type", Function),
258
+ __metadata("design:paramtypes", [String, Array, Object]),
259
+ __metadata("design:returntype", Promise)
260
+ ], LocationQuery.prototype, "locationOccupancies", null);
261
+ __decorate([
262
+ (0, type_graphql_1.Directive)('@privilege(category: "warehouse", privilege: "query")'),
263
+ (0, type_graphql_1.Query)(returns => location_1.Location),
264
+ __param(0, (0, type_graphql_1.Arg)('name')),
265
+ __param(1, (0, type_graphql_1.Ctx)()),
266
+ __metadata("design:type", Function),
267
+ __metadata("design:paramtypes", [String, Object]),
268
+ __metadata("design:returntype", Promise)
269
+ ], LocationQuery.prototype, "location", null);
270
+ __decorate([
271
+ (0, type_graphql_1.Directive)('@privilege(category: "warehouse", privilege: "query")'),
272
+ (0, type_graphql_1.Query)(returns => location_1.Location),
273
+ __param(0, (0, type_graphql_1.Arg)('name')),
274
+ __param(1, (0, type_graphql_1.Ctx)()),
275
+ __metadata("design:type", Function),
276
+ __metadata("design:paramtypes", [String, Object]),
277
+ __metadata("design:returntype", Promise)
278
+ ], LocationQuery.prototype, "binLocation", null);
279
+ __decorate([
280
+ (0, type_graphql_1.Directive)('@privilege(category: "warehouse", privilege: "query")'),
281
+ (0, type_graphql_1.Query)(returns => location_1.Location),
282
+ __param(0, (0, type_graphql_1.Arg)('name')),
283
+ __param(1, (0, type_graphql_1.Ctx)()),
284
+ __metadata("design:type", Function),
285
+ __metadata("design:paramtypes", [String, Object]),
286
+ __metadata("design:returntype", Promise)
287
+ ], LocationQuery.prototype, "locationByName", null);
288
+ __decorate([
289
+ (0, type_graphql_1.Directive)('@privilege(category: "warehouse", privilege: "query")'),
290
+ (0, type_graphql_1.Query)(returns => location_types_1.LocationList),
291
+ __param(0, (0, type_graphql_1.Args)()),
292
+ __param(1, (0, type_graphql_1.Ctx)()),
293
+ __metadata("design:type", Function),
294
+ __metadata("design:paramtypes", [typeof (_c = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _c : Object, Object]),
295
+ __metadata("design:returntype", Promise)
296
+ ], LocationQuery.prototype, "locationsByGroup", null);
297
+ __decorate([
298
+ (0, type_graphql_1.Directive)('@privilege(category: "warehouse", privilege: "query")'),
299
+ (0, type_graphql_1.Query)(returns => location_types_1.LocationInventories),
300
+ __param(0, (0, type_graphql_1.Args)()),
301
+ __param(1, (0, type_graphql_1.Ctx)()),
302
+ __metadata("design:type", Function),
303
+ __metadata("design:paramtypes", [typeof (_d = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _d : Object, Object]),
304
+ __metadata("design:returntype", Promise)
305
+ ], LocationQuery.prototype, "locationWithInventories", null);
306
+ __decorate([
307
+ (0, type_graphql_1.Directive)('@privilege(category: "warehouse", privilege: "query")'),
308
+ (0, type_graphql_1.Query)(returns => location_types_1.LocationInventories),
309
+ __param(0, (0, type_graphql_1.Args)()),
310
+ __param(1, (0, type_graphql_1.Arg)('bizplaceId')),
311
+ __param(2, (0, type_graphql_1.Ctx)()),
312
+ __metadata("design:type", Function),
313
+ __metadata("design:paramtypes", [typeof (_e = typeof shell_1.ListParam !== "undefined" && shell_1.ListParam) === "function" ? _e : Object, String, Object]),
314
+ __metadata("design:returntype", Promise)
315
+ ], LocationQuery.prototype, "locationByInventories", null);
316
+ LocationQuery = __decorate([
317
+ (0, type_graphql_1.Resolver)(location_1.Location)
318
+ ], LocationQuery);
319
+ exports.LocationQuery = LocationQuery;
320
+ //# sourceMappingURL=location-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-query.js","sourceRoot":"","sources":["../../../server/service/location/location-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAOqB;AACrB,qCAAuC;AAGvC,uDAAkE;AAClE,iDAI8B;AAE9B,yDAA4D;AAC5D,sDAAkD;AAClD,yCAAqC;AACrC,qDAIyB;AAGlB,IAAM,aAAa,GAAnB,MAAM,aAAa;IAGlB,AAAN,KAAK,CAAC,SAAS,CAAS,MAAiB,EAAS,OAAY;QAC5D,MAAM,YAAY,GAAG,IAAA,uBAAa,EAAC,mBAAQ,CAAC,CAAC,kBAAkB,EAAE,CAAA;QACjE,IAAA,kBAAU,EAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;QACzC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,EAAE,CAAA;QAE3D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IACzB,CAAC;IAED;;;;;SAKK;IAGC,AAAN,KAAK,CAAC,aAAa,CAAS,MAAiB,EAAS,OAAY;QAChE,MAAM,YAAY,GAAG,IAAA,uBAAa,EAAC,mBAAQ,CAAC,CAAC,kBAAkB,CAAC,UAAU,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AAC,uDAAuD,CAAC;IAClE,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,6BAAY,CAAC;IACP,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAAjB,iBAAS,oBAAT,iBAAS;;qDAsB/C;AAIK;IAFL,IAAA,wBAAS,EAAC,uDAAuD,CAAC;IAClE,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,oCAAmB,CAAC;IACP,WAAA,IAAA,mBAAI,GAAE,CAAA;IAAqB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAAjB,iBAAS,oBAAT,iBAAS;;4DAkFtD;AAIK;IAFL,IAAA,wBAAS,EAAC,uDAAuD,CAAC;IAClE,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,oCAAmB,CAAC;IAEnC,WAAA,IAAA,mBAAI,GAAE,CAAA;IACN,WAAA,IAAA,kBAAG,EAAC,YAAY,CAAC,CAAA;IACjB,WAAA,IAAA,kBAAG,GAAE,CAAA;;yDAFU,iBAAS,oBAAT,iBAAS;;0DA4D1B;AAlRU,aAAa;IADzB,IAAA,uBAAQ,EAAC,mBAAQ,CAAC;GACN,aAAa,CAmRzB;AAnRY,sCAAa"}
@@ -0,0 +1,296 @@
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.ObjectRefLocation = exports.NewLocation = exports.LocationPatch = exports.LocationOccupancy = exports.LocationList = exports.LocationInfo = exports.LocationInventories = exports.LocationInventory = void 0;
14
+ const type_graphql_1 = require("type-graphql");
15
+ const biz_base_1 = require("@things-factory/biz-base");
16
+ const product_base_1 = require("@things-factory/product-base");
17
+ const shell_1 = require("@things-factory/shell");
18
+ const warehouse_1 = require("../warehouse/warehouse");
19
+ const location_1 = require("./location");
20
+ let LocationInventory = class LocationInventory {
21
+ };
22
+ __decorate([
23
+ (0, type_graphql_1.Field)({ nullable: true }),
24
+ __metadata("design:type", String)
25
+ ], LocationInventory.prototype, "id", void 0);
26
+ __decorate([
27
+ (0, type_graphql_1.Field)({ nullable: true }),
28
+ __metadata("design:type", String)
29
+ ], LocationInventory.prototype, "name", void 0);
30
+ __decorate([
31
+ (0, type_graphql_1.Field)({ nullable: true }),
32
+ __metadata("design:type", String)
33
+ ], LocationInventory.prototype, "type", void 0);
34
+ __decorate([
35
+ (0, type_graphql_1.Field)(type => biz_base_1.Bizplace, { nullable: true }),
36
+ __metadata("design:type", typeof (_a = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _a : Object)
37
+ ], LocationInventory.prototype, "bizplace", void 0);
38
+ __decorate([
39
+ (0, type_graphql_1.Field)({ nullable: true }),
40
+ __metadata("design:type", String)
41
+ ], LocationInventory.prototype, "palletId", void 0);
42
+ __decorate([
43
+ (0, type_graphql_1.Field)({ nullable: true }),
44
+ __metadata("design:type", String)
45
+ ], LocationInventory.prototype, "batchId", void 0);
46
+ __decorate([
47
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
48
+ __metadata("design:type", Number)
49
+ ], LocationInventory.prototype, "qty", void 0);
50
+ __decorate([
51
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
52
+ __metadata("design:type", Number)
53
+ ], LocationInventory.prototype, "accumulatedQty", void 0);
54
+ __decorate([
55
+ (0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
56
+ __metadata("design:type", Number)
57
+ ], LocationInventory.prototype, "uomValue", void 0);
58
+ __decorate([
59
+ (0, type_graphql_1.Field)({ nullable: true }),
60
+ __metadata("design:type", String)
61
+ ], LocationInventory.prototype, "uom", void 0);
62
+ __decorate([
63
+ (0, type_graphql_1.Field)({ nullable: true }),
64
+ __metadata("design:type", String)
65
+ ], LocationInventory.prototype, "packingType", void 0);
66
+ __decorate([
67
+ (0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
68
+ __metadata("design:type", Number)
69
+ ], LocationInventory.prototype, "packingSize", void 0);
70
+ __decorate([
71
+ (0, type_graphql_1.Field)({ nullable: true }),
72
+ __metadata("design:type", String)
73
+ ], LocationInventory.prototype, "expirationDate", void 0);
74
+ __decorate([
75
+ (0, type_graphql_1.Field)(type => warehouse_1.Warehouse, { nullable: true }),
76
+ __metadata("design:type", warehouse_1.Warehouse)
77
+ ], LocationInventory.prototype, "warehouse", void 0);
78
+ __decorate([
79
+ (0, type_graphql_1.Field)(type => product_base_1.Product, { nullable: true }),
80
+ __metadata("design:type", typeof (_b = typeof product_base_1.Product !== "undefined" && product_base_1.Product) === "function" ? _b : Object)
81
+ ], LocationInventory.prototype, "product", void 0);
82
+ __decorate([
83
+ (0, type_graphql_1.Field)({ nullable: true }),
84
+ __metadata("design:type", String)
85
+ ], LocationInventory.prototype, "zone", void 0);
86
+ LocationInventory = __decorate([
87
+ (0, type_graphql_1.ObjectType)()
88
+ ], LocationInventory);
89
+ exports.LocationInventory = LocationInventory;
90
+ let LocationInventories = class LocationInventories {
91
+ };
92
+ __decorate([
93
+ (0, type_graphql_1.Field)(type => [LocationInventory], { nullable: true }),
94
+ __metadata("design:type", Array)
95
+ ], LocationInventories.prototype, "items", void 0);
96
+ __decorate([
97
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
98
+ __metadata("design:type", Number)
99
+ ], LocationInventories.prototype, "total", void 0);
100
+ LocationInventories = __decorate([
101
+ (0, type_graphql_1.ObjectType)()
102
+ ], LocationInventories);
103
+ exports.LocationInventories = LocationInventories;
104
+ let LocationInfo = class LocationInfo {
105
+ };
106
+ __decorate([
107
+ (0, type_graphql_1.Field)({ nullable: true }),
108
+ __metadata("design:type", String)
109
+ ], LocationInfo.prototype, "zone", void 0);
110
+ __decorate([
111
+ (0, type_graphql_1.Field)({ nullable: true }),
112
+ __metadata("design:type", String)
113
+ ], LocationInfo.prototype, "shelf", void 0);
114
+ __decorate([
115
+ (0, type_graphql_1.Field)({ nullable: true }),
116
+ __metadata("design:type", String)
117
+ ], LocationInfo.prototype, "row", void 0);
118
+ __decorate([
119
+ (0, type_graphql_1.Field)({ nullable: true }),
120
+ __metadata("design:type", String)
121
+ ], LocationInfo.prototype, "column", void 0);
122
+ LocationInfo = __decorate([
123
+ (0, type_graphql_1.ObjectType)()
124
+ ], LocationInfo);
125
+ exports.LocationInfo = LocationInfo;
126
+ let LocationList = class LocationList {
127
+ };
128
+ __decorate([
129
+ (0, type_graphql_1.Field)(type => [location_1.Location], { nullable: true }),
130
+ __metadata("design:type", Array)
131
+ ], LocationList.prototype, "items", void 0);
132
+ __decorate([
133
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
134
+ __metadata("design:type", Number)
135
+ ], LocationList.prototype, "total", void 0);
136
+ LocationList = __decorate([
137
+ (0, type_graphql_1.ObjectType)()
138
+ ], LocationList);
139
+ exports.LocationList = LocationList;
140
+ let LocationOccupancy = class LocationOccupancy {
141
+ };
142
+ __decorate([
143
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
144
+ __metadata("design:type", Number)
145
+ ], LocationOccupancy.prototype, "total", void 0);
146
+ __decorate([
147
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
148
+ __metadata("design:type", Number)
149
+ ], LocationOccupancy.prototype, "occupied", void 0);
150
+ __decorate([
151
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
152
+ __metadata("design:type", Number)
153
+ ], LocationOccupancy.prototype, "empty", void 0);
154
+ __decorate([
155
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
156
+ __metadata("design:type", Number)
157
+ ], LocationOccupancy.prototype, "percentage", void 0);
158
+ LocationOccupancy = __decorate([
159
+ (0, type_graphql_1.ObjectType)()
160
+ ], LocationOccupancy);
161
+ exports.LocationOccupancy = LocationOccupancy;
162
+ let LocationPatch = class LocationPatch {
163
+ };
164
+ __decorate([
165
+ (0, type_graphql_1.Field)({ nullable: true }),
166
+ __metadata("design:type", String)
167
+ ], LocationPatch.prototype, "id", void 0);
168
+ __decorate([
169
+ (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
170
+ __metadata("design:type", typeof (_c = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _c : Object)
171
+ ], LocationPatch.prototype, "warehouse", void 0);
172
+ __decorate([
173
+ (0, type_graphql_1.Field)({ nullable: true }),
174
+ __metadata("design:type", String)
175
+ ], LocationPatch.prototype, "name", void 0);
176
+ __decorate([
177
+ (0, type_graphql_1.Field)({ nullable: true }),
178
+ __metadata("design:type", String)
179
+ ], LocationPatch.prototype, "description", void 0);
180
+ __decorate([
181
+ (0, type_graphql_1.Field)({ nullable: true }),
182
+ __metadata("design:type", String)
183
+ ], LocationPatch.prototype, "type", void 0);
184
+ __decorate([
185
+ (0, type_graphql_1.Field)({ nullable: true }),
186
+ __metadata("design:type", String)
187
+ ], LocationPatch.prototype, "zone", void 0);
188
+ __decorate([
189
+ (0, type_graphql_1.Field)({ nullable: true }),
190
+ __metadata("design:type", String)
191
+ ], LocationPatch.prototype, "firstDelimiter", void 0);
192
+ __decorate([
193
+ (0, type_graphql_1.Field)({ nullable: true }),
194
+ __metadata("design:type", String)
195
+ ], LocationPatch.prototype, "secondDelimiter", void 0);
196
+ __decorate([
197
+ (0, type_graphql_1.Field)({ nullable: true }),
198
+ __metadata("design:type", String)
199
+ ], LocationPatch.prototype, "thirdDelimiter", void 0);
200
+ __decorate([
201
+ (0, type_graphql_1.Field)({ nullable: true }),
202
+ __metadata("design:type", String)
203
+ ], LocationPatch.prototype, "row", void 0);
204
+ __decorate([
205
+ (0, type_graphql_1.Field)({ nullable: true }),
206
+ __metadata("design:type", String)
207
+ ], LocationPatch.prototype, "column", void 0);
208
+ __decorate([
209
+ (0, type_graphql_1.Field)({ nullable: true }),
210
+ __metadata("design:type", String)
211
+ ], LocationPatch.prototype, "shelf", void 0);
212
+ __decorate([
213
+ (0, type_graphql_1.Field)({ nullable: true }),
214
+ __metadata("design:type", String)
215
+ ], LocationPatch.prototype, "status", void 0);
216
+ __decorate([
217
+ (0, type_graphql_1.Field)({ nullable: true }),
218
+ __metadata("design:type", String)
219
+ ], LocationPatch.prototype, "cuFlag", void 0);
220
+ LocationPatch = __decorate([
221
+ (0, type_graphql_1.InputType)()
222
+ ], LocationPatch);
223
+ exports.LocationPatch = LocationPatch;
224
+ let NewLocation = class NewLocation {
225
+ };
226
+ __decorate([
227
+ (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
228
+ __metadata("design:type", typeof (_d = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _d : Object)
229
+ ], NewLocation.prototype, "warehouse", void 0);
230
+ __decorate([
231
+ (0, type_graphql_1.Field)(),
232
+ __metadata("design:type", String)
233
+ ], NewLocation.prototype, "name", void 0);
234
+ __decorate([
235
+ (0, type_graphql_1.Field)({ nullable: true }),
236
+ __metadata("design:type", String)
237
+ ], NewLocation.prototype, "description", void 0);
238
+ __decorate([
239
+ (0, type_graphql_1.Field)({ nullable: true }),
240
+ __metadata("design:type", String)
241
+ ], NewLocation.prototype, "type", void 0);
242
+ __decorate([
243
+ (0, type_graphql_1.Field)(),
244
+ __metadata("design:type", String)
245
+ ], NewLocation.prototype, "zone", void 0);
246
+ __decorate([
247
+ (0, type_graphql_1.Field)({ nullable: true }),
248
+ __metadata("design:type", String)
249
+ ], NewLocation.prototype, "firstDelimiter", void 0);
250
+ __decorate([
251
+ (0, type_graphql_1.Field)({ nullable: true }),
252
+ __metadata("design:type", String)
253
+ ], NewLocation.prototype, "secondDelimiter", void 0);
254
+ __decorate([
255
+ (0, type_graphql_1.Field)({ nullable: true }),
256
+ __metadata("design:type", String)
257
+ ], NewLocation.prototype, "thirdDelimiter", void 0);
258
+ __decorate([
259
+ (0, type_graphql_1.Field)(),
260
+ __metadata("design:type", String)
261
+ ], NewLocation.prototype, "row", void 0);
262
+ __decorate([
263
+ (0, type_graphql_1.Field)(),
264
+ __metadata("design:type", String)
265
+ ], NewLocation.prototype, "column", void 0);
266
+ __decorate([
267
+ (0, type_graphql_1.Field)(),
268
+ __metadata("design:type", String)
269
+ ], NewLocation.prototype, "shelf", void 0);
270
+ __decorate([
271
+ (0, type_graphql_1.Field)(),
272
+ __metadata("design:type", String)
273
+ ], NewLocation.prototype, "status", void 0);
274
+ NewLocation = __decorate([
275
+ (0, type_graphql_1.InputType)()
276
+ ], NewLocation);
277
+ exports.NewLocation = NewLocation;
278
+ let ObjectRefLocation = class ObjectRefLocation {
279
+ };
280
+ __decorate([
281
+ (0, type_graphql_1.Field)({ nullable: true }),
282
+ __metadata("design:type", String)
283
+ ], ObjectRefLocation.prototype, "id", void 0);
284
+ __decorate([
285
+ (0, type_graphql_1.Field)({ nullable: true }),
286
+ __metadata("design:type", String)
287
+ ], ObjectRefLocation.prototype, "name", void 0);
288
+ __decorate([
289
+ (0, type_graphql_1.Field)({ nullable: true }),
290
+ __metadata("design:type", String)
291
+ ], ObjectRefLocation.prototype, "description", void 0);
292
+ ObjectRefLocation = __decorate([
293
+ (0, type_graphql_1.InputType)()
294
+ ], ObjectRefLocation);
295
+ exports.ObjectRefLocation = ObjectRefLocation;
296
+ //# sourceMappingURL=location-types.js.map
@@ -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