@things-factory/warehouse-base 4.3.671 → 4.3.673

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +321 -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 +10 -10
@@ -0,0 +1,192 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ToteMutation = void 0;
16
+ const type_graphql_1 = require("type-graphql");
17
+ const typeorm_1 = require("typeorm");
18
+ const biz_base_1 = require("@things-factory/biz-base");
19
+ const tote_1 = require("./tote");
20
+ const tote_types_1 = require("./tote-types");
21
+ let ToteMutation = class ToteMutation {
22
+ async createTote(tote, context) {
23
+ const { domain, user, tx } = context.state;
24
+ const existingTote = (await tx.getRepository(tote_1.Tote).find({ relations: ['user'] })).map(tote => tote.name);
25
+ if (existingTote.includes(tote.name))
26
+ throw new Error('tote box already exists');
27
+ return await tx.getRepository(tote_1.Tote).save(Object.assign(Object.assign({}, tote), { domain: domain, creator: user, updater: user }));
28
+ }
29
+ async updateTote(name, patch, context) {
30
+ const { domain, user, tx } = context.state;
31
+ const repository = tx.getRepository(tote_1.Tote);
32
+ const tote = await repository.findOne({
33
+ where: { domain: domain, name }
34
+ });
35
+ return await repository.save(Object.assign(Object.assign(Object.assign({}, tote), patch), { updater: user }));
36
+ }
37
+ async updateMultipleTote(patches, context) {
38
+ const { domain, user, tx } = context.state;
39
+ let results = [];
40
+ const _createRecords = patches.filter((patch) => patch.cuFlag === '+');
41
+ const _updateRecords = patches.filter((patch) => patch.cuFlag.toUpperCase() === 'M');
42
+ if (_createRecords.length > 0) {
43
+ for (let i = 0; i < _createRecords.length; i++) {
44
+ const newRecord = _createRecords[i];
45
+ if (newRecord.bizplace && newRecord.bizplace.id) {
46
+ newRecord.bizplace = await tx.getRepository(biz_base_1.Bizplace).findOne(newRecord.bizplace.id);
47
+ }
48
+ let foundTote = await tx
49
+ .getRepository(tote_1.Tote)
50
+ .findOne({ where: { domain, name: newRecord.name, bizplace: newRecord.bizplace } });
51
+ if (foundTote) {
52
+ throw new Error('Duplicated tote found');
53
+ }
54
+ const result = await tx.getRepository(tote_1.Tote).save(Object.assign({ domain: domain, creator: user, updater: user }, newRecord));
55
+ results.push(Object.assign(Object.assign({}, result), { cuFlag: '+' }));
56
+ }
57
+ }
58
+ if (_updateRecords.length > 0) {
59
+ for (let i = 0; i < _updateRecords.length; i++) {
60
+ const newRecord = _updateRecords[i];
61
+ const tote = await tx.getRepository(tote_1.Tote).findOne({
62
+ where: { id: newRecord.id },
63
+ relations: ['bizplace']
64
+ });
65
+ if (newRecord.bizplace && newRecord.bizplace.id) {
66
+ newRecord.bizplace = await tx.getRepository(biz_base_1.Bizplace).findOne(newRecord.bizplace.id);
67
+ }
68
+ let foundTote = await tx
69
+ .getRepository(tote_1.Tote)
70
+ .findOne({ where: { domain, name: tote.name, bizplace: newRecord.bizplace } });
71
+ if (foundTote) {
72
+ throw new Error('Duplicated tote found');
73
+ }
74
+ const result = await tx.getRepository(tote_1.Tote).save(Object.assign(Object.assign(Object.assign({}, tote), newRecord), { updater: user }));
75
+ results.push(Object.assign(Object.assign({}, result), { cuFlag: 'M' }));
76
+ }
77
+ }
78
+ return results;
79
+ }
80
+ async deleteTote(id, context) {
81
+ const { domain, user, tx } = context.state;
82
+ const foundTote = await tx.getRepository(tote_1.Tote).find({ where: { id } });
83
+ await tx.getRepository(tote_1.Tote).save(Object.assign(Object.assign({}, foundTote), { deletedAt: new Date(), updater: user }));
84
+ return true;
85
+ }
86
+ async deleteTotes(ids, context) {
87
+ const { domain, user, tx } = context.state;
88
+ const totes = await tx.getRepository(tote_1.Tote).find({
89
+ where: {
90
+ domain: domain,
91
+ id: (0, typeorm_1.In)(ids)
92
+ },
93
+ relations: ['bizplace']
94
+ });
95
+ await Promise.all(totes.map(async (tote) => {
96
+ await tx.getRepository(tote_1.Tote).save(Object.assign(Object.assign({}, tote), { deletedAt: new Date(), updater: user }));
97
+ }));
98
+ return true;
99
+ }
100
+ async undeleteTotes(ids, context) {
101
+ const { tx, user } = context.state;
102
+ const toteRepo = tx.getRepository(tote_1.Tote);
103
+ await toteRepo.update({
104
+ id: (0, typeorm_1.In)(ids)
105
+ }, {
106
+ deletedAt: null,
107
+ updater: user
108
+ });
109
+ return true;
110
+ }
111
+ async bulkUpdateToteStatus(ids, status, context) {
112
+ const { tx, user } = context.state;
113
+ const toteRepo = tx.getRepository(tote_1.Tote);
114
+ await toteRepo.update({
115
+ id: (0, typeorm_1.In)(ids)
116
+ }, {
117
+ status,
118
+ updater: user
119
+ });
120
+ return true;
121
+ }
122
+ };
123
+ __decorate([
124
+ (0, type_graphql_1.Directive)('@transaction'),
125
+ (0, type_graphql_1.Mutation)(returns => tote_1.Tote),
126
+ __param(0, (0, type_graphql_1.Arg)('pallet')),
127
+ __param(1, (0, type_graphql_1.Ctx)()),
128
+ __metadata("design:type", Function),
129
+ __metadata("design:paramtypes", [tote_types_1.NewTote, Object]),
130
+ __metadata("design:returntype", Promise)
131
+ ], ToteMutation.prototype, "createTote", null);
132
+ __decorate([
133
+ (0, type_graphql_1.Directive)('@transaction'),
134
+ (0, type_graphql_1.Mutation)(returns => tote_1.Tote),
135
+ __param(0, (0, type_graphql_1.Arg)('name')),
136
+ __param(1, (0, type_graphql_1.Arg)('patch')),
137
+ __param(2, (0, type_graphql_1.Ctx)()),
138
+ __metadata("design:type", Function),
139
+ __metadata("design:paramtypes", [String, tote_types_1.TotePatch, Object]),
140
+ __metadata("design:returntype", Promise)
141
+ ], ToteMutation.prototype, "updateTote", null);
142
+ __decorate([
143
+ (0, type_graphql_1.Directive)('@transaction'),
144
+ (0, type_graphql_1.Mutation)(returns => [tote_1.Tote]),
145
+ __param(0, (0, type_graphql_1.Arg)('patches', type => [tote_types_1.TotePatch])),
146
+ __param(1, (0, type_graphql_1.Ctx)()),
147
+ __metadata("design:type", Function),
148
+ __metadata("design:paramtypes", [Array, Object]),
149
+ __metadata("design:returntype", Promise)
150
+ ], ToteMutation.prototype, "updateMultipleTote", null);
151
+ __decorate([
152
+ (0, type_graphql_1.Directive)('@transaction'),
153
+ (0, type_graphql_1.Mutation)(returns => Boolean),
154
+ __param(0, (0, type_graphql_1.Arg)('name')),
155
+ __param(1, (0, type_graphql_1.Ctx)()),
156
+ __metadata("design:type", Function),
157
+ __metadata("design:paramtypes", [String, Object]),
158
+ __metadata("design:returntype", Promise)
159
+ ], ToteMutation.prototype, "deleteTote", null);
160
+ __decorate([
161
+ (0, type_graphql_1.Directive)('@transaction'),
162
+ (0, type_graphql_1.Mutation)(returns => Boolean),
163
+ __param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
164
+ __param(1, (0, type_graphql_1.Ctx)()),
165
+ __metadata("design:type", Function),
166
+ __metadata("design:paramtypes", [Array, Object]),
167
+ __metadata("design:returntype", Promise)
168
+ ], ToteMutation.prototype, "deleteTotes", null);
169
+ __decorate([
170
+ (0, type_graphql_1.Directive)('@transaction'),
171
+ (0, type_graphql_1.Mutation)(returns => Boolean),
172
+ __param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
173
+ __param(1, (0, type_graphql_1.Ctx)()),
174
+ __metadata("design:type", Function),
175
+ __metadata("design:paramtypes", [Array, Object]),
176
+ __metadata("design:returntype", Promise)
177
+ ], ToteMutation.prototype, "undeleteTotes", null);
178
+ __decorate([
179
+ (0, type_graphql_1.Directive)('@transaction'),
180
+ (0, type_graphql_1.Mutation)(returns => Boolean),
181
+ __param(0, (0, type_graphql_1.Arg)('ids', type => [String])),
182
+ __param(1, (0, type_graphql_1.Arg)('status', type => String)),
183
+ __param(2, (0, type_graphql_1.Ctx)()),
184
+ __metadata("design:type", Function),
185
+ __metadata("design:paramtypes", [Array, String, Object]),
186
+ __metadata("design:returntype", Promise)
187
+ ], ToteMutation.prototype, "bulkUpdateToteStatus", null);
188
+ ToteMutation = __decorate([
189
+ (0, type_graphql_1.Resolver)(tote_1.Tote)
190
+ ], ToteMutation);
191
+ exports.ToteMutation = ToteMutation;
192
+ //# sourceMappingURL=tote-mutation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tote-mutation.js","sourceRoot":"","sources":["../../../server/service/tote/tote-mutation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+CAAsE;AACtE,qCAA2C;AAG3C,uDAAmD;AAInD,iCAA6B;AAC7B,6CAAiD;AAG1C,IAAM,YAAY,GAAlB,MAAM,YAAY;IAGjB,AAAN,KAAK,CAAC,UAAU,CAAgB,IAAa,EAAS,OAAY;QAChE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;QAE7F,MAAM,YAAY,GAAa,CAAC,MAAM,EAAE,CAAC,aAAa,CAAC,WAAI,CAAC,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAClH,IAAI,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAA;QAEhF,OAAO,MAAM,EAAE,CAAC,aAAa,CAAC,WAAI,CAAC,CAAC,IAAI,iCACnC,IAAI,KACP,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,IACb,CAAA;IACJ,CAAC;IAIK,AAAN,KAAK,CAAC,UAAU,CAAc,IAAY,EAAgB,KAAgB,EAAS,OAAY;QAC7F,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAsD,OAAO,CAAC,KAAK,CAAA;QAE7F,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,WAAI,CAAC,CAAA;QACzC,MAAM,IAAI,GAAG,M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;IAAiB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;iDAetE;AAIK;IAFL,IAAA,wBAAS,EAAC,cAAc,CAAC;IACzB,IAAA,uBAAQ,EAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC;IAE1B,WAAA,IAAA,kBAAG,EAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IAC5B,WAAA,IAAA,kBAAG,EAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAA;IAC7B,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;wDAgBP;AA1LU,YAAY;IADxB,IAAA,uBAAQ,EAAC,WAAI,CAAC;GACF,YAAY,CA2LxB;AA3LY,oCAAY"}
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var _a;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ToteQuery = void 0;
17
+ const type_graphql_1 = require("type-graphql");
18
+ const typeorm_1 = require("typeorm");
19
+ const auth_base_1 = require("@things-factory/auth-base");
20
+ const biz_base_1 = require("@things-factory/biz-base");
21
+ const shell_1 = require("@things-factory/shell");
22
+ const tote_1 = require("./tote");
23
+ const tote_types_1 = require("./tote-types");
24
+ let ToteQuery = class ToteQuery {
25
+ async totes(context, filters, pagination, sortings) {
26
+ const { domain, tx } = context.state;
27
+ const nameFilter = filters.find((filter) => filter.name === 'name');
28
+ const bizplaceFilter = filters.find((filter) => filter.name === 'bizplace');
29
+ const statusFilter = filters.find((filter) => filter.name === 'status');
30
+ const deletedFilter = filters.find((filter) => filter.name === 'deleted_at');
31
+ if (deletedFilter) {
32
+ filters.splice(filters.findIndex(itm => itm.name == 'deleted_at'), 1);
33
+ }
34
+ const queryBuilder = tx.getRepository(tote_1.Tote).createQueryBuilder();
35
+ (0, shell_1.buildQuery)(queryBuilder, { filters, pagination, sortings }, context);
36
+ queryBuilder
37
+ .leftJoinAndSelect('Tote.domain', 'Domain')
38
+ .leftJoinAndSelect('Tote.bizplace', 'Bizplace')
39
+ .leftJoinAndSelect('Tote.creator', 'Creator')
40
+ .leftJoinAndSelect('Tote.updater', 'Updater')
41
+ .andWhere('Domain.id = :domainId', { domainId: domain.id });
42
+ if (nameFilter) {
43
+ queryBuilder.andWhere('Tote.name ilike :name', { name: nameFilter.value });
44
+ }
45
+ if (statusFilter) {
46
+ queryBuilder.andWhere('Tote.status = :status', { status: statusFilter.value });
47
+ }
48
+ if (bizplaceFilter) {
49
+ queryBuilder.andWhere('Tote.bizplace_id = :id', { id: bizplaceFilter.value });
50
+ }
51
+ if (deletedFilter.value) {
52
+ queryBuilder.andWhere('Tote.deletedAt IS NOT NULL');
53
+ }
54
+ else {
55
+ queryBuilder.andWhere('Tote.deletedAt IS NULL');
56
+ }
57
+ const [items, total] = await queryBuilder.getManyAndCount();
58
+ return { items, total };
59
+ }
60
+ async tote(name, bizplace, context) {
61
+ const { domain } = context.state;
62
+ let foundBizplace = await (0, typeorm_1.getRepository)(biz_base_1.Bizplace).findOne({ where: { name: bizplace } });
63
+ let foundTote = await (0, typeorm_1.getRepository)(tote_1.Tote).findOne({
64
+ where: { domain, bizplace: foundBizplace, name, deletedAt: (0, typeorm_1.IsNull)() },
65
+ relations: ['domain', 'bizplace', 'creator', 'updater']
66
+ });
67
+ if (!foundTote) {
68
+ throw new Error('Tote not found');
69
+ }
70
+ else {
71
+ return foundTote;
72
+ }
73
+ }
74
+ async checkToteStatus(name, bizplace, context) {
75
+ const { domain } = context.state;
76
+ let foundBizplace = await (0, typeorm_1.getRepository)(biz_base_1.Bizplace).findOne({ where: { name: bizplace } });
77
+ let foundTote = await (0, typeorm_1.getRepository)(tote_1.Tote).findOne({
78
+ where: { domain, bizplace: foundBizplace, name, deletedAt: (0, typeorm_1.IsNull)() },
79
+ relations: ['domain', 'bizplace', 'creator', 'updater']
80
+ });
81
+ if (!foundTote) {
82
+ return '';
83
+ }
84
+ else {
85
+ return foundTote.status;
86
+ }
87
+ }
88
+ async domain(tote) {
89
+ return await (0, typeorm_1.getRepository)(shell_1.Domain).findOne(tote.domainId);
90
+ }
91
+ async bizplace(tote) {
92
+ return await (0, typeorm_1.getRepository)(biz_base_1.Bizplace).findOne(tote.bizplaceId);
93
+ }
94
+ async updater(tote) {
95
+ return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(tote.updaterId);
96
+ }
97
+ async creator(tote) {
98
+ return await (0, typeorm_1.getRepository)(auth_base_1.User).findOne(tote.creatorId);
99
+ }
100
+ };
101
+ __decorate([
102
+ (0, type_graphql_1.Directive)('@transaction'),
103
+ (0, type_graphql_1.Query)(returns => tote_types_1.ToteList),
104
+ __param(0, (0, type_graphql_1.Ctx)()),
105
+ __param(1, (0, type_graphql_1.Arg)('filters', type => [shell_1.Filter], { nullable: true })),
106
+ __param(2, (0, type_graphql_1.Arg)('pagination', type => shell_1.Pagination, { nullable: true })),
107
+ __param(3, (0, type_graphql_1.Arg)('sortings', type => [shell_1.Sorting], { nullable: true })),
108
+ __metadata("design:type", Function),
109
+ __metadata("design:paramtypes", [Object, Array, typeof (_a = typeof shell_1.Pagination !== "undefined" && shell_1.Pagination) === "function" ? _a : Object, Array]),
110
+ __metadata("design:returntype", Promise)
111
+ ], ToteQuery.prototype, "totes", null);
112
+ __decorate([
113
+ (0, type_graphql_1.Query)(returns => tote_1.Tote),
114
+ __param(0, (0, type_graphql_1.Arg)('name')),
115
+ __param(1, (0, type_graphql_1.Arg)('bizplace')),
116
+ __param(2, (0, type_graphql_1.Ctx)()),
117
+ __metadata("design:type", Function),
118
+ __metadata("design:paramtypes", [String, String, Object]),
119
+ __metadata("design:returntype", Promise)
120
+ ], ToteQuery.prototype, "tote", null);
121
+ __decorate([
122
+ (0, type_graphql_1.Query)(returns => String),
123
+ __param(0, (0, type_graphql_1.Arg)('name')),
124
+ __param(1, (0, type_graphql_1.Arg)('bizplace')),
125
+ __param(2, (0, type_graphql_1.Ctx)()),
126
+ __metadata("design:type", Function),
127
+ __metadata("design:paramtypes", [String, String, Object]),
128
+ __metadata("design:returntype", Promise)
129
+ ], ToteQuery.prototype, "checkToteStatus", null);
130
+ __decorate([
131
+ (0, type_graphql_1.FieldResolver)(),
132
+ __param(0, (0, type_graphql_1.Root)()),
133
+ __metadata("design:type", Function),
134
+ __metadata("design:paramtypes", [tote_1.Tote]),
135
+ __metadata("design:returntype", Promise)
136
+ ], ToteQuery.prototype, "domain", null);
137
+ __decorate([
138
+ (0, type_graphql_1.FieldResolver)(),
139
+ __param(0, (0, type_graphql_1.Root)()),
140
+ __metadata("design:type", Function),
141
+ __metadata("design:paramtypes", [tote_1.Tote]),
142
+ __metadata("design:returntype", Promise)
143
+ ], ToteQuery.prototype, "bizplace", null);
144
+ __decorate([
145
+ (0, type_graphql_1.FieldResolver)(),
146
+ __param(0, (0, type_graphql_1.Root)()),
147
+ __metadata("design:type", Function),
148
+ __metadata("design:paramtypes", [tote_1.Tote]),
149
+ __metadata("design:returntype", Promise)
150
+ ], ToteQuery.prototype, "updater", null);
151
+ __decorate([
152
+ (0, type_graphql_1.FieldResolver)(),
153
+ __param(0, (0, type_graphql_1.Root)()),
154
+ __metadata("design:type", Function),
155
+ __metadata("design:paramtypes", [tote_1.Tote]),
156
+ __metadata("design:returntype", Promise)
157
+ ], ToteQuery.prototype, "creator", null);
158
+ ToteQuery = __decorate([
159
+ (0, type_graphql_1.Resolver)(tote_1.Tote)
160
+ ], ToteQuery);
161
+ exports.ToteQuery = ToteQuery;
162
+ //# sourceMappingURL=tote-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tote-query.js","sourceRoot":"","sources":["../../../server/service/tote/tote-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAAwF;AACxF,qCAA8D;AAE9D,yDAAgD;AAChD,uDAAmD;AACnD,iDAAuF;AAEvF,iCAA6B;AAC7B,6CAAuC;AAGhC,IAAM,SAAS,GAAf,MAAM,SAAS;IAGd,AAAN,KAAK,CAAC,KAAK,CACF,OAAY,EACmC,OAAkB,EACb,UAAuB,EAC1B,QAAoB;QAE5E,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,GAA0C,OAAO,CAAC,KAAK,CAAA;QAE3E,MAAM,UAAU,GAAQ,OAAO,CAAC,IAAI,CAAC,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,CAAA;QAC7E,MAAM,cAAc,GAAQ,OAAO,CAAC,IAAI,CAAC,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,CAAA;QACrF,MAAM,YAAY,GAAQ,OAAO,CAAC,IAAI,CAAC,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAA;QACjF,MAAM,aAAa,GAAQ,OAAO,CAAC,IAAI,CAAC,CAAC,MAAW,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,YAAY,CAAC,CAAA;QAEtF,IAAI,aAAa,EAAE;YACjB,OAAO,CAAC,MAAM,CACZ,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,IAAI,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EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAA;;wEADiB,kBAAU,oBAAV,kBAAU;;sCAgDnF;AAGK;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,WAAI,CAAC;IACX,WAAA,IAAA,kBAAG,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,kBAAG,EAAC,UAAU,CAAC,CAAA;IAAoB,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;qCAc9E;AAGK;IADL,IAAA,oBAAK,EAAC,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC;IAEtB,WAAA,IAAA,kBAAG,EAAC,MAAM,CAAC,CAAA;IACX,WAAA,IAAA,kBAAG,EAAC,UAAU,CAAC,CAAA;IACf,WAAA,IAAA,kBAAG,GAAE,CAAA;;;;gDAeP;AAGK;IADL,IAAA,4BAAa,GAAE;IACF,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAO,WAAI;;uCAE9B;AAGK;IADL,IAAA,4BAAa,GAAE;IACA,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAO,WAAI;;yCAEhC;AAGK;IADL,IAAA,4BAAa,GAAE;IACD,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAO,WAAI;;wCAE/B;AAGK;IADL,IAAA,4BAAa,GAAE;IACD,WAAA,IAAA,mBAAI,GAAE,CAAA;;qCAAO,WAAI;;wCAE/B;AAhHU,SAAS;IADrB,IAAA,uBAAQ,EAAC,WAAI,CAAC;GACF,SAAS,CAiHrB;AAjHY,8BAAS"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var _a, _b;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.TotePatch = exports.ToteList = exports.NewTote = void 0;
14
+ const type_graphql_1 = require("type-graphql");
15
+ const shell_1 = require("@things-factory/shell");
16
+ const tote_1 = require("./tote");
17
+ let NewTote = class NewTote {
18
+ };
19
+ __decorate([
20
+ (0, type_graphql_1.Field)(),
21
+ __metadata("design:type", String)
22
+ ], NewTote.prototype, "name", void 0);
23
+ __decorate([
24
+ (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
25
+ __metadata("design:type", typeof (_a = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _a : Object)
26
+ ], NewTote.prototype, "bizplace", void 0);
27
+ __decorate([
28
+ (0, type_graphql_1.Field)({ nullable: true }),
29
+ __metadata("design:type", String)
30
+ ], NewTote.prototype, "status", void 0);
31
+ NewTote = __decorate([
32
+ (0, type_graphql_1.InputType)()
33
+ ], NewTote);
34
+ exports.NewTote = NewTote;
35
+ let ToteList = class ToteList {
36
+ };
37
+ __decorate([
38
+ (0, type_graphql_1.Field)(type => [tote_1.Tote], { nullable: true }),
39
+ __metadata("design:type", Array)
40
+ ], ToteList.prototype, "items", void 0);
41
+ __decorate([
42
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
43
+ __metadata("design:type", Number)
44
+ ], ToteList.prototype, "total", void 0);
45
+ ToteList = __decorate([
46
+ (0, type_graphql_1.ObjectType)()
47
+ ], ToteList);
48
+ exports.ToteList = ToteList;
49
+ let TotePatch = class TotePatch {
50
+ };
51
+ __decorate([
52
+ (0, type_graphql_1.Field)({ nullable: true }),
53
+ __metadata("design:type", String)
54
+ ], TotePatch.prototype, "id", void 0);
55
+ __decorate([
56
+ (0, type_graphql_1.Field)({ nullable: true }),
57
+ __metadata("design:type", String)
58
+ ], TotePatch.prototype, "name", void 0);
59
+ __decorate([
60
+ (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
61
+ __metadata("design:type", typeof (_b = typeof shell_1.ObjectRef !== "undefined" && shell_1.ObjectRef) === "function" ? _b : Object)
62
+ ], TotePatch.prototype, "bizplace", void 0);
63
+ __decorate([
64
+ (0, type_graphql_1.Field)({ nullable: true }),
65
+ __metadata("design:type", String)
66
+ ], TotePatch.prototype, "status", void 0);
67
+ __decorate([
68
+ (0, type_graphql_1.Field)({ nullable: true }),
69
+ __metadata("design:type", String)
70
+ ], TotePatch.prototype, "cuFlag", void 0);
71
+ TotePatch = __decorate([
72
+ (0, type_graphql_1.InputType)()
73
+ ], TotePatch);
74
+ exports.TotePatch = TotePatch;
75
+ //# sourceMappingURL=tote-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tote-types.js","sourceRoot":"","sources":["../../../server/service/tote/tote-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+CAAgE;AAEhE,iDAAiD;AAEjD,iCAA6B;AAGtB,IAAM,OAAO,GAAb,MAAM,OAAO;CASnB,CAAA;AARC;IAAC,IAAA,oBAAK,GAAE;;qCACI;AAEZ;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAClC,iBAAS,oBAAT,iBAAS;yCAAA;AAEpB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACX;AARJ,OAAO;IADnB,IAAA,wBAAS,GAAE;GACC,OAAO,CASnB;AATY,0BAAO;AAYb,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAMpB,CAAA;AALC;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,WAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCAC5B;AAEd;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACzB;AALH,QAAQ;IADpB,IAAA,yBAAU,GAAE;GACA,QAAQ,CAMpB;AANY,4BAAQ;AASd,IAAM,SAAS,GAAf,MAAM,SAAS;CAerB,CAAA;AAdC;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACf;AAEX;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACb;AAEb;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDAClC,iBAAS,oBAAT,iBAAS;2CAAA;AAEpB;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAEf;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAdJ,SAAS;IADrB,IAAA,wBAAS,GAAE;GACC,SAAS,CAerB;AAfY,8BAAS"}
@@ -0,0 +1,98 @@
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.Tote = void 0;
14
+ const type_graphql_1 = require("type-graphql");
15
+ const typeorm_1 = require("typeorm");
16
+ const auth_base_1 = require("@things-factory/auth-base");
17
+ const biz_base_1 = require("@things-factory/biz-base");
18
+ const shell_1 = require("@things-factory/shell");
19
+ let Tote = class Tote {
20
+ };
21
+ __decorate([
22
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
23
+ (0, type_graphql_1.Field)(),
24
+ __metadata("design:type", String)
25
+ ], Tote.prototype, "id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
28
+ (0, type_graphql_1.Field)(),
29
+ __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
30
+ ], Tote.prototype, "domain", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.RelationId)((tote) => tote.domain),
33
+ __metadata("design:type", String)
34
+ ], Tote.prototype, "domainId", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)(),
37
+ (0, type_graphql_1.Field)(),
38
+ __metadata("design:type", String)
39
+ ], Tote.prototype, "name", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.ManyToOne)(type => biz_base_1.Bizplace),
42
+ (0, typeorm_1.ManyToOne)(type => biz_base_1.Bizplace),
43
+ (0, type_graphql_1.Field)(type => biz_base_1.Bizplace),
44
+ __metadata("design:type", typeof (_b = typeof biz_base_1.Bizplace !== "undefined" && biz_base_1.Bizplace) === "function" ? _b : Object)
45
+ ], Tote.prototype, "bizplace", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.RelationId)((tote) => tote.bizplace),
48
+ __metadata("design:type", String)
49
+ ], Tote.prototype, "bizplaceId", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.Column)(),
52
+ (0, type_graphql_1.Field)(),
53
+ __metadata("design:type", String)
54
+ ], Tote.prototype, "status", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.CreateDateColumn)(),
57
+ (0, type_graphql_1.Field)({ nullable: true }),
58
+ __metadata("design:type", Date)
59
+ ], Tote.prototype, "createdAt", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.UpdateDateColumn)(),
62
+ (0, type_graphql_1.Field)({ nullable: true }),
63
+ __metadata("design:type", Date)
64
+ ], Tote.prototype, "updatedAt", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
67
+ nullable: true
68
+ }),
69
+ (0, type_graphql_1.Field)({ nullable: true }),
70
+ __metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
71
+ ], Tote.prototype, "creator", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.RelationId)((tote) => tote.creator),
74
+ __metadata("design:type", String)
75
+ ], Tote.prototype, "creatorId", void 0);
76
+ __decorate([
77
+ (0, typeorm_1.ManyToOne)(type => auth_base_1.User, {
78
+ nullable: true
79
+ }),
80
+ (0, type_graphql_1.Field)({ nullable: true }),
81
+ __metadata("design:type", typeof (_d = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _d : Object)
82
+ ], Tote.prototype, "updater", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.RelationId)((tote) => tote.updater),
85
+ __metadata("design:type", String)
86
+ ], Tote.prototype, "updaterId", void 0);
87
+ __decorate([
88
+ (0, typeorm_1.Column)({ nullable: true }),
89
+ (0, type_graphql_1.Field)({ nullable: true }),
90
+ __metadata("design:type", Date)
91
+ ], Tote.prototype, "deletedAt", void 0);
92
+ Tote = __decorate([
93
+ (0, typeorm_1.Entity)(),
94
+ (0, typeorm_1.Index)('ix_tote_0', (tote) => [tote.bizplace, tote.name], { unique: true }),
95
+ (0, type_graphql_1.ObjectType)()
96
+ ], Tote);
97
+ exports.Tote = Tote;
98
+ //# sourceMappingUR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AAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACjB,gBAAI,oBAAJ,gBAAI;qCAAA;AAEb;IAAC,IAAA,oBAAU,EAAC,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;;uCACxB;AAEjB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE;QACvB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;kDACjB,gBAAI,oBAAJ,gBAAI;qCAAA;AAEb;IAAC,IAAA,oBAAU,EAAC,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;;uCACxB;AAEjB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACf,IAAI;uCAAA;AAxDJ,IAAI;IAHhB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,WAAW,EAAE,CAAC,IAAU,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAChF,IAAA,yBAAU,GAAE;GACA,IAAI,CAyDhB;AAzDY,oBAAI"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolvers = exports.entities = void 0;
4
+ const warehouse_1 = require("./warehouse");
5
+ const warehouse_mutation_1 = require("./warehouse-mutation");
6
+ const warehouse_query_1 = require("./warehouse-query");
7
+ exports.entities = [warehouse_1.Warehouse];
8
+ exports.resolvers = [warehouse_query_1.WarehouseQuery, warehouse_mutation_1.WarehouseMutation];
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/warehouse/index.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AACvC,6DAAwD;AACxD,uDAAkD;AAErC,QAAA,QAAQ,GAAG,CAAC,qBAAS,CAAC,CAAA;AACtB,QAAA,SAAS,GAAG,CAAC,gCAAc,EAAE,sCAAiB,CAAC,CAAA"}