@rytass/wms-module-core 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +880 -655
- package/index.d.ts +1 -0
- package/index.js +4 -0
- package/lib/events/dispatch-scope.d.ts +18 -0
- package/lib/events/dispatch-scope.js +29 -0
- package/lib/events/index.d.ts +5 -0
- package/lib/events/stock-change.subscriber.d.ts +18 -0
- package/lib/events/stock-change.subscriber.js +118 -0
- package/lib/events/wms-event.collector.d.ts +11 -0
- package/lib/events/wms-event.collector.js +22 -0
- package/lib/events/wms-event.dispatcher.d.ts +19 -0
- package/lib/events/wms-event.dispatcher.js +63 -0
- package/lib/events/wms-event.tokens.d.ts +4 -0
- package/lib/events/wms-event.tokens.js +6 -0
- package/lib/events/wms-event.types.d.ts +98 -0
- package/lib/models/models.module.js +8 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -3,11 +3,215 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var common = require('@nestjs/common');
|
|
5
5
|
var wmsBaseNestjsModule = require('@rytass/wms-base-nestjs-module');
|
|
6
|
-
var typeorm
|
|
6
|
+
var typeorm = require('@nestjs/typeorm');
|
|
7
|
+
var node_async_hooks = require('node:async_hooks');
|
|
8
|
+
var typeorm$1 = require('typeorm');
|
|
7
9
|
var warehouseMap_entity = require('@rytass/wms-base-nestjs-module/models/warehouse-map.entity');
|
|
8
|
-
var typeorm = require('typeorm');
|
|
9
10
|
var luxon = require('luxon');
|
|
10
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Process-wide async-context store that buffers domain events for the lifetime
|
|
14
|
+
* of a single mutation. Propagates automatically across `await` boundaries
|
|
15
|
+
* (resolver -> service -> cross-service) via the V8 async context, so services
|
|
16
|
+
* collect into the same buffer without threading any context argument.
|
|
17
|
+
*/
|
|
18
|
+
const dispatchAls = new node_async_hooks.AsyncLocalStorage();
|
|
19
|
+
/** Push an event into the active scope. No-op when called outside a scope. */
|
|
20
|
+
function collectToScope(event) {
|
|
21
|
+
dispatchAls.getStore()?.buffer.push(event);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Run `fn` inside a dispatch scope. If a scope already exists (nested mutation),
|
|
25
|
+
* joins it and returns `events: null` so only the outermost owner flushes — this
|
|
26
|
+
* guarantees a single post-commit flush after the outermost transaction.
|
|
27
|
+
*/
|
|
28
|
+
async function runInDispatchScope(fn) {
|
|
29
|
+
if (dispatchAls.getStore()) {
|
|
30
|
+
const result = await fn();
|
|
31
|
+
return { result, events: null };
|
|
32
|
+
}
|
|
33
|
+
const scope = { buffer: [] };
|
|
34
|
+
const result = await dispatchAls.run(scope, fn);
|
|
35
|
+
return { result, events: scope.buffer };
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Injected into core services so they can record stock domain events at the
|
|
40
|
+
* point a `*_order_change` / state transition is written. Events are buffered
|
|
41
|
+
* in the current dispatch scope and flushed post-commit by the graphql
|
|
42
|
+
* interceptor. Outside a scope (the service called directly as a plain library)
|
|
43
|
+
* this is a silent no-op.
|
|
44
|
+
*/
|
|
45
|
+
exports.WmsEventCollector = class WmsEventCollector {
|
|
46
|
+
collect(name, payload) {
|
|
47
|
+
const event = { name, payload };
|
|
48
|
+
collectToScope(event);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
exports.WmsEventCollector = tslib.__decorate([
|
|
52
|
+
common.Injectable()
|
|
53
|
+
], exports.WmsEventCollector);
|
|
54
|
+
|
|
55
|
+
exports.StockStatus = void 0;
|
|
56
|
+
(function (StockStatus) {
|
|
57
|
+
StockStatus["PENDING_INSPECTION"] = "PENDING_INSPECTION";
|
|
58
|
+
StockStatus["INSPECTION_FAILED"] = "INSPECTION_FAILED";
|
|
59
|
+
StockStatus["HELD"] = "HELD";
|
|
60
|
+
StockStatus["IN_TRANSFER"] = "IN_TRANSFER";
|
|
61
|
+
StockStatus["IN_SHIPMENT"] = "IN_SHIPMENT";
|
|
62
|
+
StockStatus["ALLOCATED"] = "ALLOCATED";
|
|
63
|
+
StockStatus["VENDOR_INVENTORY"] = "VENDOR_INVENTORY";
|
|
64
|
+
StockStatus["CUSTOMER_INVENTORY"] = "CUSTOMER_INVENTORY";
|
|
65
|
+
StockStatus["FREE"] = "FREE";
|
|
66
|
+
})(exports.StockStatus || (exports.StockStatus = {}));
|
|
67
|
+
exports.ChangeType = void 0;
|
|
68
|
+
(function (ChangeType) {
|
|
69
|
+
// receive-inventory-order-change.entity.ts
|
|
70
|
+
ChangeType["RECEIVED"] = "RECEIVED";
|
|
71
|
+
// ship-inventory-order-change.entity.ts, change > 0
|
|
72
|
+
ChangeType["IN_SHIPMENT"] = "IN_SHIPMENT";
|
|
73
|
+
// ship-inventory-order-change.entity.ts, change < 0
|
|
74
|
+
ChangeType["SHIPPED"] = "SHIPPED";
|
|
75
|
+
// transfer-order-change.entity.ts, change > 0
|
|
76
|
+
ChangeType["IN_TRANSFER"] = "IN_TRANSFER";
|
|
77
|
+
// transfer-order-change.entity.ts, change < 0
|
|
78
|
+
ChangeType["TRANSFERRED"] = "TRANSFERRED";
|
|
79
|
+
// vendor-inventory-change.entity.ts, change > 0
|
|
80
|
+
ChangeType["VENDOR_TRANSFERRED"] = "VENDOR_TRANSFERRED";
|
|
81
|
+
// vendor-inventory-change.entity.ts, change < 0
|
|
82
|
+
ChangeType["VENDOR_RETURNED"] = "VENDOR_RETURNED";
|
|
83
|
+
// hold-inventory-order-change.entity.ts, change > 0
|
|
84
|
+
ChangeType["HELD"] = "HELD";
|
|
85
|
+
// hold-inventory-order-change.entity.ts, change < 0
|
|
86
|
+
ChangeType["RELEASED"] = "RELEASED";
|
|
87
|
+
// customer-inventory-change.entity.ts, change > 0
|
|
88
|
+
ChangeType["CUSTOMER_HELD"] = "CUSTOMER_HELD";
|
|
89
|
+
// customer-inventory-change.entity.ts, change < 0
|
|
90
|
+
ChangeType["CUSTOMER_RETURNED"] = "CUSTOMER_RETURNED";
|
|
91
|
+
// split-ivnentory-change.entity.ts
|
|
92
|
+
ChangeType["SPLITTED"] = "SPLITTED";
|
|
93
|
+
// merge-inventory-change.entity.ts
|
|
94
|
+
ChangeType["MERGED"] = "MERGED";
|
|
95
|
+
// allocate-inventory-change.entity.ts, change > 0
|
|
96
|
+
ChangeType["ALLOCATED"] = "ALLOCATED";
|
|
97
|
+
// allocate-inventory-change.entity.ts, change < 0
|
|
98
|
+
ChangeType["DEALLOCATED"] = "DEALLOCATED";
|
|
99
|
+
// reclassify-inventory-order-change.entity.ts
|
|
100
|
+
ChangeType["RECLASSIFIED"] = "RECLASSIFIED";
|
|
101
|
+
// scrape-order-change.entity.ts
|
|
102
|
+
ChangeType["SCRAPED"] = "SCRAPED";
|
|
103
|
+
})(exports.ChangeType || (exports.ChangeType = {}));
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Resolve the `ChangeType` for a change table. Tables whose semantics depend on
|
|
107
|
+
* the sign of `quantityChanged` (ship / transfer / vendor / customer / hold /
|
|
108
|
+
* allocate) branch on it; the rest are fixed.
|
|
109
|
+
*/
|
|
110
|
+
const TABLE_TO_CHANGE_TYPE = new Map([
|
|
111
|
+
['receive_inventory_order_changes', () => exports.ChangeType.RECEIVED],
|
|
112
|
+
[
|
|
113
|
+
'ship_inventory_order_changes',
|
|
114
|
+
(q) => (q > 0 ? exports.ChangeType.IN_SHIPMENT : exports.ChangeType.SHIPPED),
|
|
115
|
+
],
|
|
116
|
+
[
|
|
117
|
+
'transfer_order_changes',
|
|
118
|
+
(q) => (q > 0 ? exports.ChangeType.IN_TRANSFER : exports.ChangeType.TRANSFERRED),
|
|
119
|
+
],
|
|
120
|
+
[
|
|
121
|
+
'transfer_vendor_order_changes',
|
|
122
|
+
(q) => q > 0 ? exports.ChangeType.VENDOR_TRANSFERRED : exports.ChangeType.VENDOR_RETURNED,
|
|
123
|
+
],
|
|
124
|
+
[
|
|
125
|
+
'transfer_customer_order_changes',
|
|
126
|
+
(q) => q > 0 ? exports.ChangeType.CUSTOMER_HELD : exports.ChangeType.CUSTOMER_RETURNED,
|
|
127
|
+
],
|
|
128
|
+
[
|
|
129
|
+
'hold_inventory_order_changes',
|
|
130
|
+
(q) => (q > 0 ? exports.ChangeType.HELD : exports.ChangeType.RELEASED),
|
|
131
|
+
],
|
|
132
|
+
[
|
|
133
|
+
'allocate_inventory_order_changes',
|
|
134
|
+
(q) => (q > 0 ? exports.ChangeType.ALLOCATED : exports.ChangeType.DEALLOCATED),
|
|
135
|
+
],
|
|
136
|
+
['split_batch_order_changes', () => exports.ChangeType.SPLITTED],
|
|
137
|
+
['merge_batch_order_changes', () => exports.ChangeType.MERGED],
|
|
138
|
+
['reclassify_inventory_order_changes', () => exports.ChangeType.RECLASSIFIED],
|
|
139
|
+
['scrape_order_changes', () => exports.ChangeType.SCRAPED],
|
|
140
|
+
]);
|
|
141
|
+
const CHANGE_TYPE_TO_EVENT = {
|
|
142
|
+
[exports.ChangeType.RECEIVED]: 'stock.received',
|
|
143
|
+
[exports.ChangeType.IN_SHIPMENT]: 'stock.in-shipment',
|
|
144
|
+
[exports.ChangeType.SHIPPED]: 'stock.shipped',
|
|
145
|
+
[exports.ChangeType.IN_TRANSFER]: 'stock.in-transfer',
|
|
146
|
+
[exports.ChangeType.TRANSFERRED]: 'stock.transferred',
|
|
147
|
+
[exports.ChangeType.VENDOR_TRANSFERRED]: 'stock.vendor-transferred',
|
|
148
|
+
[exports.ChangeType.VENDOR_RETURNED]: 'stock.vendor-returned',
|
|
149
|
+
[exports.ChangeType.HELD]: 'stock.held',
|
|
150
|
+
[exports.ChangeType.RELEASED]: 'stock.released',
|
|
151
|
+
[exports.ChangeType.CUSTOMER_HELD]: 'stock.customer-held',
|
|
152
|
+
[exports.ChangeType.CUSTOMER_RETURNED]: 'stock.customer-returned',
|
|
153
|
+
[exports.ChangeType.SPLITTED]: 'stock.splitted',
|
|
154
|
+
[exports.ChangeType.MERGED]: 'stock.merged',
|
|
155
|
+
[exports.ChangeType.ALLOCATED]: 'stock.allocated',
|
|
156
|
+
[exports.ChangeType.DEALLOCATED]: 'stock.deallocated',
|
|
157
|
+
[exports.ChangeType.RECLASSIFIED]: 'stock.reclassified',
|
|
158
|
+
[exports.ChangeType.SCRAPED]: 'stock.scraped',
|
|
159
|
+
};
|
|
160
|
+
const QUALITY_INSPECTION_TABLE = 'quality_inspection_order_changes';
|
|
161
|
+
/**
|
|
162
|
+
* Centralized collection of stock domain events. Listens to every
|
|
163
|
+
* `*_order_change` insert and, using the change table name plus the sign of
|
|
164
|
+
* `quantityChanged`, derives the `ChangeType` and buffers a `stock.*` event
|
|
165
|
+
* into the active dispatch scope (flushed post-commit by the graphql
|
|
166
|
+
* interceptor). This keeps the 12 domain services untouched and automatically
|
|
167
|
+
* covers any future code path that writes a change row.
|
|
168
|
+
*
|
|
169
|
+
* It self-registers on the data source so no global TypeORM `subscribers`
|
|
170
|
+
* config is required.
|
|
171
|
+
*/
|
|
172
|
+
let StockChangeSubscriber = class StockChangeSubscriber {
|
|
173
|
+
collector;
|
|
174
|
+
constructor(dataSource, collector) {
|
|
175
|
+
this.collector = collector;
|
|
176
|
+
dataSource.subscribers.push(this);
|
|
177
|
+
}
|
|
178
|
+
afterInsert(event) {
|
|
179
|
+
const tableName = event.metadata.tableName;
|
|
180
|
+
const entity = event.entity;
|
|
181
|
+
if (!entity || typeof entity.id !== 'string') {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
const quantityDelta = Number(entity.quantityChanged);
|
|
185
|
+
if (tableName === QUALITY_INSPECTION_TABLE) {
|
|
186
|
+
this.collector.collect('stock.inspection-resolved', {
|
|
187
|
+
orderId: entity.id,
|
|
188
|
+
itemId: entity.itemId,
|
|
189
|
+
quantityDelta,
|
|
190
|
+
changeType: null,
|
|
191
|
+
inspectionResult: entity.result ?? null,
|
|
192
|
+
});
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
const resolveChangeType = TABLE_TO_CHANGE_TYPE.get(tableName);
|
|
196
|
+
if (!resolveChangeType) {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
const changeType = resolveChangeType(quantityDelta);
|
|
200
|
+
this.collector.collect(CHANGE_TYPE_TO_EVENT[changeType], {
|
|
201
|
+
orderId: entity.id,
|
|
202
|
+
itemId: entity.itemId,
|
|
203
|
+
quantityDelta,
|
|
204
|
+
changeType,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
StockChangeSubscriber = tslib.__decorate([
|
|
209
|
+
common.Injectable(),
|
|
210
|
+
tslib.__param(0, typeorm.InjectDataSource()),
|
|
211
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource,
|
|
212
|
+
exports.WmsEventCollector])
|
|
213
|
+
], StockChangeSubscriber);
|
|
214
|
+
|
|
11
215
|
const BatchEntity = Symbol('BatchEntity');
|
|
12
216
|
exports.BatchEntityClass = class BatchEntityClass extends wmsBaseNestjsModule.BatchEntity {
|
|
13
217
|
groupId;
|
|
@@ -29,51 +233,51 @@ exports.BatchEntityClass = class BatchEntityClass extends wmsBaseNestjsModule.Ba
|
|
|
29
233
|
batchGroup;
|
|
30
234
|
};
|
|
31
235
|
tslib.__decorate([
|
|
32
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
236
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
33
237
|
tslib.__metadata("design:type", String)
|
|
34
238
|
], exports.BatchEntityClass.prototype, "groupId", void 0);
|
|
35
239
|
tslib.__decorate([
|
|
36
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
240
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
37
241
|
tslib.__metadata("design:type", Object)
|
|
38
242
|
], exports.BatchEntityClass.prototype, "saleId", void 0);
|
|
39
243
|
tslib.__decorate([
|
|
40
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
244
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
41
245
|
tslib.__metadata("design:type", Object)
|
|
42
246
|
], exports.BatchEntityClass.prototype, "saleSerialId", void 0);
|
|
43
247
|
tslib.__decorate([
|
|
44
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
248
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
45
249
|
tslib.__metadata("design:type", Object)
|
|
46
250
|
], exports.BatchEntityClass.prototype, "customerId", void 0);
|
|
47
251
|
tslib.__decorate([
|
|
48
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
252
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
49
253
|
tslib.__metadata("design:type", Object)
|
|
50
254
|
], exports.BatchEntityClass.prototype, "vendorId", void 0);
|
|
51
255
|
tslib.__decorate([
|
|
52
|
-
typeorm.Column({ type: 'bool', nullable: true }),
|
|
256
|
+
typeorm$1.Column({ type: 'bool', nullable: true }),
|
|
53
257
|
tslib.__metadata("design:type", Object)
|
|
54
258
|
], exports.BatchEntityClass.prototype, "inspectionResult", void 0);
|
|
55
259
|
tslib.__decorate([
|
|
56
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
260
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
57
261
|
tslib.__metadata("design:type", Object)
|
|
58
262
|
], exports.BatchEntityClass.prototype, "transferId", void 0);
|
|
59
263
|
tslib.__decorate([
|
|
60
|
-
typeorm.Column({ type: 'bool', default: false }),
|
|
264
|
+
typeorm$1.Column({ type: 'bool', default: false }),
|
|
61
265
|
tslib.__metadata("design:type", Boolean)
|
|
62
266
|
], exports.BatchEntityClass.prototype, "held", void 0);
|
|
63
267
|
tslib.__decorate([
|
|
64
|
-
typeorm.Column({ type: 'bool', default: false }),
|
|
268
|
+
typeorm$1.Column({ type: 'bool', default: false }),
|
|
65
269
|
tslib.__metadata("design:type", Boolean)
|
|
66
270
|
], exports.BatchEntityClass.prototype, "inShipment", void 0);
|
|
67
271
|
tslib.__decorate([
|
|
68
|
-
typeorm.ManyToOne('batch_groups', (batchGroup) => batchGroup.batches, {
|
|
272
|
+
typeorm$1.ManyToOne('batch_groups', (batchGroup) => batchGroup.batches, {
|
|
69
273
|
onDelete: 'CASCADE',
|
|
70
274
|
orphanedRowAction: 'delete',
|
|
71
275
|
}),
|
|
72
|
-
typeorm.JoinColumn({ name: 'groupId', referencedColumnName: 'id' }),
|
|
276
|
+
typeorm$1.JoinColumn({ name: 'groupId', referencedColumnName: 'id' }),
|
|
73
277
|
tslib.__metadata("design:type", Function)
|
|
74
278
|
], exports.BatchEntityClass.prototype, "batchGroup", void 0);
|
|
75
279
|
exports.BatchEntityClass = tslib.__decorate([
|
|
76
|
-
typeorm.ChildEntity()
|
|
280
|
+
typeorm$1.ChildEntity()
|
|
77
281
|
], exports.BatchEntityClass);
|
|
78
282
|
|
|
79
283
|
const BatchGroupEntity = Symbol('BatchGroupEntity');
|
|
@@ -84,23 +288,23 @@ exports.BatchGroupEntityClass = class BatchGroupEntityClass {
|
|
|
84
288
|
batches;
|
|
85
289
|
};
|
|
86
290
|
tslib.__decorate([
|
|
87
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
291
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
88
292
|
tslib.__metadata("design:type", String)
|
|
89
293
|
], exports.BatchGroupEntityClass.prototype, "id", void 0);
|
|
90
294
|
tslib.__decorate([
|
|
91
|
-
typeorm.Column({ type: 'varchar' }),
|
|
295
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
92
296
|
tslib.__metadata("design:type", String)
|
|
93
297
|
], exports.BatchGroupEntityClass.prototype, "key", void 0);
|
|
94
298
|
tslib.__decorate([
|
|
95
|
-
typeorm.Column({ type: 'varchar' }),
|
|
299
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
96
300
|
tslib.__metadata("design:type", String)
|
|
97
301
|
], exports.BatchGroupEntityClass.prototype, "materialId", void 0);
|
|
98
302
|
tslib.__decorate([
|
|
99
|
-
typeorm.OneToMany('batches', (batch) => batch.batchGroup),
|
|
303
|
+
typeorm$1.OneToMany('batches', (batch) => batch.batchGroup),
|
|
100
304
|
tslib.__metadata("design:type", Array)
|
|
101
305
|
], exports.BatchGroupEntityClass.prototype, "batches", void 0);
|
|
102
306
|
exports.BatchGroupEntityClass = tslib.__decorate([
|
|
103
|
-
typeorm.Entity('batch_groups')
|
|
307
|
+
typeorm$1.Entity('batch_groups')
|
|
104
308
|
], exports.BatchGroupEntityClass);
|
|
105
309
|
|
|
106
310
|
const LoaderTypeEntity = Symbol('LoaderTypeEntity');
|
|
@@ -113,33 +317,33 @@ exports.LoaderTypeEntityClass = class LoaderTypeEntityClass {
|
|
|
113
317
|
updatedAt;
|
|
114
318
|
};
|
|
115
319
|
tslib.__decorate([
|
|
116
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
320
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
117
321
|
tslib.__metadata("design:type", String)
|
|
118
322
|
], exports.LoaderTypeEntityClass.prototype, "id", void 0);
|
|
119
323
|
tslib.__decorate([
|
|
120
|
-
typeorm.Column({ type: 'varchar' }),
|
|
324
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
121
325
|
tslib.__metadata("design:type", String)
|
|
122
326
|
], exports.LoaderTypeEntityClass.prototype, "description", void 0);
|
|
123
327
|
tslib.__decorate([
|
|
124
|
-
typeorm.Column({ type: 'bool', default: true }),
|
|
328
|
+
typeorm$1.Column({ type: 'bool', default: true }),
|
|
125
329
|
tslib.__metadata("design:type", Boolean)
|
|
126
330
|
], exports.LoaderTypeEntityClass.prototype, "isActive", void 0);
|
|
127
331
|
tslib.__decorate([
|
|
128
|
-
typeorm.Column({ type: 'varchar', unique: true }),
|
|
129
|
-
typeorm.Index(),
|
|
332
|
+
typeorm$1.Column({ type: 'varchar', unique: true }),
|
|
333
|
+
typeorm$1.Index(),
|
|
130
334
|
tslib.__metadata("design:type", String)
|
|
131
335
|
], exports.LoaderTypeEntityClass.prototype, "key", void 0);
|
|
132
336
|
tslib.__decorate([
|
|
133
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
337
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
134
338
|
tslib.__metadata("design:type", Date)
|
|
135
339
|
], exports.LoaderTypeEntityClass.prototype, "createdAt", void 0);
|
|
136
340
|
tslib.__decorate([
|
|
137
|
-
typeorm.UpdateDateColumn({ type: 'timestamptz' }),
|
|
341
|
+
typeorm$1.UpdateDateColumn({ type: 'timestamptz' }),
|
|
138
342
|
tslib.__metadata("design:type", Date)
|
|
139
343
|
], exports.LoaderTypeEntityClass.prototype, "updatedAt", void 0);
|
|
140
344
|
exports.LoaderTypeEntityClass = tslib.__decorate([
|
|
141
|
-
typeorm.Entity('loader_types'),
|
|
142
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
345
|
+
typeorm$1.Entity('loader_types'),
|
|
346
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
143
347
|
], exports.LoaderTypeEntityClass);
|
|
144
348
|
|
|
145
349
|
const LoadersEntity = Symbol('LoadersEntity');
|
|
@@ -162,76 +366,76 @@ exports.LoadersEntityClass = class LoadersEntityClass {
|
|
|
162
366
|
location;
|
|
163
367
|
};
|
|
164
368
|
tslib.__decorate([
|
|
165
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
369
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
166
370
|
tslib.__metadata("design:type", String)
|
|
167
371
|
], exports.LoadersEntityClass.prototype, "id", void 0);
|
|
168
372
|
tslib.__decorate([
|
|
169
|
-
typeorm.Column({ type: 'uuid' }),
|
|
170
|
-
typeorm.Index(),
|
|
373
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
374
|
+
typeorm$1.Index(),
|
|
171
375
|
tslib.__metadata("design:type", String)
|
|
172
376
|
], exports.LoadersEntityClass.prototype, "typeId", void 0);
|
|
173
377
|
tslib.__decorate([
|
|
174
|
-
typeorm.Column({ type: 'varchar' }),
|
|
378
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
175
379
|
tslib.__metadata("design:type", String)
|
|
176
380
|
], exports.LoadersEntityClass.prototype, "serialId", void 0);
|
|
177
381
|
tslib.__decorate([
|
|
178
|
-
typeorm.Column({ type: 'varchar' }),
|
|
179
|
-
typeorm.Index(),
|
|
382
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
383
|
+
typeorm$1.Index(),
|
|
180
384
|
tslib.__metadata("design:type", String)
|
|
181
385
|
], exports.LoadersEntityClass.prototype, "locationId", void 0);
|
|
182
386
|
tslib.__decorate([
|
|
183
|
-
typeorm.Column({ type: 'numeric', nullable: true }),
|
|
387
|
+
typeorm$1.Column({ type: 'numeric', nullable: true }),
|
|
184
388
|
tslib.__metadata("design:type", Object)
|
|
185
389
|
], exports.LoadersEntityClass.prototype, "length", void 0);
|
|
186
390
|
tslib.__decorate([
|
|
187
|
-
typeorm.Column({ type: 'numeric', nullable: true }),
|
|
391
|
+
typeorm$1.Column({ type: 'numeric', nullable: true }),
|
|
188
392
|
tslib.__metadata("design:type", Object)
|
|
189
393
|
], exports.LoadersEntityClass.prototype, "width", void 0);
|
|
190
394
|
tslib.__decorate([
|
|
191
|
-
typeorm.Column({ type: 'numeric', nullable: true }),
|
|
395
|
+
typeorm$1.Column({ type: 'numeric', nullable: true }),
|
|
192
396
|
tslib.__metadata("design:type", Object)
|
|
193
397
|
], exports.LoadersEntityClass.prototype, "height", void 0);
|
|
194
398
|
tslib.__decorate([
|
|
195
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
399
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
196
400
|
tslib.__metadata("design:type", Object)
|
|
197
401
|
], exports.LoadersEntityClass.prototype, "sizeUnit", void 0);
|
|
198
402
|
tslib.__decorate([
|
|
199
|
-
typeorm.Column({ type: 'numeric', nullable: true }),
|
|
403
|
+
typeorm$1.Column({ type: 'numeric', nullable: true }),
|
|
200
404
|
tslib.__metadata("design:type", Object)
|
|
201
405
|
], exports.LoadersEntityClass.prototype, "volume", void 0);
|
|
202
406
|
tslib.__decorate([
|
|
203
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
407
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
204
408
|
tslib.__metadata("design:type", Object)
|
|
205
409
|
], exports.LoadersEntityClass.prototype, "volumeUnit", void 0);
|
|
206
410
|
tslib.__decorate([
|
|
207
|
-
typeorm.Column({ type: 'text', nullable: true }),
|
|
411
|
+
typeorm$1.Column({ type: 'text', nullable: true }),
|
|
208
412
|
tslib.__metadata("design:type", Object)
|
|
209
413
|
], exports.LoadersEntityClass.prototype, "note", void 0);
|
|
210
414
|
tslib.__decorate([
|
|
211
|
-
typeorm.Column({ type: 'boolean', default: true }),
|
|
415
|
+
typeorm$1.Column({ type: 'boolean', default: true }),
|
|
212
416
|
tslib.__metadata("design:type", Boolean)
|
|
213
417
|
], exports.LoadersEntityClass.prototype, "isActive", void 0);
|
|
214
418
|
tslib.__decorate([
|
|
215
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
419
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
216
420
|
tslib.__metadata("design:type", Date)
|
|
217
421
|
], exports.LoadersEntityClass.prototype, "createdAt", void 0);
|
|
218
422
|
tslib.__decorate([
|
|
219
|
-
typeorm.UpdateDateColumn({ type: 'timestamptz' }),
|
|
423
|
+
typeorm$1.UpdateDateColumn({ type: 'timestamptz' }),
|
|
220
424
|
tslib.__metadata("design:type", Date)
|
|
221
425
|
], exports.LoadersEntityClass.prototype, "updatedAt", void 0);
|
|
222
426
|
tslib.__decorate([
|
|
223
|
-
typeorm.ManyToOne('loader_types'),
|
|
224
|
-
typeorm.JoinColumn({ name: 'typeId', referencedColumnName: 'id' }),
|
|
427
|
+
typeorm$1.ManyToOne('loader_types'),
|
|
428
|
+
typeorm$1.JoinColumn({ name: 'typeId', referencedColumnName: 'id' }),
|
|
225
429
|
tslib.__metadata("design:type", exports.LoaderTypeEntityClass)
|
|
226
430
|
], exports.LoadersEntityClass.prototype, "type", void 0);
|
|
227
431
|
tslib.__decorate([
|
|
228
|
-
typeorm.ManyToOne('locations'),
|
|
229
|
-
typeorm.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
432
|
+
typeorm$1.ManyToOne('locations'),
|
|
433
|
+
typeorm$1.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
230
434
|
tslib.__metadata("design:type", wmsBaseNestjsModule.LocationEntity)
|
|
231
435
|
], exports.LoadersEntityClass.prototype, "location", void 0);
|
|
232
436
|
exports.LoadersEntityClass = tslib.__decorate([
|
|
233
|
-
typeorm.Entity('loaders'),
|
|
234
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
437
|
+
typeorm$1.Entity('loaders'),
|
|
438
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
235
439
|
], exports.LoadersEntityClass);
|
|
236
440
|
|
|
237
441
|
const LoaderUnitEntity = Symbol('LoaderUnitEntity');
|
|
@@ -240,15 +444,15 @@ exports.LoaderUnitEntityClass = class LoaderUnitEntityClass {
|
|
|
240
444
|
type;
|
|
241
445
|
};
|
|
242
446
|
tslib.__decorate([
|
|
243
|
-
typeorm.PrimaryColumn('varchar'),
|
|
447
|
+
typeorm$1.PrimaryColumn('varchar'),
|
|
244
448
|
tslib.__metadata("design:type", String)
|
|
245
449
|
], exports.LoaderUnitEntityClass.prototype, "id", void 0);
|
|
246
450
|
tslib.__decorate([
|
|
247
|
-
typeorm.PrimaryColumn('varchar'),
|
|
451
|
+
typeorm$1.PrimaryColumn('varchar'),
|
|
248
452
|
tslib.__metadata("design:type", String)
|
|
249
453
|
], exports.LoaderUnitEntityClass.prototype, "type", void 0);
|
|
250
454
|
exports.LoaderUnitEntityClass = tslib.__decorate([
|
|
251
|
-
typeorm.Entity('loader_units')
|
|
455
|
+
typeorm$1.Entity('loader_units')
|
|
252
456
|
], exports.LoaderUnitEntityClass);
|
|
253
457
|
|
|
254
458
|
const LocationEntity = Symbol('LocationEntity');
|
|
@@ -259,19 +463,19 @@ exports.LocationEntityClass = class LocationEntityClass extends wmsBaseNestjsMod
|
|
|
259
463
|
parentId;
|
|
260
464
|
};
|
|
261
465
|
tslib.__decorate([
|
|
262
|
-
typeorm.Column({ type: 'text' }),
|
|
466
|
+
typeorm$1.Column({ type: 'text' }),
|
|
263
467
|
tslib.__metadata("design:type", String)
|
|
264
468
|
], exports.LocationEntityClass.prototype, "description", void 0);
|
|
265
469
|
tslib.__decorate([
|
|
266
|
-
typeorm.Column({ type: 'bool', default: true }),
|
|
470
|
+
typeorm$1.Column({ type: 'bool', default: true }),
|
|
267
471
|
tslib.__metadata("design:type", Boolean)
|
|
268
472
|
], exports.LocationEntityClass.prototype, "isActive", void 0);
|
|
269
473
|
tslib.__decorate([
|
|
270
|
-
typeorm.RelationId((location) => location.parent),
|
|
474
|
+
typeorm$1.RelationId((location) => location.parent),
|
|
271
475
|
tslib.__metadata("design:type", Object)
|
|
272
476
|
], exports.LocationEntityClass.prototype, "parentId", void 0);
|
|
273
477
|
exports.LocationEntityClass = tslib.__decorate([
|
|
274
|
-
typeorm.ChildEntity()
|
|
478
|
+
typeorm$1.ChildEntity()
|
|
275
479
|
], exports.LocationEntityClass);
|
|
276
480
|
|
|
277
481
|
const MaterialEntity = Symbol('MaterialEntity');
|
|
@@ -281,20 +485,20 @@ exports.MaterialEntityClass = class MaterialEntityClass extends wmsBaseNestjsMod
|
|
|
281
485
|
isActive;
|
|
282
486
|
};
|
|
283
487
|
tslib.__decorate([
|
|
284
|
-
typeorm.Column({ type: 'text' }),
|
|
285
|
-
typeorm.Index(),
|
|
488
|
+
typeorm$1.Column({ type: 'text' }),
|
|
489
|
+
typeorm$1.Index(),
|
|
286
490
|
tslib.__metadata("design:type", String)
|
|
287
491
|
], exports.MaterialEntityClass.prototype, "description", void 0);
|
|
288
492
|
tslib.__decorate([
|
|
289
|
-
typeorm.Column({ type: 'varchar' }),
|
|
493
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
290
494
|
tslib.__metadata("design:type", String)
|
|
291
495
|
], exports.MaterialEntityClass.prototype, "baseUnit", void 0);
|
|
292
496
|
tslib.__decorate([
|
|
293
|
-
typeorm.Column({ type: 'boolean', default: true }),
|
|
497
|
+
typeorm$1.Column({ type: 'boolean', default: true }),
|
|
294
498
|
tslib.__metadata("design:type", Boolean)
|
|
295
499
|
], exports.MaterialEntityClass.prototype, "isActive", void 0);
|
|
296
500
|
exports.MaterialEntityClass = tslib.__decorate([
|
|
297
|
-
typeorm.ChildEntity()
|
|
501
|
+
typeorm$1.ChildEntity()
|
|
298
502
|
], exports.MaterialEntityClass);
|
|
299
503
|
|
|
300
504
|
const MaterialUnitEntity = Symbol('MaterialUnitEntity');
|
|
@@ -308,39 +512,39 @@ exports.MaterialUnitEntityClass = class MaterialUnitEntityClass {
|
|
|
308
512
|
material;
|
|
309
513
|
};
|
|
310
514
|
tslib.__decorate([
|
|
311
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
515
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
312
516
|
tslib.__metadata("design:type", String)
|
|
313
517
|
], exports.MaterialUnitEntityClass.prototype, "id", void 0);
|
|
314
518
|
tslib.__decorate([
|
|
315
|
-
typeorm.Column({ type: 'varchar' }),
|
|
316
|
-
typeorm.Index(),
|
|
519
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
520
|
+
typeorm$1.Index(),
|
|
317
521
|
tslib.__metadata("design:type", String)
|
|
318
522
|
], exports.MaterialUnitEntityClass.prototype, "materialId", void 0);
|
|
319
523
|
tslib.__decorate([
|
|
320
|
-
typeorm.Column({ type: 'varchar' }),
|
|
524
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
321
525
|
tslib.__metadata("design:type", String)
|
|
322
526
|
], exports.MaterialUnitEntityClass.prototype, "unit", void 0);
|
|
323
527
|
tslib.__decorate([
|
|
324
|
-
typeorm.Column({ type: 'numeric' }),
|
|
528
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
325
529
|
tslib.__metadata("design:type", Number)
|
|
326
530
|
], exports.MaterialUnitEntityClass.prototype, "conversionFactor", void 0);
|
|
327
531
|
tslib.__decorate([
|
|
328
|
-
typeorm.Column({ type: 'boolean', default: true }),
|
|
532
|
+
typeorm$1.Column({ type: 'boolean', default: true }),
|
|
329
533
|
tslib.__metadata("design:type", Boolean)
|
|
330
534
|
], exports.MaterialUnitEntityClass.prototype, "isActive", void 0);
|
|
331
535
|
tslib.__decorate([
|
|
332
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
536
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
333
537
|
tslib.__metadata("design:type", Date)
|
|
334
538
|
], exports.MaterialUnitEntityClass.prototype, "createdAt", void 0);
|
|
335
539
|
tslib.__decorate([
|
|
336
|
-
typeorm.ManyToOne('materials'),
|
|
337
|
-
typeorm.JoinColumn({ name: 'materialId', referencedColumnName: 'id' }),
|
|
540
|
+
typeorm$1.ManyToOne('materials'),
|
|
541
|
+
typeorm$1.JoinColumn({ name: 'materialId', referencedColumnName: 'id' }),
|
|
338
542
|
tslib.__metadata("design:type", exports.MaterialEntityClass)
|
|
339
543
|
], exports.MaterialUnitEntityClass.prototype, "material", void 0);
|
|
340
544
|
exports.MaterialUnitEntityClass = tslib.__decorate([
|
|
341
|
-
typeorm.Entity('material_units'),
|
|
342
|
-
typeorm.Unique(['materialId', 'unit']),
|
|
343
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
545
|
+
typeorm$1.Entity('material_units'),
|
|
546
|
+
typeorm$1.Unique(['materialId', 'unit']),
|
|
547
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
344
548
|
], exports.MaterialUnitEntityClass);
|
|
345
549
|
|
|
346
550
|
const SaleOrderEntity = Symbol('SaleOrderEntity');
|
|
@@ -349,67 +553,17 @@ exports.SaleOrderEntityClass = class SaleOrderEntityClass {
|
|
|
349
553
|
serialId;
|
|
350
554
|
};
|
|
351
555
|
tslib.__decorate([
|
|
352
|
-
typeorm.PrimaryColumn('varchar'),
|
|
556
|
+
typeorm$1.PrimaryColumn('varchar'),
|
|
353
557
|
tslib.__metadata("design:type", String)
|
|
354
558
|
], exports.SaleOrderEntityClass.prototype, "id", void 0);
|
|
355
559
|
tslib.__decorate([
|
|
356
|
-
typeorm.PrimaryColumn('varchar'),
|
|
560
|
+
typeorm$1.PrimaryColumn('varchar'),
|
|
357
561
|
tslib.__metadata("design:type", String)
|
|
358
562
|
], exports.SaleOrderEntityClass.prototype, "serialId", void 0);
|
|
359
563
|
exports.SaleOrderEntityClass = tslib.__decorate([
|
|
360
|
-
typeorm.Entity('sale_orders')
|
|
564
|
+
typeorm$1.Entity('sale_orders')
|
|
361
565
|
], exports.SaleOrderEntityClass);
|
|
362
566
|
|
|
363
|
-
exports.StockStatus = void 0;
|
|
364
|
-
(function (StockStatus) {
|
|
365
|
-
StockStatus["PENDING_INSPECTION"] = "PENDING_INSPECTION";
|
|
366
|
-
StockStatus["INSPECTION_FAILED"] = "INSPECTION_FAILED";
|
|
367
|
-
StockStatus["HELD"] = "HELD";
|
|
368
|
-
StockStatus["IN_TRANSFER"] = "IN_TRANSFER";
|
|
369
|
-
StockStatus["IN_SHIPMENT"] = "IN_SHIPMENT";
|
|
370
|
-
StockStatus["ALLOCATED"] = "ALLOCATED";
|
|
371
|
-
StockStatus["VENDOR_INVENTORY"] = "VENDOR_INVENTORY";
|
|
372
|
-
StockStatus["CUSTOMER_INVENTORY"] = "CUSTOMER_INVENTORY";
|
|
373
|
-
StockStatus["FREE"] = "FREE";
|
|
374
|
-
})(exports.StockStatus || (exports.StockStatus = {}));
|
|
375
|
-
exports.ChangeType = void 0;
|
|
376
|
-
(function (ChangeType) {
|
|
377
|
-
// receive-inventory-order-change.entity.ts
|
|
378
|
-
ChangeType["RECEIVED"] = "RECEIVED";
|
|
379
|
-
// ship-inventory-order-change.entity.ts, change > 0
|
|
380
|
-
ChangeType["IN_SHIPMENT"] = "IN_SHIPMENT";
|
|
381
|
-
// ship-inventory-order-change.entity.ts, change < 0
|
|
382
|
-
ChangeType["SHIPPED"] = "SHIPPED";
|
|
383
|
-
// transfer-order-change.entity.ts, change > 0
|
|
384
|
-
ChangeType["IN_TRANSFER"] = "IN_TRANSFER";
|
|
385
|
-
// transfer-order-change.entity.ts, change < 0
|
|
386
|
-
ChangeType["TRANSFERRED"] = "TRANSFERRED";
|
|
387
|
-
// vendor-inventory-change.entity.ts, change > 0
|
|
388
|
-
ChangeType["VENDOR_TRANSFERRED"] = "VENDOR_TRANSFERRED";
|
|
389
|
-
// vendor-inventory-change.entity.ts, change < 0
|
|
390
|
-
ChangeType["VENDOR_RETURNED"] = "VENDOR_RETURNED";
|
|
391
|
-
// hold-inventory-order-change.entity.ts, change > 0
|
|
392
|
-
ChangeType["HELD"] = "HELD";
|
|
393
|
-
// hold-inventory-order-change.entity.ts, change < 0
|
|
394
|
-
ChangeType["RELEASED"] = "RELEASED";
|
|
395
|
-
// customer-inventory-change.entity.ts, change > 0
|
|
396
|
-
ChangeType["CUSTOMER_HELD"] = "CUSTOMER_HELD";
|
|
397
|
-
// customer-inventory-change.entity.ts, change < 0
|
|
398
|
-
ChangeType["CUSTOMER_RETURNED"] = "CUSTOMER_RETURNED";
|
|
399
|
-
// split-ivnentory-change.entity.ts
|
|
400
|
-
ChangeType["SPLITTED"] = "SPLITTED";
|
|
401
|
-
// merge-inventory-change.entity.ts
|
|
402
|
-
ChangeType["MERGED"] = "MERGED";
|
|
403
|
-
// allocate-inventory-change.entity.ts, change > 0
|
|
404
|
-
ChangeType["ALLOCATED"] = "ALLOCATED";
|
|
405
|
-
// allocate-inventory-change.entity.ts, change < 0
|
|
406
|
-
ChangeType["DEALLOCATED"] = "DEALLOCATED";
|
|
407
|
-
// reclassify-inventory-order-change.entity.ts
|
|
408
|
-
ChangeType["RECLASSIFIED"] = "RECLASSIFIED";
|
|
409
|
-
// scrape-order-change.entity.ts
|
|
410
|
-
ChangeType["SCRAPED"] = "SCRAPED";
|
|
411
|
-
})(exports.ChangeType || (exports.ChangeType = {}));
|
|
412
|
-
|
|
413
567
|
const StockEntity = Symbol('StockEntity');
|
|
414
568
|
exports.StockEntityClass = class StockEntityClass extends wmsBaseNestjsModule.StockEntity {
|
|
415
569
|
loaderId;
|
|
@@ -417,20 +571,20 @@ exports.StockEntityClass = class StockEntityClass extends wmsBaseNestjsModule.St
|
|
|
417
571
|
status;
|
|
418
572
|
};
|
|
419
573
|
tslib.__decorate([
|
|
420
|
-
typeorm.Column({ type: 'varchar' }),
|
|
421
|
-
typeorm.Index(),
|
|
574
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
575
|
+
typeorm$1.Index(),
|
|
422
576
|
tslib.__metadata("design:type", String)
|
|
423
577
|
], exports.StockEntityClass.prototype, "loaderId", void 0);
|
|
424
578
|
tslib.__decorate([
|
|
425
|
-
typeorm.Column({ type: 'timestamptz', nullable: true }),
|
|
579
|
+
typeorm$1.Column({ type: 'timestamptz', nullable: true }),
|
|
426
580
|
tslib.__metadata("design:type", Object)
|
|
427
581
|
], exports.StockEntityClass.prototype, "rollbackedAt", void 0);
|
|
428
582
|
tslib.__decorate([
|
|
429
|
-
typeorm.JoinColumn(),
|
|
583
|
+
typeorm$1.JoinColumn(),
|
|
430
584
|
tslib.__metadata("design:type", String)
|
|
431
585
|
], exports.StockEntityClass.prototype, "status", void 0);
|
|
432
586
|
exports.StockEntityClass = tslib.__decorate([
|
|
433
|
-
typeorm.ChildEntity()
|
|
587
|
+
typeorm$1.ChildEntity()
|
|
434
588
|
], exports.StockEntityClass);
|
|
435
589
|
|
|
436
590
|
const UnitEntity = Symbol('UnitEntity');
|
|
@@ -439,15 +593,15 @@ exports.UnitEntityClass = class UnitEntityClass {
|
|
|
439
593
|
key;
|
|
440
594
|
};
|
|
441
595
|
tslib.__decorate([
|
|
442
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
596
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
443
597
|
tslib.__metadata("design:type", String)
|
|
444
598
|
], exports.UnitEntityClass.prototype, "id", void 0);
|
|
445
599
|
tslib.__decorate([
|
|
446
|
-
typeorm.Column({ type: 'varchar', unique: true }),
|
|
600
|
+
typeorm$1.Column({ type: 'varchar', unique: true }),
|
|
447
601
|
tslib.__metadata("design:type", String)
|
|
448
602
|
], exports.UnitEntityClass.prototype, "key", void 0);
|
|
449
603
|
exports.UnitEntityClass = tslib.__decorate([
|
|
450
|
-
typeorm.Entity('units')
|
|
604
|
+
typeorm$1.Entity('units')
|
|
451
605
|
], exports.UnitEntityClass);
|
|
452
606
|
|
|
453
607
|
const WMS_CORE_MODULE_OPTIONS = Symbol('WMS_CORE_MODULE_OPTIONS');
|
|
@@ -481,42 +635,42 @@ exports.ReceiveInventoryOrderEntityClass = class ReceiveInventoryOrderEntityClas
|
|
|
481
635
|
status;
|
|
482
636
|
};
|
|
483
637
|
tslib.__decorate([
|
|
484
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
638
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
485
639
|
tslib.__metadata("design:type", String)
|
|
486
640
|
], exports.ReceiveInventoryOrderEntityClass.prototype, "id", void 0);
|
|
487
641
|
tslib.__decorate([
|
|
488
|
-
typeorm.Column({ type: 'varchar', unique: true }),
|
|
489
|
-
typeorm.Index(),
|
|
642
|
+
typeorm$1.Column({ type: 'varchar', unique: true }),
|
|
643
|
+
typeorm$1.Index(),
|
|
490
644
|
tslib.__metadata("design:type", String)
|
|
491
645
|
], exports.ReceiveInventoryOrderEntityClass.prototype, "key", void 0);
|
|
492
646
|
tslib.__decorate([
|
|
493
|
-
typeorm.Column({ type: 'text' }),
|
|
647
|
+
typeorm$1.Column({ type: 'text' }),
|
|
494
648
|
tslib.__metadata("design:type", String)
|
|
495
649
|
], exports.ReceiveInventoryOrderEntityClass.prototype, "description", void 0);
|
|
496
650
|
tslib.__decorate([
|
|
497
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
651
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
498
652
|
tslib.__metadata("design:type", Object)
|
|
499
653
|
], exports.ReceiveInventoryOrderEntityClass.prototype, "createdBy", void 0);
|
|
500
654
|
tslib.__decorate([
|
|
501
|
-
typeorm.Column({ type: 'timestamptz', nullable: true }),
|
|
655
|
+
typeorm$1.Column({ type: 'timestamptz', nullable: true }),
|
|
502
656
|
tslib.__metadata("design:type", Object)
|
|
503
657
|
], exports.ReceiveInventoryOrderEntityClass.prototype, "removedAt", void 0);
|
|
504
658
|
tslib.__decorate([
|
|
505
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
659
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
506
660
|
tslib.__metadata("design:type", Date)
|
|
507
661
|
], exports.ReceiveInventoryOrderEntityClass.prototype, "createdAt", void 0);
|
|
508
662
|
tslib.__decorate([
|
|
509
|
-
typeorm.OneToMany('receive_inventory_order_items', (entity) => entity.order),
|
|
510
|
-
typeorm.JoinColumn({ name: 'id', referencedColumnName: 'orderId' }),
|
|
663
|
+
typeorm$1.OneToMany('receive_inventory_order_items', (entity) => entity.order),
|
|
664
|
+
typeorm$1.JoinColumn({ name: 'id', referencedColumnName: 'orderId' }),
|
|
511
665
|
tslib.__metadata("design:type", Array)
|
|
512
666
|
], exports.ReceiveInventoryOrderEntityClass.prototype, "items", void 0);
|
|
513
667
|
tslib.__decorate([
|
|
514
|
-
typeorm.JoinColumn(),
|
|
668
|
+
typeorm$1.JoinColumn(),
|
|
515
669
|
tslib.__metadata("design:type", String)
|
|
516
670
|
], exports.ReceiveInventoryOrderEntityClass.prototype, "status", void 0);
|
|
517
671
|
exports.ReceiveInventoryOrderEntityClass = tslib.__decorate([
|
|
518
|
-
typeorm.Entity('receive_inventory_orders'),
|
|
519
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
672
|
+
typeorm$1.Entity('receive_inventory_orders'),
|
|
673
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
520
674
|
], exports.ReceiveInventoryOrderEntityClass);
|
|
521
675
|
|
|
522
676
|
const ReceiveInventoryOrderChangeEntity = Symbol('ReceiveInventoryOrderChangeEntity');
|
|
@@ -529,33 +683,33 @@ exports.ReceiveInventoryOrderChangeEntityClass = class ReceiveInventoryOrderChan
|
|
|
529
683
|
status;
|
|
530
684
|
};
|
|
531
685
|
tslib.__decorate([
|
|
532
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
686
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
533
687
|
tslib.__metadata("design:type", String)
|
|
534
688
|
], exports.ReceiveInventoryOrderChangeEntityClass.prototype, "id", void 0);
|
|
535
689
|
tslib.__decorate([
|
|
536
|
-
typeorm.Column({ type: 'uuid' }),
|
|
690
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
537
691
|
tslib.__metadata("design:type", String)
|
|
538
692
|
], exports.ReceiveInventoryOrderChangeEntityClass.prototype, "itemId", void 0);
|
|
539
693
|
tslib.__decorate([
|
|
540
|
-
typeorm.Column({ type: 'numeric' }),
|
|
694
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
541
695
|
tslib.__metadata("design:type", Number)
|
|
542
696
|
], exports.ReceiveInventoryOrderChangeEntityClass.prototype, "quantityChanged", void 0);
|
|
543
697
|
tslib.__decorate([
|
|
544
|
-
typeorm.OneToOne('orders'),
|
|
545
|
-
typeorm.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
698
|
+
typeorm$1.OneToOne('orders'),
|
|
699
|
+
typeorm$1.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
546
700
|
tslib.__metadata("design:type", wmsBaseNestjsModule.OrderEntity)
|
|
547
701
|
], exports.ReceiveInventoryOrderChangeEntityClass.prototype, "order", void 0);
|
|
548
702
|
tslib.__decorate([
|
|
549
|
-
typeorm.ManyToOne('receive_inventory_order_items', (item) => item.changes),
|
|
550
|
-
typeorm.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
703
|
+
typeorm$1.ManyToOne('receive_inventory_order_items', (item) => item.changes),
|
|
704
|
+
typeorm$1.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
551
705
|
tslib.__metadata("design:type", Function)
|
|
552
706
|
], exports.ReceiveInventoryOrderChangeEntityClass.prototype, "item", void 0);
|
|
553
707
|
tslib.__decorate([
|
|
554
|
-
typeorm.JoinColumn(),
|
|
708
|
+
typeorm$1.JoinColumn(),
|
|
555
709
|
tslib.__metadata("design:type", String)
|
|
556
710
|
], exports.ReceiveInventoryOrderChangeEntityClass.prototype, "status", void 0);
|
|
557
711
|
exports.ReceiveInventoryOrderChangeEntityClass = tslib.__decorate([
|
|
558
|
-
typeorm.Entity('receive_inventory_order_changes')
|
|
712
|
+
typeorm$1.Entity('receive_inventory_order_changes')
|
|
559
713
|
], exports.ReceiveInventoryOrderChangeEntityClass);
|
|
560
714
|
|
|
561
715
|
const ReceiveInventoryOrderItemEntity = Symbol('ReceiveInventoryOrderItemEntity');
|
|
@@ -576,69 +730,69 @@ exports.ReceiveInventoryOrderItemEntityClass = class ReceiveInventoryOrderItemEn
|
|
|
576
730
|
changes;
|
|
577
731
|
};
|
|
578
732
|
tslib.__decorate([
|
|
579
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
733
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
580
734
|
tslib.__metadata("design:type", String)
|
|
581
735
|
], exports.ReceiveInventoryOrderItemEntityClass.prototype, "id", void 0);
|
|
582
736
|
tslib.__decorate([
|
|
583
|
-
typeorm.Column({ type: 'varchar' }),
|
|
737
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
584
738
|
tslib.__metadata("design:type", String)
|
|
585
739
|
], exports.ReceiveInventoryOrderItemEntityClass.prototype, "serialId", void 0);
|
|
586
740
|
tslib.__decorate([
|
|
587
|
-
typeorm.Column({ type: 'text', nullable: true }),
|
|
741
|
+
typeorm$1.Column({ type: 'text', nullable: true }),
|
|
588
742
|
tslib.__metadata("design:type", Object)
|
|
589
743
|
], exports.ReceiveInventoryOrderItemEntityClass.prototype, "description", void 0);
|
|
590
744
|
tslib.__decorate([
|
|
591
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
745
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
592
746
|
tslib.__metadata("design:type", Object)
|
|
593
747
|
], exports.ReceiveInventoryOrderItemEntityClass.prototype, "unitId", void 0);
|
|
594
748
|
tslib.__decorate([
|
|
595
|
-
typeorm.Column({ type: 'bool', default: true }),
|
|
749
|
+
typeorm$1.Column({ type: 'bool', default: true }),
|
|
596
750
|
tslib.__metadata("design:type", Boolean)
|
|
597
751
|
], exports.ReceiveInventoryOrderItemEntityClass.prototype, "requireInspection", void 0);
|
|
598
752
|
tslib.__decorate([
|
|
599
|
-
typeorm.Column({ type: 'numeric' }),
|
|
753
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
600
754
|
tslib.__metadata("design:type", Number)
|
|
601
755
|
], exports.ReceiveInventoryOrderItemEntityClass.prototype, "targetReceivedQuantity", void 0);
|
|
602
756
|
tslib.__decorate([
|
|
603
|
-
typeorm.Column({ type: 'uuid' }),
|
|
604
|
-
typeorm.Index(),
|
|
757
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
758
|
+
typeorm$1.Index(),
|
|
605
759
|
tslib.__metadata("design:type", String)
|
|
606
760
|
], exports.ReceiveInventoryOrderItemEntityClass.prototype, "orderId", void 0);
|
|
607
761
|
tslib.__decorate([
|
|
608
|
-
typeorm.Column({ type: 'uuid' }),
|
|
609
|
-
typeorm.Index(),
|
|
762
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
763
|
+
typeorm$1.Index(),
|
|
610
764
|
tslib.__metadata("design:type", String)
|
|
611
765
|
], exports.ReceiveInventoryOrderItemEntityClass.prototype, "materialId", void 0);
|
|
612
766
|
tslib.__decorate([
|
|
613
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
614
|
-
typeorm.Index(),
|
|
767
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
768
|
+
typeorm$1.Index(),
|
|
615
769
|
tslib.__metadata("design:type", Object)
|
|
616
770
|
], exports.ReceiveInventoryOrderItemEntityClass.prototype, "batchId", void 0);
|
|
617
771
|
tslib.__decorate([
|
|
618
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
619
|
-
typeorm.Index(),
|
|
772
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
773
|
+
typeorm$1.Index(),
|
|
620
774
|
tslib.__metadata("design:type", Object)
|
|
621
775
|
], exports.ReceiveInventoryOrderItemEntityClass.prototype, "locationId", void 0);
|
|
622
776
|
tslib.__decorate([
|
|
623
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
624
|
-
typeorm.Index(),
|
|
777
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
778
|
+
typeorm$1.Index(),
|
|
625
779
|
tslib.__metadata("design:type", Object)
|
|
626
780
|
], exports.ReceiveInventoryOrderItemEntityClass.prototype, "loaderId", void 0);
|
|
627
781
|
tslib.__decorate([
|
|
628
|
-
typeorm.Column({ type: 'timestamptz', nullable: true }),
|
|
782
|
+
typeorm$1.Column({ type: 'timestamptz', nullable: true }),
|
|
629
783
|
tslib.__metadata("design:type", Object)
|
|
630
784
|
], exports.ReceiveInventoryOrderItemEntityClass.prototype, "removedAt", void 0);
|
|
631
785
|
tslib.__decorate([
|
|
632
|
-
typeorm.ManyToOne('receive_inventory_orders', (entity) => entity.items),
|
|
633
|
-
typeorm.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
786
|
+
typeorm$1.ManyToOne('receive_inventory_orders', (entity) => entity.items),
|
|
787
|
+
typeorm$1.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
634
788
|
tslib.__metadata("design:type", exports.ReceiveInventoryOrderEntityClass)
|
|
635
789
|
], exports.ReceiveInventoryOrderItemEntityClass.prototype, "order", void 0);
|
|
636
790
|
tslib.__decorate([
|
|
637
|
-
typeorm.OneToMany(() => exports.ReceiveInventoryOrderChangeEntityClass, (change) => change.item),
|
|
791
|
+
typeorm$1.OneToMany(() => exports.ReceiveInventoryOrderChangeEntityClass, (change) => change.item),
|
|
638
792
|
tslib.__metadata("design:type", Array)
|
|
639
793
|
], exports.ReceiveInventoryOrderItemEntityClass.prototype, "changes", void 0);
|
|
640
794
|
exports.ReceiveInventoryOrderItemEntityClass = tslib.__decorate([
|
|
641
|
-
typeorm.Entity('receive_inventory_order_items')
|
|
795
|
+
typeorm$1.Entity('receive_inventory_order_items')
|
|
642
796
|
], exports.ReceiveInventoryOrderItemEntityClass);
|
|
643
797
|
|
|
644
798
|
const ShipInventoryOrderEntity = Symbol('ShipInventoryOrderEntity');
|
|
@@ -653,42 +807,42 @@ exports.ShipInventoryOrderEntityClass = class ShipInventoryOrderEntityClass {
|
|
|
653
807
|
status;
|
|
654
808
|
};
|
|
655
809
|
tslib.__decorate([
|
|
656
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
810
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
657
811
|
tslib.__metadata("design:type", String)
|
|
658
812
|
], exports.ShipInventoryOrderEntityClass.prototype, "id", void 0);
|
|
659
813
|
tslib.__decorate([
|
|
660
|
-
typeorm.Column({ type: 'varchar', unique: true }),
|
|
661
|
-
typeorm.Index(),
|
|
814
|
+
typeorm$1.Column({ type: 'varchar', unique: true }),
|
|
815
|
+
typeorm$1.Index(),
|
|
662
816
|
tslib.__metadata("design:type", String)
|
|
663
817
|
], exports.ShipInventoryOrderEntityClass.prototype, "key", void 0);
|
|
664
818
|
tslib.__decorate([
|
|
665
|
-
typeorm.Column({ type: 'text' }),
|
|
819
|
+
typeorm$1.Column({ type: 'text' }),
|
|
666
820
|
tslib.__metadata("design:type", String)
|
|
667
821
|
], exports.ShipInventoryOrderEntityClass.prototype, "description", void 0);
|
|
668
822
|
tslib.__decorate([
|
|
669
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
823
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
670
824
|
tslib.__metadata("design:type", Object)
|
|
671
825
|
], exports.ShipInventoryOrderEntityClass.prototype, "createdBy", void 0);
|
|
672
826
|
tslib.__decorate([
|
|
673
|
-
typeorm.Column({ type: 'timestamptz', nullable: true }),
|
|
827
|
+
typeorm$1.Column({ type: 'timestamptz', nullable: true }),
|
|
674
828
|
tslib.__metadata("design:type", Object)
|
|
675
829
|
], exports.ShipInventoryOrderEntityClass.prototype, "removedAt", void 0);
|
|
676
830
|
tslib.__decorate([
|
|
677
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
831
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
678
832
|
tslib.__metadata("design:type", Date)
|
|
679
833
|
], exports.ShipInventoryOrderEntityClass.prototype, "createdAt", void 0);
|
|
680
834
|
tslib.__decorate([
|
|
681
|
-
typeorm.OneToMany('ship_inventory_order_items', (entity) => entity.order),
|
|
682
|
-
typeorm.JoinColumn({ name: 'id', referencedColumnName: 'orderId' }),
|
|
835
|
+
typeorm$1.OneToMany('ship_inventory_order_items', (entity) => entity.order),
|
|
836
|
+
typeorm$1.JoinColumn({ name: 'id', referencedColumnName: 'orderId' }),
|
|
683
837
|
tslib.__metadata("design:type", Array)
|
|
684
838
|
], exports.ShipInventoryOrderEntityClass.prototype, "items", void 0);
|
|
685
839
|
tslib.__decorate([
|
|
686
|
-
typeorm.JoinColumn(),
|
|
840
|
+
typeorm$1.JoinColumn(),
|
|
687
841
|
tslib.__metadata("design:type", String)
|
|
688
842
|
], exports.ShipInventoryOrderEntityClass.prototype, "status", void 0);
|
|
689
843
|
exports.ShipInventoryOrderEntityClass = tslib.__decorate([
|
|
690
|
-
typeorm.Entity('ship_inventory_orders'),
|
|
691
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
844
|
+
typeorm$1.Entity('ship_inventory_orders'),
|
|
845
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
692
846
|
], exports.ShipInventoryOrderEntityClass);
|
|
693
847
|
|
|
694
848
|
const ShipInventoryOrderChangeEntity = Symbol('ShipInventoryOrderChangeEntity');
|
|
@@ -701,33 +855,33 @@ exports.ShipInventoryOrderChangeEntityClass = class ShipInventoryOrderChangeEnti
|
|
|
701
855
|
status;
|
|
702
856
|
};
|
|
703
857
|
tslib.__decorate([
|
|
704
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
858
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
705
859
|
tslib.__metadata("design:type", String)
|
|
706
860
|
], exports.ShipInventoryOrderChangeEntityClass.prototype, "id", void 0);
|
|
707
861
|
tslib.__decorate([
|
|
708
|
-
typeorm.Column({ type: 'uuid' }),
|
|
862
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
709
863
|
tslib.__metadata("design:type", String)
|
|
710
864
|
], exports.ShipInventoryOrderChangeEntityClass.prototype, "itemId", void 0);
|
|
711
865
|
tslib.__decorate([
|
|
712
|
-
typeorm.Column({ type: 'numeric' }),
|
|
866
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
713
867
|
tslib.__metadata("design:type", Number)
|
|
714
868
|
], exports.ShipInventoryOrderChangeEntityClass.prototype, "quantityChanged", void 0);
|
|
715
869
|
tslib.__decorate([
|
|
716
|
-
typeorm.OneToOne('orders'),
|
|
717
|
-
typeorm.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
870
|
+
typeorm$1.OneToOne('orders'),
|
|
871
|
+
typeorm$1.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
718
872
|
tslib.__metadata("design:type", wmsBaseNestjsModule.OrderEntity)
|
|
719
873
|
], exports.ShipInventoryOrderChangeEntityClass.prototype, "order", void 0);
|
|
720
874
|
tslib.__decorate([
|
|
721
|
-
typeorm.ManyToOne('ship_inventory_order_items', (item) => item.changes),
|
|
722
|
-
typeorm.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
875
|
+
typeorm$1.ManyToOne('ship_inventory_order_items', (item) => item.changes),
|
|
876
|
+
typeorm$1.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
723
877
|
tslib.__metadata("design:type", Function)
|
|
724
878
|
], exports.ShipInventoryOrderChangeEntityClass.prototype, "item", void 0);
|
|
725
879
|
tslib.__decorate([
|
|
726
|
-
typeorm.JoinColumn(),
|
|
880
|
+
typeorm$1.JoinColumn(),
|
|
727
881
|
tslib.__metadata("design:type", String)
|
|
728
882
|
], exports.ShipInventoryOrderChangeEntityClass.prototype, "status", void 0);
|
|
729
883
|
exports.ShipInventoryOrderChangeEntityClass = tslib.__decorate([
|
|
730
|
-
typeorm.Entity('ship_inventory_order_changes')
|
|
884
|
+
typeorm$1.Entity('ship_inventory_order_changes')
|
|
731
885
|
], exports.ShipInventoryOrderChangeEntityClass);
|
|
732
886
|
|
|
733
887
|
const ShipInventoryOrderItemEntity = Symbol('ShipInventoryOrderItemEntity');
|
|
@@ -748,70 +902,70 @@ exports.ShipInventoryOrderItemEntityClass = class ShipInventoryOrderItemEntityCl
|
|
|
748
902
|
changes;
|
|
749
903
|
};
|
|
750
904
|
tslib.__decorate([
|
|
751
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
905
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
752
906
|
tslib.__metadata("design:type", String)
|
|
753
907
|
], exports.ShipInventoryOrderItemEntityClass.prototype, "id", void 0);
|
|
754
908
|
tslib.__decorate([
|
|
755
|
-
typeorm.Column({ type: 'varchar' }),
|
|
909
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
756
910
|
tslib.__metadata("design:type", String)
|
|
757
911
|
], exports.ShipInventoryOrderItemEntityClass.prototype, "serialId", void 0);
|
|
758
912
|
tslib.__decorate([
|
|
759
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
913
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
760
914
|
tslib.__metadata("design:type", String)
|
|
761
915
|
], exports.ShipInventoryOrderItemEntityClass.prototype, "saleId", void 0);
|
|
762
916
|
tslib.__decorate([
|
|
763
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
917
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
764
918
|
tslib.__metadata("design:type", String)
|
|
765
919
|
], exports.ShipInventoryOrderItemEntityClass.prototype, "saleSerialId", void 0);
|
|
766
920
|
tslib.__decorate([
|
|
767
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
921
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
768
922
|
tslib.__metadata("design:type", Object)
|
|
769
923
|
], exports.ShipInventoryOrderItemEntityClass.prototype, "unitId", void 0);
|
|
770
924
|
tslib.__decorate([
|
|
771
|
-
typeorm.Column({ type: 'numeric' }),
|
|
925
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
772
926
|
tslib.__metadata("design:type", Number)
|
|
773
927
|
], exports.ShipInventoryOrderItemEntityClass.prototype, "targetShippedQuantity", void 0);
|
|
774
928
|
tslib.__decorate([
|
|
775
|
-
typeorm.Column({ type: 'uuid' }),
|
|
776
|
-
typeorm.Index(),
|
|
929
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
930
|
+
typeorm$1.Index(),
|
|
777
931
|
tslib.__metadata("design:type", String)
|
|
778
932
|
], exports.ShipInventoryOrderItemEntityClass.prototype, "orderId", void 0);
|
|
779
933
|
tslib.__decorate([
|
|
780
|
-
typeorm.Column({ type: 'uuid' }),
|
|
781
|
-
typeorm.Index(),
|
|
934
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
935
|
+
typeorm$1.Index(),
|
|
782
936
|
tslib.__metadata("design:type", String)
|
|
783
937
|
], exports.ShipInventoryOrderItemEntityClass.prototype, "materialId", void 0);
|
|
784
938
|
tslib.__decorate([
|
|
785
|
-
typeorm.Column({ type: 'uuid' }),
|
|
786
|
-
typeorm.Index(),
|
|
939
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
940
|
+
typeorm$1.Index(),
|
|
787
941
|
tslib.__metadata("design:type", String)
|
|
788
942
|
], exports.ShipInventoryOrderItemEntityClass.prototype, "batchId", void 0);
|
|
789
943
|
tslib.__decorate([
|
|
790
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
791
|
-
typeorm.Index(),
|
|
944
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
945
|
+
typeorm$1.Index(),
|
|
792
946
|
tslib.__metadata("design:type", Object)
|
|
793
947
|
], exports.ShipInventoryOrderItemEntityClass.prototype, "locationId", void 0);
|
|
794
948
|
tslib.__decorate([
|
|
795
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
796
|
-
typeorm.Index(),
|
|
949
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
950
|
+
typeorm$1.Index(),
|
|
797
951
|
tslib.__metadata("design:type", Object)
|
|
798
952
|
], exports.ShipInventoryOrderItemEntityClass.prototype, "loaderId", void 0);
|
|
799
953
|
tslib.__decorate([
|
|
800
|
-
typeorm.Column({ type: 'timestamptz', nullable: true }),
|
|
954
|
+
typeorm$1.Column({ type: 'timestamptz', nullable: true }),
|
|
801
955
|
tslib.__metadata("design:type", Object)
|
|
802
956
|
], exports.ShipInventoryOrderItemEntityClass.prototype, "removedAt", void 0);
|
|
803
957
|
tslib.__decorate([
|
|
804
|
-
typeorm.ManyToOne('ship_inventory_orders', (entity) => entity.items),
|
|
805
|
-
typeorm.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
958
|
+
typeorm$1.ManyToOne('ship_inventory_orders', (entity) => entity.items),
|
|
959
|
+
typeorm$1.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
806
960
|
tslib.__metadata("design:type", exports.ShipInventoryOrderEntityClass)
|
|
807
961
|
], exports.ShipInventoryOrderItemEntityClass.prototype, "order", void 0);
|
|
808
962
|
tslib.__decorate([
|
|
809
|
-
typeorm.OneToMany(() => exports.ShipInventoryOrderChangeEntityClass, (change) => change.item),
|
|
963
|
+
typeorm$1.OneToMany(() => exports.ShipInventoryOrderChangeEntityClass, (change) => change.item),
|
|
810
964
|
tslib.__metadata("design:type", Array)
|
|
811
965
|
], exports.ShipInventoryOrderItemEntityClass.prototype, "changes", void 0);
|
|
812
966
|
exports.ShipInventoryOrderItemEntityClass = tslib.__decorate([
|
|
813
|
-
typeorm.Entity('ship_inventory_order_items'),
|
|
814
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
967
|
+
typeorm$1.Entity('ship_inventory_order_items'),
|
|
968
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
815
969
|
], exports.ShipInventoryOrderItemEntityClass);
|
|
816
970
|
|
|
817
971
|
const ShipInventoryOrderReferenceEntity = Symbol('ShipInventoryOrderReferenceEntity');
|
|
@@ -828,51 +982,51 @@ exports.ShipInventoryOrderReferenceEntityClass = class ShipInventoryOrderReferen
|
|
|
828
982
|
removedAt;
|
|
829
983
|
};
|
|
830
984
|
tslib.__decorate([
|
|
831
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
985
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
832
986
|
tslib.__metadata("design:type", String)
|
|
833
987
|
], exports.ShipInventoryOrderReferenceEntityClass.prototype, "id", void 0);
|
|
834
988
|
tslib.__decorate([
|
|
835
|
-
typeorm.Column({ type: 'varchar' }),
|
|
989
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
836
990
|
tslib.__metadata("design:type", String)
|
|
837
991
|
], exports.ShipInventoryOrderReferenceEntityClass.prototype, "serialId", void 0);
|
|
838
992
|
tslib.__decorate([
|
|
839
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
993
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
840
994
|
tslib.__metadata("design:type", Object)
|
|
841
995
|
], exports.ShipInventoryOrderReferenceEntityClass.prototype, "saleId", void 0);
|
|
842
996
|
tslib.__decorate([
|
|
843
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
997
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
844
998
|
tslib.__metadata("design:type", Object)
|
|
845
999
|
], exports.ShipInventoryOrderReferenceEntityClass.prototype, "saleSerialId", void 0);
|
|
846
1000
|
tslib.__decorate([
|
|
847
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1001
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
848
1002
|
tslib.__metadata("design:type", Object)
|
|
849
1003
|
], exports.ShipInventoryOrderReferenceEntityClass.prototype, "unitId", void 0);
|
|
850
1004
|
tslib.__decorate([
|
|
851
|
-
typeorm.Column({ type: 'numeric' }),
|
|
1005
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
852
1006
|
tslib.__metadata("design:type", Number)
|
|
853
1007
|
], exports.ShipInventoryOrderReferenceEntityClass.prototype, "targetShippedQuantity", void 0);
|
|
854
1008
|
tslib.__decorate([
|
|
855
|
-
typeorm.Column({ type: 'uuid' }),
|
|
856
|
-
typeorm.Index(),
|
|
1009
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1010
|
+
typeorm$1.Index(),
|
|
857
1011
|
tslib.__metadata("design:type", String)
|
|
858
1012
|
], exports.ShipInventoryOrderReferenceEntityClass.prototype, "orderId", void 0);
|
|
859
1013
|
tslib.__decorate([
|
|
860
|
-
typeorm.Column({ type: 'uuid' }),
|
|
861
|
-
typeorm.Index(),
|
|
1014
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1015
|
+
typeorm$1.Index(),
|
|
862
1016
|
tslib.__metadata("design:type", String)
|
|
863
1017
|
], exports.ShipInventoryOrderReferenceEntityClass.prototype, "materialId", void 0);
|
|
864
1018
|
tslib.__decorate([
|
|
865
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
866
|
-
typeorm.Index(),
|
|
1019
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1020
|
+
typeorm$1.Index(),
|
|
867
1021
|
tslib.__metadata("design:type", Object)
|
|
868
1022
|
], exports.ShipInventoryOrderReferenceEntityClass.prototype, "batchId", void 0);
|
|
869
1023
|
tslib.__decorate([
|
|
870
|
-
typeorm.Column({ type: 'timestamptz', nullable: true }),
|
|
1024
|
+
typeorm$1.Column({ type: 'timestamptz', nullable: true }),
|
|
871
1025
|
tslib.__metadata("design:type", Object)
|
|
872
1026
|
], exports.ShipInventoryOrderReferenceEntityClass.prototype, "removedAt", void 0);
|
|
873
1027
|
exports.ShipInventoryOrderReferenceEntityClass = tslib.__decorate([
|
|
874
|
-
typeorm.Entity('ship_inventory_order_references'),
|
|
875
|
-
typeorm.Unique('UQ_order_serial', ['orderId', 'serialId'])
|
|
1028
|
+
typeorm$1.Entity('ship_inventory_order_references'),
|
|
1029
|
+
typeorm$1.Unique('UQ_order_serial', ['orderId', 'serialId'])
|
|
876
1030
|
], exports.ShipInventoryOrderReferenceEntityClass);
|
|
877
1031
|
|
|
878
1032
|
const TransferOrderEntity = Symbol('TransferOrderEntity');
|
|
@@ -887,41 +1041,41 @@ exports.TransferOrderEntityClass = class TransferOrderEntityClass {
|
|
|
887
1041
|
items;
|
|
888
1042
|
};
|
|
889
1043
|
tslib.__decorate([
|
|
890
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1044
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
891
1045
|
tslib.__metadata("design:type", String)
|
|
892
1046
|
], exports.TransferOrderEntityClass.prototype, "id", void 0);
|
|
893
1047
|
tslib.__decorate([
|
|
894
|
-
typeorm.Column({ type: 'varchar', unique: true }),
|
|
895
|
-
typeorm.Index(),
|
|
1048
|
+
typeorm$1.Column({ type: 'varchar', unique: true }),
|
|
1049
|
+
typeorm$1.Index(),
|
|
896
1050
|
tslib.__metadata("design:type", String)
|
|
897
1051
|
], exports.TransferOrderEntityClass.prototype, "key", void 0);
|
|
898
1052
|
tslib.__decorate([
|
|
899
|
-
typeorm.Column({ type: 'text', nullable: true }),
|
|
1053
|
+
typeorm$1.Column({ type: 'text', nullable: true }),
|
|
900
1054
|
tslib.__metadata("design:type", Object)
|
|
901
1055
|
], exports.TransferOrderEntityClass.prototype, "description", void 0);
|
|
902
1056
|
tslib.__decorate([
|
|
903
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
1057
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
904
1058
|
tslib.__metadata("design:type", Object)
|
|
905
1059
|
], exports.TransferOrderEntityClass.prototype, "receiver", void 0);
|
|
906
1060
|
tslib.__decorate([
|
|
907
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
1061
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
908
1062
|
tslib.__metadata("design:type", Object)
|
|
909
1063
|
], exports.TransferOrderEntityClass.prototype, "createdBy", void 0);
|
|
910
1064
|
tslib.__decorate([
|
|
911
|
-
typeorm.Column({ type: 'timestamptz', nullable: true }),
|
|
1065
|
+
typeorm$1.Column({ type: 'timestamptz', nullable: true }),
|
|
912
1066
|
tslib.__metadata("design:type", Object)
|
|
913
1067
|
], exports.TransferOrderEntityClass.prototype, "removedAt", void 0);
|
|
914
1068
|
tslib.__decorate([
|
|
915
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
1069
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
916
1070
|
tslib.__metadata("design:type", Date)
|
|
917
1071
|
], exports.TransferOrderEntityClass.prototype, "createdAt", void 0);
|
|
918
1072
|
tslib.__decorate([
|
|
919
|
-
typeorm.OneToMany('transfer_order_items', (entity) => entity.order),
|
|
1073
|
+
typeorm$1.OneToMany('transfer_order_items', (entity) => entity.order),
|
|
920
1074
|
tslib.__metadata("design:type", Array)
|
|
921
1075
|
], exports.TransferOrderEntityClass.prototype, "items", void 0);
|
|
922
1076
|
exports.TransferOrderEntityClass = tslib.__decorate([
|
|
923
|
-
typeorm.Entity('transfer_orders'),
|
|
924
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1077
|
+
typeorm$1.Entity('transfer_orders'),
|
|
1078
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
925
1079
|
], exports.TransferOrderEntityClass);
|
|
926
1080
|
|
|
927
1081
|
const TransferOrderItemEntity = Symbol('TransferOrderItemEntity');
|
|
@@ -943,77 +1097,77 @@ exports.TransferOrderItemEntityClass = class TransferOrderItemEntityClass {
|
|
|
943
1097
|
changes;
|
|
944
1098
|
};
|
|
945
1099
|
tslib.__decorate([
|
|
946
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1100
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
947
1101
|
tslib.__metadata("design:type", String)
|
|
948
1102
|
], exports.TransferOrderItemEntityClass.prototype, "id", void 0);
|
|
949
1103
|
tslib.__decorate([
|
|
950
|
-
typeorm.Column({ type: 'uuid' }),
|
|
951
|
-
typeorm.Index(),
|
|
1104
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1105
|
+
typeorm$1.Index(),
|
|
952
1106
|
tslib.__metadata("design:type", String)
|
|
953
1107
|
], exports.TransferOrderItemEntityClass.prototype, "materialId", void 0);
|
|
954
1108
|
tslib.__decorate([
|
|
955
|
-
typeorm.Column({ type: 'uuid' }),
|
|
956
|
-
typeorm.Index(),
|
|
1109
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1110
|
+
typeorm$1.Index(),
|
|
957
1111
|
tslib.__metadata("design:type", String)
|
|
958
1112
|
], exports.TransferOrderItemEntityClass.prototype, "batchId", void 0);
|
|
959
1113
|
tslib.__decorate([
|
|
960
|
-
typeorm.Column({ type: 'uuid' }),
|
|
961
|
-
typeorm.Index(),
|
|
1114
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1115
|
+
typeorm$1.Index(),
|
|
962
1116
|
tslib.__metadata("design:type", String)
|
|
963
1117
|
], exports.TransferOrderItemEntityClass.prototype, "locationId", void 0);
|
|
964
1118
|
tslib.__decorate([
|
|
965
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1119
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
966
1120
|
tslib.__metadata("design:type", Object)
|
|
967
1121
|
], exports.TransferOrderItemEntityClass.prototype, "loaderId", void 0);
|
|
968
1122
|
tslib.__decorate([
|
|
969
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1123
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
970
1124
|
tslib.__metadata("design:type", Object)
|
|
971
1125
|
], exports.TransferOrderItemEntityClass.prototype, "unitId", void 0);
|
|
972
1126
|
tslib.__decorate([
|
|
973
|
-
typeorm.Column({ type: 'numeric' }),
|
|
1127
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
974
1128
|
tslib.__metadata("design:type", Number)
|
|
975
1129
|
], exports.TransferOrderItemEntityClass.prototype, "targetTransferredQuantity", void 0);
|
|
976
1130
|
tslib.__decorate([
|
|
977
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
978
|
-
typeorm.Index(),
|
|
1131
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1132
|
+
typeorm$1.Index(),
|
|
979
1133
|
tslib.__metadata("design:type", Object)
|
|
980
1134
|
], exports.TransferOrderItemEntityClass.prototype, "targetLocationId", void 0);
|
|
981
1135
|
tslib.__decorate([
|
|
982
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
983
|
-
typeorm.Index(),
|
|
1136
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1137
|
+
typeorm$1.Index(),
|
|
984
1138
|
tslib.__metadata("design:type", Object)
|
|
985
1139
|
], exports.TransferOrderItemEntityClass.prototype, "targetLoaderId", void 0);
|
|
986
1140
|
tslib.__decorate([
|
|
987
|
-
typeorm.Column({ type: 'uuid' }),
|
|
988
|
-
typeorm.Index(),
|
|
1141
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1142
|
+
typeorm$1.Index(),
|
|
989
1143
|
tslib.__metadata("design:type", String)
|
|
990
1144
|
], exports.TransferOrderItemEntityClass.prototype, "orderId", void 0);
|
|
991
1145
|
tslib.__decorate([
|
|
992
|
-
typeorm.Column({ type: 'timestamptz', nullable: true }),
|
|
1146
|
+
typeorm$1.Column({ type: 'timestamptz', nullable: true }),
|
|
993
1147
|
tslib.__metadata("design:type", Object)
|
|
994
1148
|
], exports.TransferOrderItemEntityClass.prototype, "removedAt", void 0);
|
|
995
1149
|
tslib.__decorate([
|
|
996
|
-
typeorm.ManyToOne('locations'),
|
|
997
|
-
typeorm.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
1150
|
+
typeorm$1.ManyToOne('locations'),
|
|
1151
|
+
typeorm$1.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
998
1152
|
tslib.__metadata("design:type", exports.LocationEntityClass)
|
|
999
1153
|
], exports.TransferOrderItemEntityClass.prototype, "location", void 0);
|
|
1000
1154
|
tslib.__decorate([
|
|
1001
|
-
typeorm.ManyToOne('loaders'),
|
|
1002
|
-
typeorm.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1155
|
+
typeorm$1.ManyToOne('loaders'),
|
|
1156
|
+
typeorm$1.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1003
1157
|
tslib.__metadata("design:type", exports.LoadersEntityClass)
|
|
1004
1158
|
], exports.TransferOrderItemEntityClass.prototype, "loader", void 0);
|
|
1005
1159
|
tslib.__decorate([
|
|
1006
|
-
typeorm.ManyToOne('transfer_orders', (entity) => entity.items),
|
|
1007
|
-
typeorm.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1160
|
+
typeorm$1.ManyToOne('transfer_orders', (entity) => entity.items),
|
|
1161
|
+
typeorm$1.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1008
1162
|
tslib.__metadata("design:type", exports.TransferOrderEntityClass)
|
|
1009
1163
|
], exports.TransferOrderItemEntityClass.prototype, "order", void 0);
|
|
1010
1164
|
tslib.__decorate([
|
|
1011
|
-
typeorm.OneToMany('transfer_order_changes', (change) => change.item),
|
|
1165
|
+
typeorm$1.OneToMany('transfer_order_changes', (change) => change.item),
|
|
1012
1166
|
tslib.__metadata("design:type", Array)
|
|
1013
1167
|
], exports.TransferOrderItemEntityClass.prototype, "changes", void 0);
|
|
1014
1168
|
exports.TransferOrderItemEntityClass = tslib.__decorate([
|
|
1015
|
-
typeorm.Entity('transfer_order_items'),
|
|
1016
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1169
|
+
typeorm$1.Entity('transfer_order_items'),
|
|
1170
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1017
1171
|
], exports.TransferOrderItemEntityClass);
|
|
1018
1172
|
|
|
1019
1173
|
const TransferOrderChangeEntity = Symbol('TransferOrderChangeEntity');
|
|
@@ -1025,29 +1179,29 @@ exports.TransferOrderChangeEntityClass = class TransferOrderChangeEntityClass {
|
|
|
1025
1179
|
item;
|
|
1026
1180
|
};
|
|
1027
1181
|
tslib.__decorate([
|
|
1028
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1182
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1029
1183
|
tslib.__metadata("design:type", String)
|
|
1030
1184
|
], exports.TransferOrderChangeEntityClass.prototype, "id", void 0);
|
|
1031
1185
|
tslib.__decorate([
|
|
1032
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1186
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1033
1187
|
tslib.__metadata("design:type", String)
|
|
1034
1188
|
], exports.TransferOrderChangeEntityClass.prototype, "itemId", void 0);
|
|
1035
1189
|
tslib.__decorate([
|
|
1036
|
-
typeorm.Column({ type: 'numeric' }),
|
|
1190
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1037
1191
|
tslib.__metadata("design:type", Number)
|
|
1038
1192
|
], exports.TransferOrderChangeEntityClass.prototype, "quantityChanged", void 0);
|
|
1039
1193
|
tslib.__decorate([
|
|
1040
|
-
typeorm.OneToOne('orders'),
|
|
1041
|
-
typeorm.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
1194
|
+
typeorm$1.OneToOne('orders'),
|
|
1195
|
+
typeorm$1.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
1042
1196
|
tslib.__metadata("design:type", wmsBaseNestjsModule.OrderEntity)
|
|
1043
1197
|
], exports.TransferOrderChangeEntityClass.prototype, "order", void 0);
|
|
1044
1198
|
tslib.__decorate([
|
|
1045
|
-
typeorm.ManyToOne('transfer_order_items', (item) => item.changes),
|
|
1046
|
-
typeorm.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
1199
|
+
typeorm$1.ManyToOne('transfer_order_items', (item) => item.changes),
|
|
1200
|
+
typeorm$1.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
1047
1201
|
tslib.__metadata("design:type", exports.TransferOrderItemEntityClass)
|
|
1048
1202
|
], exports.TransferOrderChangeEntityClass.prototype, "item", void 0);
|
|
1049
1203
|
exports.TransferOrderChangeEntityClass = tslib.__decorate([
|
|
1050
|
-
typeorm.Entity('transfer_order_changes')
|
|
1204
|
+
typeorm$1.Entity('transfer_order_changes')
|
|
1051
1205
|
], exports.TransferOrderChangeEntityClass);
|
|
1052
1206
|
|
|
1053
1207
|
const HoldInventoryOrderEntity = Symbol('HoldInventoryOrderEntity');
|
|
@@ -1060,33 +1214,33 @@ exports.HoldInventoryOrderEntityClass = class HoldInventoryOrderEntityClass {
|
|
|
1060
1214
|
items;
|
|
1061
1215
|
};
|
|
1062
1216
|
tslib.__decorate([
|
|
1063
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1217
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1064
1218
|
tslib.__metadata("design:type", String)
|
|
1065
1219
|
], exports.HoldInventoryOrderEntityClass.prototype, "id", void 0);
|
|
1066
1220
|
tslib.__decorate([
|
|
1067
|
-
typeorm.Column({ type: 'varchar', unique: true }),
|
|
1068
|
-
typeorm.Index(),
|
|
1221
|
+
typeorm$1.Column({ type: 'varchar', unique: true }),
|
|
1222
|
+
typeorm$1.Index(),
|
|
1069
1223
|
tslib.__metadata("design:type", String)
|
|
1070
1224
|
], exports.HoldInventoryOrderEntityClass.prototype, "key", void 0);
|
|
1071
1225
|
tslib.__decorate([
|
|
1072
|
-
typeorm.Column({ type: 'varchar', nullable: true }),
|
|
1226
|
+
typeorm$1.Column({ type: 'varchar', nullable: true }),
|
|
1073
1227
|
tslib.__metadata("design:type", Object)
|
|
1074
1228
|
], exports.HoldInventoryOrderEntityClass.prototype, "createdBy", void 0);
|
|
1075
1229
|
tslib.__decorate([
|
|
1076
|
-
typeorm.Column({ type: 'timestamptz', nullable: true }),
|
|
1230
|
+
typeorm$1.Column({ type: 'timestamptz', nullable: true }),
|
|
1077
1231
|
tslib.__metadata("design:type", Object)
|
|
1078
1232
|
], exports.HoldInventoryOrderEntityClass.prototype, "removedAt", void 0);
|
|
1079
1233
|
tslib.__decorate([
|
|
1080
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
1234
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
1081
1235
|
tslib.__metadata("design:type", Date)
|
|
1082
1236
|
], exports.HoldInventoryOrderEntityClass.prototype, "createdAt", void 0);
|
|
1083
1237
|
tslib.__decorate([
|
|
1084
|
-
typeorm.OneToMany('hold_inventory_order_items', (entity) => entity.order),
|
|
1238
|
+
typeorm$1.OneToMany('hold_inventory_order_items', (entity) => entity.order),
|
|
1085
1239
|
tslib.__metadata("design:type", Array)
|
|
1086
1240
|
], exports.HoldInventoryOrderEntityClass.prototype, "items", void 0);
|
|
1087
1241
|
exports.HoldInventoryOrderEntityClass = tslib.__decorate([
|
|
1088
|
-
typeorm.Entity('hold_inventory_orders'),
|
|
1089
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1242
|
+
typeorm$1.Entity('hold_inventory_orders'),
|
|
1243
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1090
1244
|
], exports.HoldInventoryOrderEntityClass);
|
|
1091
1245
|
|
|
1092
1246
|
const HoldInventoryOrderItemEntity = Symbol('HoldInventoryOrderItemEntity');
|
|
@@ -1106,68 +1260,68 @@ exports.HoldInventoryOrderItemEntityClass = class HoldInventoryOrderItemEntityCl
|
|
|
1106
1260
|
changes;
|
|
1107
1261
|
};
|
|
1108
1262
|
tslib.__decorate([
|
|
1109
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1263
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1110
1264
|
tslib.__metadata("design:type", String)
|
|
1111
1265
|
], exports.HoldInventoryOrderItemEntityClass.prototype, "id", void 0);
|
|
1112
1266
|
tslib.__decorate([
|
|
1113
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1114
|
-
typeorm.Index(),
|
|
1267
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1268
|
+
typeorm$1.Index(),
|
|
1115
1269
|
tslib.__metadata("design:type", String)
|
|
1116
1270
|
], exports.HoldInventoryOrderItemEntityClass.prototype, "materialId", void 0);
|
|
1117
1271
|
tslib.__decorate([
|
|
1118
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1119
|
-
typeorm.Index(),
|
|
1272
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1273
|
+
typeorm$1.Index(),
|
|
1120
1274
|
tslib.__metadata("design:type", String)
|
|
1121
1275
|
], exports.HoldInventoryOrderItemEntityClass.prototype, "batchId", void 0);
|
|
1122
1276
|
tslib.__decorate([
|
|
1123
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1124
|
-
typeorm.Index(),
|
|
1277
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1278
|
+
typeorm$1.Index(),
|
|
1125
1279
|
tslib.__metadata("design:type", Object)
|
|
1126
1280
|
], exports.HoldInventoryOrderItemEntityClass.prototype, "locationId", void 0);
|
|
1127
1281
|
tslib.__decorate([
|
|
1128
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1282
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1129
1283
|
tslib.__metadata("design:type", Object)
|
|
1130
1284
|
], exports.HoldInventoryOrderItemEntityClass.prototype, "loaderId", void 0);
|
|
1131
1285
|
tslib.__decorate([
|
|
1132
|
-
typeorm.Column({ type: 'numeric' }),
|
|
1286
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1133
1287
|
tslib.__metadata("design:type", Number)
|
|
1134
1288
|
], exports.HoldInventoryOrderItemEntityClass.prototype, "targetHeldQuantity", void 0);
|
|
1135
1289
|
tslib.__decorate([
|
|
1136
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1137
|
-
typeorm.Index(),
|
|
1290
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1291
|
+
typeorm$1.Index(),
|
|
1138
1292
|
tslib.__metadata("design:type", String)
|
|
1139
1293
|
], exports.HoldInventoryOrderItemEntityClass.prototype, "orderId", void 0);
|
|
1140
1294
|
tslib.__decorate([
|
|
1141
|
-
typeorm.Column({ type: 'timestamptz', nullable: true }),
|
|
1295
|
+
typeorm$1.Column({ type: 'timestamptz', nullable: true }),
|
|
1142
1296
|
tslib.__metadata("design:type", Object)
|
|
1143
1297
|
], exports.HoldInventoryOrderItemEntityClass.prototype, "removedAt", void 0);
|
|
1144
1298
|
tslib.__decorate([
|
|
1145
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1146
|
-
typeorm.Index(),
|
|
1299
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1300
|
+
typeorm$1.Index(),
|
|
1147
1301
|
tslib.__metadata("design:type", Object)
|
|
1148
1302
|
], exports.HoldInventoryOrderItemEntityClass.prototype, "unitId", void 0);
|
|
1149
1303
|
tslib.__decorate([
|
|
1150
|
-
typeorm.ManyToOne('locations'),
|
|
1151
|
-
typeorm.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
1304
|
+
typeorm$1.ManyToOne('locations'),
|
|
1305
|
+
typeorm$1.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
1152
1306
|
tslib.__metadata("design:type", exports.LocationEntityClass)
|
|
1153
1307
|
], exports.HoldInventoryOrderItemEntityClass.prototype, "location", void 0);
|
|
1154
1308
|
tslib.__decorate([
|
|
1155
|
-
typeorm.ManyToOne('loaders'),
|
|
1156
|
-
typeorm.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1309
|
+
typeorm$1.ManyToOne('loaders'),
|
|
1310
|
+
typeorm$1.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1157
1311
|
tslib.__metadata("design:type", exports.LoadersEntityClass)
|
|
1158
1312
|
], exports.HoldInventoryOrderItemEntityClass.prototype, "loader", void 0);
|
|
1159
1313
|
tslib.__decorate([
|
|
1160
|
-
typeorm.ManyToOne('hold_inventory_orders', (entity) => entity.items, { onDelete: 'CASCADE', orphanedRowAction: 'delete' }),
|
|
1161
|
-
typeorm.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1314
|
+
typeorm$1.ManyToOne('hold_inventory_orders', (entity) => entity.items, { onDelete: 'CASCADE', orphanedRowAction: 'delete' }),
|
|
1315
|
+
typeorm$1.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1162
1316
|
tslib.__metadata("design:type", exports.HoldInventoryOrderEntityClass)
|
|
1163
1317
|
], exports.HoldInventoryOrderItemEntityClass.prototype, "order", void 0);
|
|
1164
1318
|
tslib.__decorate([
|
|
1165
|
-
typeorm.OneToMany('hold_inventory_order_changes', (change) => change.item),
|
|
1319
|
+
typeorm$1.OneToMany('hold_inventory_order_changes', (change) => change.item),
|
|
1166
1320
|
tslib.__metadata("design:type", Array)
|
|
1167
1321
|
], exports.HoldInventoryOrderItemEntityClass.prototype, "changes", void 0);
|
|
1168
1322
|
exports.HoldInventoryOrderItemEntityClass = tslib.__decorate([
|
|
1169
|
-
typeorm.Entity('hold_inventory_order_items'),
|
|
1170
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1323
|
+
typeorm$1.Entity('hold_inventory_order_items'),
|
|
1324
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1171
1325
|
], exports.HoldInventoryOrderItemEntityClass);
|
|
1172
1326
|
|
|
1173
1327
|
const HoldInventoryOrderChangeEntity = Symbol('HoldInventoryOrderChangeEntity');
|
|
@@ -1179,29 +1333,29 @@ exports.HoldInventoryOrderChangeEntityClass = class HoldInventoryOrderChangeEnti
|
|
|
1179
1333
|
item;
|
|
1180
1334
|
};
|
|
1181
1335
|
tslib.__decorate([
|
|
1182
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1336
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1183
1337
|
tslib.__metadata("design:type", String)
|
|
1184
1338
|
], exports.HoldInventoryOrderChangeEntityClass.prototype, "id", void 0);
|
|
1185
1339
|
tslib.__decorate([
|
|
1186
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1340
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1187
1341
|
tslib.__metadata("design:type", String)
|
|
1188
1342
|
], exports.HoldInventoryOrderChangeEntityClass.prototype, "itemId", void 0);
|
|
1189
1343
|
tslib.__decorate([
|
|
1190
|
-
typeorm.Column({ type: 'numeric' }),
|
|
1344
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1191
1345
|
tslib.__metadata("design:type", Number)
|
|
1192
1346
|
], exports.HoldInventoryOrderChangeEntityClass.prototype, "quantityChanged", void 0);
|
|
1193
1347
|
tslib.__decorate([
|
|
1194
|
-
typeorm.OneToOne('orders'),
|
|
1195
|
-
typeorm.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
1348
|
+
typeorm$1.OneToOne('orders'),
|
|
1349
|
+
typeorm$1.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
1196
1350
|
tslib.__metadata("design:type", wmsBaseNestjsModule.OrderEntity)
|
|
1197
1351
|
], exports.HoldInventoryOrderChangeEntityClass.prototype, "order", void 0);
|
|
1198
1352
|
tslib.__decorate([
|
|
1199
|
-
typeorm.ManyToOne('hold_inventory_order_items', (item) => item.changes, { onDelete: 'CASCADE', orphanedRowAction: 'delete' }),
|
|
1200
|
-
typeorm.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
1353
|
+
typeorm$1.ManyToOne('hold_inventory_order_items', (item) => item.changes, { onDelete: 'CASCADE', orphanedRowAction: 'delete' }),
|
|
1354
|
+
typeorm$1.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
1201
1355
|
tslib.__metadata("design:type", exports.HoldInventoryOrderItemEntityClass)
|
|
1202
1356
|
], exports.HoldInventoryOrderChangeEntityClass.prototype, "item", void 0);
|
|
1203
1357
|
exports.HoldInventoryOrderChangeEntityClass = tslib.__decorate([
|
|
1204
|
-
typeorm.Entity('hold_inventory_order_changes')
|
|
1358
|
+
typeorm$1.Entity('hold_inventory_order_changes')
|
|
1205
1359
|
], exports.HoldInventoryOrderChangeEntityClass);
|
|
1206
1360
|
|
|
1207
1361
|
const AllocateInventoryOrderEntity = Symbol('AllocateInventoryOrderEntity');
|
|
@@ -1212,25 +1366,25 @@ exports.AllocateInventoryOrderEntityClass = class AllocateInventoryOrderEntityCl
|
|
|
1212
1366
|
items;
|
|
1213
1367
|
};
|
|
1214
1368
|
tslib.__decorate([
|
|
1215
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1369
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1216
1370
|
tslib.__metadata("design:type", String)
|
|
1217
1371
|
], exports.AllocateInventoryOrderEntityClass.prototype, "id", void 0);
|
|
1218
1372
|
tslib.__decorate([
|
|
1219
|
-
typeorm.Column({ type: 'varchar', unique: true }),
|
|
1220
|
-
typeorm.Index(),
|
|
1373
|
+
typeorm$1.Column({ type: 'varchar', unique: true }),
|
|
1374
|
+
typeorm$1.Index(),
|
|
1221
1375
|
tslib.__metadata("design:type", String)
|
|
1222
1376
|
], exports.AllocateInventoryOrderEntityClass.prototype, "key", void 0);
|
|
1223
1377
|
tslib.__decorate([
|
|
1224
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
1378
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
1225
1379
|
tslib.__metadata("design:type", Date)
|
|
1226
1380
|
], exports.AllocateInventoryOrderEntityClass.prototype, "createdAt", void 0);
|
|
1227
1381
|
tslib.__decorate([
|
|
1228
|
-
typeorm.OneToMany('allocate_inventory_order_items', (entity) => entity.order),
|
|
1382
|
+
typeorm$1.OneToMany('allocate_inventory_order_items', (entity) => entity.order),
|
|
1229
1383
|
tslib.__metadata("design:type", Array)
|
|
1230
1384
|
], exports.AllocateInventoryOrderEntityClass.prototype, "items", void 0);
|
|
1231
1385
|
exports.AllocateInventoryOrderEntityClass = tslib.__decorate([
|
|
1232
|
-
typeorm.Entity('allocate_inventory_orders'),
|
|
1233
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1386
|
+
typeorm$1.Entity('allocate_inventory_orders'),
|
|
1387
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1234
1388
|
], exports.AllocateInventoryOrderEntityClass);
|
|
1235
1389
|
|
|
1236
1390
|
const AllocateInventoryOrderItemEntity = Symbol('AllocateInventoryOrderItemEntity');
|
|
@@ -1251,73 +1405,73 @@ exports.AllocateInventoryOrderItemEntityClass = class AllocateInventoryOrderItem
|
|
|
1251
1405
|
changes;
|
|
1252
1406
|
};
|
|
1253
1407
|
tslib.__decorate([
|
|
1254
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1408
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1255
1409
|
tslib.__metadata("design:type", String)
|
|
1256
1410
|
], exports.AllocateInventoryOrderItemEntityClass.prototype, "id", void 0);
|
|
1257
1411
|
tslib.__decorate([
|
|
1258
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1259
|
-
typeorm.Index(),
|
|
1412
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1413
|
+
typeorm$1.Index(),
|
|
1260
1414
|
tslib.__metadata("design:type", String)
|
|
1261
1415
|
], exports.AllocateInventoryOrderItemEntityClass.prototype, "materialId", void 0);
|
|
1262
1416
|
tslib.__decorate([
|
|
1263
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1264
|
-
typeorm.Index(),
|
|
1417
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1418
|
+
typeorm$1.Index(),
|
|
1265
1419
|
tslib.__metadata("design:type", String)
|
|
1266
1420
|
], exports.AllocateInventoryOrderItemEntityClass.prototype, "batchId", void 0);
|
|
1267
1421
|
tslib.__decorate([
|
|
1268
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1269
|
-
typeorm.Index(),
|
|
1422
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1423
|
+
typeorm$1.Index(),
|
|
1270
1424
|
tslib.__metadata("design:type", Object)
|
|
1271
1425
|
], exports.AllocateInventoryOrderItemEntityClass.prototype, "unitId", void 0);
|
|
1272
1426
|
tslib.__decorate([
|
|
1273
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1274
|
-
typeorm.Index(),
|
|
1427
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1428
|
+
typeorm$1.Index(),
|
|
1275
1429
|
tslib.__metadata("design:type", Object)
|
|
1276
1430
|
], exports.AllocateInventoryOrderItemEntityClass.prototype, "locationId", void 0);
|
|
1277
1431
|
tslib.__decorate([
|
|
1278
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1279
|
-
typeorm.Index(),
|
|
1432
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1433
|
+
typeorm$1.Index(),
|
|
1280
1434
|
tslib.__metadata("design:type", Object)
|
|
1281
1435
|
], exports.AllocateInventoryOrderItemEntityClass.prototype, "loaderId", void 0);
|
|
1282
1436
|
tslib.__decorate([
|
|
1283
|
-
typeorm.Column({ type: 'numeric' }),
|
|
1437
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1284
1438
|
tslib.__metadata("design:type", Number)
|
|
1285
1439
|
], exports.AllocateInventoryOrderItemEntityClass.prototype, "targetAllocatedQuantity", void 0);
|
|
1286
1440
|
tslib.__decorate([
|
|
1287
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1288
|
-
typeorm.Index(),
|
|
1441
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1442
|
+
typeorm$1.Index(),
|
|
1289
1443
|
tslib.__metadata("design:type", String)
|
|
1290
1444
|
], exports.AllocateInventoryOrderItemEntityClass.prototype, "orderId", void 0);
|
|
1291
1445
|
tslib.__decorate([
|
|
1292
|
-
typeorm.Column({ type: 'varchar' }),
|
|
1446
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
1293
1447
|
tslib.__metadata("design:type", String)
|
|
1294
1448
|
], exports.AllocateInventoryOrderItemEntityClass.prototype, "saleId", void 0);
|
|
1295
1449
|
tslib.__decorate([
|
|
1296
|
-
typeorm.Column({ type: 'varchar' }),
|
|
1450
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
1297
1451
|
tslib.__metadata("design:type", String)
|
|
1298
1452
|
], exports.AllocateInventoryOrderItemEntityClass.prototype, "saleSerialId", void 0);
|
|
1299
1453
|
tslib.__decorate([
|
|
1300
|
-
typeorm.ManyToOne('locations'),
|
|
1301
|
-
typeorm.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
1454
|
+
typeorm$1.ManyToOne('locations'),
|
|
1455
|
+
typeorm$1.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
1302
1456
|
tslib.__metadata("design:type", exports.LocationEntityClass)
|
|
1303
1457
|
], exports.AllocateInventoryOrderItemEntityClass.prototype, "location", void 0);
|
|
1304
1458
|
tslib.__decorate([
|
|
1305
|
-
typeorm.ManyToOne('loaders'),
|
|
1306
|
-
typeorm.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1459
|
+
typeorm$1.ManyToOne('loaders'),
|
|
1460
|
+
typeorm$1.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1307
1461
|
tslib.__metadata("design:type", exports.LoadersEntityClass)
|
|
1308
1462
|
], exports.AllocateInventoryOrderItemEntityClass.prototype, "loader", void 0);
|
|
1309
1463
|
tslib.__decorate([
|
|
1310
|
-
typeorm.ManyToOne('allocate_inventory_orders', (entity) => entity.items),
|
|
1311
|
-
typeorm.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1464
|
+
typeorm$1.ManyToOne('allocate_inventory_orders', (entity) => entity.items),
|
|
1465
|
+
typeorm$1.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1312
1466
|
tslib.__metadata("design:type", exports.AllocateInventoryOrderEntityClass)
|
|
1313
1467
|
], exports.AllocateInventoryOrderItemEntityClass.prototype, "order", void 0);
|
|
1314
1468
|
tslib.__decorate([
|
|
1315
|
-
typeorm.ManyToOne('allocate_inventory_order_changes', (change) => change.item),
|
|
1469
|
+
typeorm$1.ManyToOne('allocate_inventory_order_changes', (change) => change.item),
|
|
1316
1470
|
tslib.__metadata("design:type", Array)
|
|
1317
1471
|
], exports.AllocateInventoryOrderItemEntityClass.prototype, "changes", void 0);
|
|
1318
1472
|
exports.AllocateInventoryOrderItemEntityClass = tslib.__decorate([
|
|
1319
|
-
typeorm.Entity('allocate_inventory_order_items'),
|
|
1320
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1473
|
+
typeorm$1.Entity('allocate_inventory_order_items'),
|
|
1474
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1321
1475
|
], exports.AllocateInventoryOrderItemEntityClass);
|
|
1322
1476
|
|
|
1323
1477
|
const AllocateInventoryOrderChangeEntity = Symbol('AllocateInventoryOrderChangeEntity');
|
|
@@ -1329,29 +1483,29 @@ exports.AllocateInventoryOrderChangeEntityClass = class AllocateInventoryOrderCh
|
|
|
1329
1483
|
item;
|
|
1330
1484
|
};
|
|
1331
1485
|
tslib.__decorate([
|
|
1332
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1486
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1333
1487
|
tslib.__metadata("design:type", String)
|
|
1334
1488
|
], exports.AllocateInventoryOrderChangeEntityClass.prototype, "id", void 0);
|
|
1335
1489
|
tslib.__decorate([
|
|
1336
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1490
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1337
1491
|
tslib.__metadata("design:type", String)
|
|
1338
1492
|
], exports.AllocateInventoryOrderChangeEntityClass.prototype, "itemId", void 0);
|
|
1339
1493
|
tslib.__decorate([
|
|
1340
|
-
typeorm.Column({ type: 'numeric' }),
|
|
1494
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1341
1495
|
tslib.__metadata("design:type", Number)
|
|
1342
1496
|
], exports.AllocateInventoryOrderChangeEntityClass.prototype, "quantityChanged", void 0);
|
|
1343
1497
|
tslib.__decorate([
|
|
1344
|
-
typeorm.OneToOne('orders'),
|
|
1345
|
-
typeorm.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
1498
|
+
typeorm$1.OneToOne('orders'),
|
|
1499
|
+
typeorm$1.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
1346
1500
|
tslib.__metadata("design:type", wmsBaseNestjsModule.OrderEntity)
|
|
1347
1501
|
], exports.AllocateInventoryOrderChangeEntityClass.prototype, "order", void 0);
|
|
1348
1502
|
tslib.__decorate([
|
|
1349
|
-
typeorm.ManyToOne('allocate_inventory_order_items', (item) => item.changes),
|
|
1350
|
-
typeorm.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
1503
|
+
typeorm$1.ManyToOne('allocate_inventory_order_items', (item) => item.changes),
|
|
1504
|
+
typeorm$1.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
1351
1505
|
tslib.__metadata("design:type", exports.AllocateInventoryOrderItemEntityClass)
|
|
1352
1506
|
], exports.AllocateInventoryOrderChangeEntityClass.prototype, "item", void 0);
|
|
1353
1507
|
exports.AllocateInventoryOrderChangeEntityClass = tslib.__decorate([
|
|
1354
|
-
typeorm.Entity('allocate_inventory_order_changes')
|
|
1508
|
+
typeorm$1.Entity('allocate_inventory_order_changes')
|
|
1355
1509
|
], exports.AllocateInventoryOrderChangeEntityClass);
|
|
1356
1510
|
|
|
1357
1511
|
const SplitBatchOrderEntity = Symbol('SplitBatchOrderEntity');
|
|
@@ -1362,25 +1516,25 @@ exports.SplitBatchOrderEntityClass = class SplitBatchOrderEntityClass {
|
|
|
1362
1516
|
items;
|
|
1363
1517
|
};
|
|
1364
1518
|
tslib.__decorate([
|
|
1365
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1519
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1366
1520
|
tslib.__metadata("design:type", String)
|
|
1367
1521
|
], exports.SplitBatchOrderEntityClass.prototype, "id", void 0);
|
|
1368
1522
|
tslib.__decorate([
|
|
1369
|
-
typeorm.Column({ type: 'varchar', unique: true }),
|
|
1370
|
-
typeorm.Index(),
|
|
1523
|
+
typeorm$1.Column({ type: 'varchar', unique: true }),
|
|
1524
|
+
typeorm$1.Index(),
|
|
1371
1525
|
tslib.__metadata("design:type", String)
|
|
1372
1526
|
], exports.SplitBatchOrderEntityClass.prototype, "key", void 0);
|
|
1373
1527
|
tslib.__decorate([
|
|
1374
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
1528
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
1375
1529
|
tslib.__metadata("design:type", Date)
|
|
1376
1530
|
], exports.SplitBatchOrderEntityClass.prototype, "createdAt", void 0);
|
|
1377
1531
|
tslib.__decorate([
|
|
1378
|
-
typeorm.OneToMany('split_batch_order_items', (entity) => entity.order),
|
|
1532
|
+
typeorm$1.OneToMany('split_batch_order_items', (entity) => entity.order),
|
|
1379
1533
|
tslib.__metadata("design:type", Array)
|
|
1380
1534
|
], exports.SplitBatchOrderEntityClass.prototype, "items", void 0);
|
|
1381
1535
|
exports.SplitBatchOrderEntityClass = tslib.__decorate([
|
|
1382
|
-
typeorm.Entity('split_batch_orders'),
|
|
1383
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1536
|
+
typeorm$1.Entity('split_batch_orders'),
|
|
1537
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1384
1538
|
], exports.SplitBatchOrderEntityClass);
|
|
1385
1539
|
|
|
1386
1540
|
const SplitBatchOrderItemEntity = Symbol('SplitBatchOrderItemEntity');
|
|
@@ -1396,49 +1550,49 @@ exports.SplitBatchOrderItemEntityClass = class SplitBatchOrderItemEntityClass {
|
|
|
1396
1550
|
changes;
|
|
1397
1551
|
};
|
|
1398
1552
|
tslib.__decorate([
|
|
1399
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1553
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1400
1554
|
tslib.__metadata("design:type", String)
|
|
1401
1555
|
], exports.SplitBatchOrderItemEntityClass.prototype, "id", void 0);
|
|
1402
1556
|
tslib.__decorate([
|
|
1403
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1404
|
-
typeorm.Index(),
|
|
1557
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1558
|
+
typeorm$1.Index(),
|
|
1405
1559
|
tslib.__metadata("design:type", Object)
|
|
1406
1560
|
], exports.SplitBatchOrderItemEntityClass.prototype, "locationId", void 0);
|
|
1407
1561
|
tslib.__decorate([
|
|
1408
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1562
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1409
1563
|
tslib.__metadata("design:type", Object)
|
|
1410
1564
|
], exports.SplitBatchOrderItemEntityClass.prototype, "loaderId", void 0);
|
|
1411
1565
|
tslib.__decorate([
|
|
1412
|
-
typeorm.Column({ type: 'numeric' }),
|
|
1566
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1413
1567
|
tslib.__metadata("design:type", Number)
|
|
1414
1568
|
], exports.SplitBatchOrderItemEntityClass.prototype, "targetSplitQuantity", void 0);
|
|
1415
1569
|
tslib.__decorate([
|
|
1416
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1417
|
-
typeorm.Index(),
|
|
1570
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1571
|
+
typeorm$1.Index(),
|
|
1418
1572
|
tslib.__metadata("design:type", String)
|
|
1419
1573
|
], exports.SplitBatchOrderItemEntityClass.prototype, "orderId", void 0);
|
|
1420
1574
|
tslib.__decorate([
|
|
1421
|
-
typeorm.ManyToOne('locations'),
|
|
1422
|
-
typeorm.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
1575
|
+
typeorm$1.ManyToOne('locations'),
|
|
1576
|
+
typeorm$1.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
1423
1577
|
tslib.__metadata("design:type", exports.LocationEntityClass)
|
|
1424
1578
|
], exports.SplitBatchOrderItemEntityClass.prototype, "location", void 0);
|
|
1425
1579
|
tslib.__decorate([
|
|
1426
|
-
typeorm.ManyToOne('loaders'),
|
|
1427
|
-
typeorm.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1580
|
+
typeorm$1.ManyToOne('loaders'),
|
|
1581
|
+
typeorm$1.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1428
1582
|
tslib.__metadata("design:type", exports.LoadersEntityClass)
|
|
1429
1583
|
], exports.SplitBatchOrderItemEntityClass.prototype, "loader", void 0);
|
|
1430
1584
|
tslib.__decorate([
|
|
1431
|
-
typeorm.ManyToOne('split_batch_orders', (entity) => entity.items),
|
|
1432
|
-
typeorm.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1585
|
+
typeorm$1.ManyToOne('split_batch_orders', (entity) => entity.items),
|
|
1586
|
+
typeorm$1.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1433
1587
|
tslib.__metadata("design:type", exports.SplitBatchOrderEntityClass)
|
|
1434
1588
|
], exports.SplitBatchOrderItemEntityClass.prototype, "order", void 0);
|
|
1435
1589
|
tslib.__decorate([
|
|
1436
|
-
typeorm.ManyToOne('split_batch_order_changes', (change) => change.item),
|
|
1590
|
+
typeorm$1.ManyToOne('split_batch_order_changes', (change) => change.item),
|
|
1437
1591
|
tslib.__metadata("design:type", Array)
|
|
1438
1592
|
], exports.SplitBatchOrderItemEntityClass.prototype, "changes", void 0);
|
|
1439
1593
|
exports.SplitBatchOrderItemEntityClass = tslib.__decorate([
|
|
1440
|
-
typeorm.Entity('split_batch_order_items'),
|
|
1441
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1594
|
+
typeorm$1.Entity('split_batch_order_items'),
|
|
1595
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1442
1596
|
], exports.SplitBatchOrderItemEntityClass);
|
|
1443
1597
|
|
|
1444
1598
|
const SplitBatchOrderChangeEntity = Symbol('SplitBatchOrderChangeEntity');
|
|
@@ -1450,29 +1604,29 @@ exports.SplitBatchOrderChangeEntityClass = class SplitBatchOrderChangeEntityClas
|
|
|
1450
1604
|
item;
|
|
1451
1605
|
};
|
|
1452
1606
|
tslib.__decorate([
|
|
1453
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1607
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1454
1608
|
tslib.__metadata("design:type", String)
|
|
1455
1609
|
], exports.SplitBatchOrderChangeEntityClass.prototype, "id", void 0);
|
|
1456
1610
|
tslib.__decorate([
|
|
1457
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1611
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1458
1612
|
tslib.__metadata("design:type", String)
|
|
1459
1613
|
], exports.SplitBatchOrderChangeEntityClass.prototype, "itemId", void 0);
|
|
1460
1614
|
tslib.__decorate([
|
|
1461
|
-
typeorm.Column({ type: 'numeric' }),
|
|
1615
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1462
1616
|
tslib.__metadata("design:type", Number)
|
|
1463
1617
|
], exports.SplitBatchOrderChangeEntityClass.prototype, "quantityChanged", void 0);
|
|
1464
1618
|
tslib.__decorate([
|
|
1465
|
-
typeorm.OneToOne('orders'),
|
|
1466
|
-
typeorm.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
1619
|
+
typeorm$1.OneToOne('orders'),
|
|
1620
|
+
typeorm$1.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
1467
1621
|
tslib.__metadata("design:type", wmsBaseNestjsModule.OrderEntity)
|
|
1468
1622
|
], exports.SplitBatchOrderChangeEntityClass.prototype, "order", void 0);
|
|
1469
1623
|
tslib.__decorate([
|
|
1470
|
-
typeorm.ManyToOne('split_batch_order_items', (item) => item.changes),
|
|
1471
|
-
typeorm.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
1624
|
+
typeorm$1.ManyToOne('split_batch_order_items', (item) => item.changes),
|
|
1625
|
+
typeorm$1.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
1472
1626
|
tslib.__metadata("design:type", exports.SplitBatchOrderItemEntityClass)
|
|
1473
1627
|
], exports.SplitBatchOrderChangeEntityClass.prototype, "item", void 0);
|
|
1474
1628
|
exports.SplitBatchOrderChangeEntityClass = tslib.__decorate([
|
|
1475
|
-
typeorm.Entity('split_batch_order_changes')
|
|
1629
|
+
typeorm$1.Entity('split_batch_order_changes')
|
|
1476
1630
|
], exports.SplitBatchOrderChangeEntityClass);
|
|
1477
1631
|
|
|
1478
1632
|
const MergeBatchOrderEntity = Symbol('MergeBatchOrderEntity');
|
|
@@ -1483,25 +1637,25 @@ exports.MergeBatchOrderEntityClass = class MergeBatchOrderEntityClass {
|
|
|
1483
1637
|
items;
|
|
1484
1638
|
};
|
|
1485
1639
|
tslib.__decorate([
|
|
1486
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1640
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1487
1641
|
tslib.__metadata("design:type", String)
|
|
1488
1642
|
], exports.MergeBatchOrderEntityClass.prototype, "id", void 0);
|
|
1489
1643
|
tslib.__decorate([
|
|
1490
|
-
typeorm.Column({ type: 'varchar', unique: true }),
|
|
1491
|
-
typeorm.Index(),
|
|
1644
|
+
typeorm$1.Column({ type: 'varchar', unique: true }),
|
|
1645
|
+
typeorm$1.Index(),
|
|
1492
1646
|
tslib.__metadata("design:type", String)
|
|
1493
1647
|
], exports.MergeBatchOrderEntityClass.prototype, "key", void 0);
|
|
1494
1648
|
tslib.__decorate([
|
|
1495
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
1649
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
1496
1650
|
tslib.__metadata("design:type", Date)
|
|
1497
1651
|
], exports.MergeBatchOrderEntityClass.prototype, "createdAt", void 0);
|
|
1498
1652
|
tslib.__decorate([
|
|
1499
|
-
typeorm.OneToMany('merge_batch_order_items', (entity) => entity.order),
|
|
1653
|
+
typeorm$1.OneToMany('merge_batch_order_items', (entity) => entity.order),
|
|
1500
1654
|
tslib.__metadata("design:type", Array)
|
|
1501
1655
|
], exports.MergeBatchOrderEntityClass.prototype, "items", void 0);
|
|
1502
1656
|
exports.MergeBatchOrderEntityClass = tslib.__decorate([
|
|
1503
|
-
typeorm.Entity('merge_batch_orders'),
|
|
1504
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1657
|
+
typeorm$1.Entity('merge_batch_orders'),
|
|
1658
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1505
1659
|
], exports.MergeBatchOrderEntityClass);
|
|
1506
1660
|
|
|
1507
1661
|
const MergeBatchOrderItemEntity = Symbol('MergeBatchOrderItemEntity');
|
|
@@ -1517,49 +1671,49 @@ exports.MergeBatchOrderItemEntityClass = class MergeBatchOrderItemEntityClass {
|
|
|
1517
1671
|
changes;
|
|
1518
1672
|
};
|
|
1519
1673
|
tslib.__decorate([
|
|
1520
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1674
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1521
1675
|
tslib.__metadata("design:type", String)
|
|
1522
1676
|
], exports.MergeBatchOrderItemEntityClass.prototype, "id", void 0);
|
|
1523
1677
|
tslib.__decorate([
|
|
1524
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1525
|
-
typeorm.Index(),
|
|
1678
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1679
|
+
typeorm$1.Index(),
|
|
1526
1680
|
tslib.__metadata("design:type", String)
|
|
1527
1681
|
], exports.MergeBatchOrderItemEntityClass.prototype, "locationId", void 0);
|
|
1528
1682
|
tslib.__decorate([
|
|
1529
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1683
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1530
1684
|
tslib.__metadata("design:type", Object)
|
|
1531
1685
|
], exports.MergeBatchOrderItemEntityClass.prototype, "loaderId", void 0);
|
|
1532
1686
|
tslib.__decorate([
|
|
1533
|
-
typeorm.Column({ type: 'numeric' }),
|
|
1687
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1534
1688
|
tslib.__metadata("design:type", Number)
|
|
1535
1689
|
], exports.MergeBatchOrderItemEntityClass.prototype, "targetMergedQuantity", void 0);
|
|
1536
1690
|
tslib.__decorate([
|
|
1537
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1538
|
-
typeorm.Index(),
|
|
1691
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1692
|
+
typeorm$1.Index(),
|
|
1539
1693
|
tslib.__metadata("design:type", String)
|
|
1540
1694
|
], exports.MergeBatchOrderItemEntityClass.prototype, "orderId", void 0);
|
|
1541
1695
|
tslib.__decorate([
|
|
1542
|
-
typeorm.ManyToOne('locations'),
|
|
1543
|
-
typeorm.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
1696
|
+
typeorm$1.ManyToOne('locations'),
|
|
1697
|
+
typeorm$1.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
1544
1698
|
tslib.__metadata("design:type", exports.LocationEntityClass)
|
|
1545
1699
|
], exports.MergeBatchOrderItemEntityClass.prototype, "location", void 0);
|
|
1546
1700
|
tslib.__decorate([
|
|
1547
|
-
typeorm.ManyToOne('loaders'),
|
|
1548
|
-
typeorm.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1701
|
+
typeorm$1.ManyToOne('loaders'),
|
|
1702
|
+
typeorm$1.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1549
1703
|
tslib.__metadata("design:type", exports.LoadersEntityClass)
|
|
1550
1704
|
], exports.MergeBatchOrderItemEntityClass.prototype, "loader", void 0);
|
|
1551
1705
|
tslib.__decorate([
|
|
1552
|
-
typeorm.ManyToOne('merge_batch_orders', (entity) => entity.items),
|
|
1553
|
-
typeorm.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1706
|
+
typeorm$1.ManyToOne('merge_batch_orders', (entity) => entity.items),
|
|
1707
|
+
typeorm$1.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1554
1708
|
tslib.__metadata("design:type", exports.MergeBatchOrderEntityClass)
|
|
1555
1709
|
], exports.MergeBatchOrderItemEntityClass.prototype, "order", void 0);
|
|
1556
1710
|
tslib.__decorate([
|
|
1557
|
-
typeorm.ManyToOne('merge_batch_order_changes', (change) => change.item),
|
|
1711
|
+
typeorm$1.ManyToOne('merge_batch_order_changes', (change) => change.item),
|
|
1558
1712
|
tslib.__metadata("design:type", Array)
|
|
1559
1713
|
], exports.MergeBatchOrderItemEntityClass.prototype, "changes", void 0);
|
|
1560
1714
|
exports.MergeBatchOrderItemEntityClass = tslib.__decorate([
|
|
1561
|
-
typeorm.Entity('merge_batch_order_items'),
|
|
1562
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1715
|
+
typeorm$1.Entity('merge_batch_order_items'),
|
|
1716
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1563
1717
|
], exports.MergeBatchOrderItemEntityClass);
|
|
1564
1718
|
|
|
1565
1719
|
const MergeBatchOrderChangeEntity = Symbol('MergeBatchOrderChangeEntity');
|
|
@@ -1571,29 +1725,29 @@ exports.MergeBatchOrderChangeEntityClass = class MergeBatchOrderChangeEntityClas
|
|
|
1571
1725
|
item;
|
|
1572
1726
|
};
|
|
1573
1727
|
tslib.__decorate([
|
|
1574
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1728
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1575
1729
|
tslib.__metadata("design:type", String)
|
|
1576
1730
|
], exports.MergeBatchOrderChangeEntityClass.prototype, "id", void 0);
|
|
1577
1731
|
tslib.__decorate([
|
|
1578
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1732
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1579
1733
|
tslib.__metadata("design:type", String)
|
|
1580
1734
|
], exports.MergeBatchOrderChangeEntityClass.prototype, "itemId", void 0);
|
|
1581
1735
|
tslib.__decorate([
|
|
1582
|
-
typeorm.Column({ type: 'numeric' }),
|
|
1736
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1583
1737
|
tslib.__metadata("design:type", Number)
|
|
1584
1738
|
], exports.MergeBatchOrderChangeEntityClass.prototype, "quantityChanged", void 0);
|
|
1585
1739
|
tslib.__decorate([
|
|
1586
|
-
typeorm.OneToOne('orders'),
|
|
1587
|
-
typeorm.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
1740
|
+
typeorm$1.OneToOne('orders'),
|
|
1741
|
+
typeorm$1.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
1588
1742
|
tslib.__metadata("design:type", wmsBaseNestjsModule.OrderEntity)
|
|
1589
1743
|
], exports.MergeBatchOrderChangeEntityClass.prototype, "order", void 0);
|
|
1590
1744
|
tslib.__decorate([
|
|
1591
|
-
typeorm.ManyToOne('merge_batch_order_items', (item) => item.changes),
|
|
1592
|
-
typeorm.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
1745
|
+
typeorm$1.ManyToOne('merge_batch_order_items', (item) => item.changes),
|
|
1746
|
+
typeorm$1.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
1593
1747
|
tslib.__metadata("design:type", exports.MergeBatchOrderItemEntityClass)
|
|
1594
1748
|
], exports.MergeBatchOrderChangeEntityClass.prototype, "item", void 0);
|
|
1595
1749
|
exports.MergeBatchOrderChangeEntityClass = tslib.__decorate([
|
|
1596
|
-
typeorm.Entity('merge_batch_order_changes')
|
|
1750
|
+
typeorm$1.Entity('merge_batch_order_changes')
|
|
1597
1751
|
], exports.MergeBatchOrderChangeEntityClass);
|
|
1598
1752
|
|
|
1599
1753
|
const ReclassifyInventoryOrderEntity = Symbol('ReclassifyInventoryOrderEntity');
|
|
@@ -1604,25 +1758,25 @@ exports.ReclassifyInventoryOrderEntityClass = class ReclassifyInventoryOrderEnti
|
|
|
1604
1758
|
items;
|
|
1605
1759
|
};
|
|
1606
1760
|
tslib.__decorate([
|
|
1607
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1761
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1608
1762
|
tslib.__metadata("design:type", String)
|
|
1609
1763
|
], exports.ReclassifyInventoryOrderEntityClass.prototype, "id", void 0);
|
|
1610
1764
|
tslib.__decorate([
|
|
1611
|
-
typeorm.Column({ type: 'varchar', unique: true }),
|
|
1612
|
-
typeorm.Index(),
|
|
1765
|
+
typeorm$1.Column({ type: 'varchar', unique: true }),
|
|
1766
|
+
typeorm$1.Index(),
|
|
1613
1767
|
tslib.__metadata("design:type", String)
|
|
1614
1768
|
], exports.ReclassifyInventoryOrderEntityClass.prototype, "key", void 0);
|
|
1615
1769
|
tslib.__decorate([
|
|
1616
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
1770
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
1617
1771
|
tslib.__metadata("design:type", Date)
|
|
1618
1772
|
], exports.ReclassifyInventoryOrderEntityClass.prototype, "createdAt", void 0);
|
|
1619
1773
|
tslib.__decorate([
|
|
1620
|
-
typeorm.OneToMany('reclassify_inventory_order_items', (entity) => entity.order),
|
|
1774
|
+
typeorm$1.OneToMany('reclassify_inventory_order_items', (entity) => entity.order),
|
|
1621
1775
|
tslib.__metadata("design:type", Array)
|
|
1622
1776
|
], exports.ReclassifyInventoryOrderEntityClass.prototype, "items", void 0);
|
|
1623
1777
|
exports.ReclassifyInventoryOrderEntityClass = tslib.__decorate([
|
|
1624
|
-
typeorm.Entity('reclassify_inventory_orders'),
|
|
1625
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1778
|
+
typeorm$1.Entity('reclassify_inventory_orders'),
|
|
1779
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1626
1780
|
], exports.ReclassifyInventoryOrderEntityClass);
|
|
1627
1781
|
|
|
1628
1782
|
const ReclassifyInventoryOrderItemEntity = Symbol('ReclassifyInventoryOrderItemEntity');
|
|
@@ -1638,49 +1792,49 @@ exports.ReclassifyInventoryOrderItemEntityClass = class ReclassifyInventoryOrder
|
|
|
1638
1792
|
changes;
|
|
1639
1793
|
};
|
|
1640
1794
|
tslib.__decorate([
|
|
1641
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1795
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1642
1796
|
tslib.__metadata("design:type", String)
|
|
1643
1797
|
], exports.ReclassifyInventoryOrderItemEntityClass.prototype, "id", void 0);
|
|
1644
1798
|
tslib.__decorate([
|
|
1645
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1646
|
-
typeorm.Index(),
|
|
1799
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1800
|
+
typeorm$1.Index(),
|
|
1647
1801
|
tslib.__metadata("design:type", String)
|
|
1648
1802
|
], exports.ReclassifyInventoryOrderItemEntityClass.prototype, "locationId", void 0);
|
|
1649
1803
|
tslib.__decorate([
|
|
1650
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1804
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1651
1805
|
tslib.__metadata("design:type", Object)
|
|
1652
1806
|
], exports.ReclassifyInventoryOrderItemEntityClass.prototype, "loaderId", void 0);
|
|
1653
1807
|
tslib.__decorate([
|
|
1654
|
-
typeorm.Column({ type: 'numeric' }),
|
|
1808
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1655
1809
|
tslib.__metadata("design:type", Number)
|
|
1656
1810
|
], exports.ReclassifyInventoryOrderItemEntityClass.prototype, "targetReclassifiedQuantity", void 0);
|
|
1657
1811
|
tslib.__decorate([
|
|
1658
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1659
|
-
typeorm.Index(),
|
|
1812
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1813
|
+
typeorm$1.Index(),
|
|
1660
1814
|
tslib.__metadata("design:type", String)
|
|
1661
1815
|
], exports.ReclassifyInventoryOrderItemEntityClass.prototype, "orderId", void 0);
|
|
1662
1816
|
tslib.__decorate([
|
|
1663
|
-
typeorm.ManyToOne('locations'),
|
|
1664
|
-
typeorm.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
1817
|
+
typeorm$1.ManyToOne('locations'),
|
|
1818
|
+
typeorm$1.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
1665
1819
|
tslib.__metadata("design:type", exports.LocationEntityClass)
|
|
1666
1820
|
], exports.ReclassifyInventoryOrderItemEntityClass.prototype, "location", void 0);
|
|
1667
1821
|
tslib.__decorate([
|
|
1668
|
-
typeorm.ManyToOne('loaders'),
|
|
1669
|
-
typeorm.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1822
|
+
typeorm$1.ManyToOne('loaders'),
|
|
1823
|
+
typeorm$1.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1670
1824
|
tslib.__metadata("design:type", exports.LoadersEntityClass)
|
|
1671
1825
|
], exports.ReclassifyInventoryOrderItemEntityClass.prototype, "loader", void 0);
|
|
1672
1826
|
tslib.__decorate([
|
|
1673
|
-
typeorm.ManyToOne('reclassify_inventory_orders', (entity) => entity.items),
|
|
1674
|
-
typeorm.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1827
|
+
typeorm$1.ManyToOne('reclassify_inventory_orders', (entity) => entity.items),
|
|
1828
|
+
typeorm$1.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1675
1829
|
tslib.__metadata("design:type", exports.ReclassifyInventoryOrderEntityClass)
|
|
1676
1830
|
], exports.ReclassifyInventoryOrderItemEntityClass.prototype, "order", void 0);
|
|
1677
1831
|
tslib.__decorate([
|
|
1678
|
-
typeorm.ManyToOne('reclassify_inventory_order_changes', (change) => change.item),
|
|
1832
|
+
typeorm$1.ManyToOne('reclassify_inventory_order_changes', (change) => change.item),
|
|
1679
1833
|
tslib.__metadata("design:type", Array)
|
|
1680
1834
|
], exports.ReclassifyInventoryOrderItemEntityClass.prototype, "changes", void 0);
|
|
1681
1835
|
exports.ReclassifyInventoryOrderItemEntityClass = tslib.__decorate([
|
|
1682
|
-
typeorm.Entity('reclassify_inventory_order_items'),
|
|
1683
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1836
|
+
typeorm$1.Entity('reclassify_inventory_order_items'),
|
|
1837
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1684
1838
|
], exports.ReclassifyInventoryOrderItemEntityClass);
|
|
1685
1839
|
|
|
1686
1840
|
const ReclassifyInventoryOrderChangeEntity = Symbol('ReclassifyInventoryOrderChangeEntity');
|
|
@@ -1692,29 +1846,29 @@ exports.ReclassifyInventoryOrderChangeEntityClass = class ReclassifyInventoryOrd
|
|
|
1692
1846
|
item;
|
|
1693
1847
|
};
|
|
1694
1848
|
tslib.__decorate([
|
|
1695
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1849
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1696
1850
|
tslib.__metadata("design:type", String)
|
|
1697
1851
|
], exports.ReclassifyInventoryOrderChangeEntityClass.prototype, "id", void 0);
|
|
1698
1852
|
tslib.__decorate([
|
|
1699
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1853
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1700
1854
|
tslib.__metadata("design:type", String)
|
|
1701
1855
|
], exports.ReclassifyInventoryOrderChangeEntityClass.prototype, "itemId", void 0);
|
|
1702
1856
|
tslib.__decorate([
|
|
1703
|
-
typeorm.Column({ type: 'numeric' }),
|
|
1857
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1704
1858
|
tslib.__metadata("design:type", Number)
|
|
1705
1859
|
], exports.ReclassifyInventoryOrderChangeEntityClass.prototype, "quantityChanged", void 0);
|
|
1706
1860
|
tslib.__decorate([
|
|
1707
|
-
typeorm.OneToOne('orders'),
|
|
1708
|
-
typeorm.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
1861
|
+
typeorm$1.OneToOne('orders'),
|
|
1862
|
+
typeorm$1.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
1709
1863
|
tslib.__metadata("design:type", wmsBaseNestjsModule.OrderEntity)
|
|
1710
1864
|
], exports.ReclassifyInventoryOrderChangeEntityClass.prototype, "order", void 0);
|
|
1711
1865
|
tslib.__decorate([
|
|
1712
|
-
typeorm.ManyToOne('reclassify_inventory_order_items', (item) => item.changes),
|
|
1713
|
-
typeorm.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
1866
|
+
typeorm$1.ManyToOne('reclassify_inventory_order_items', (item) => item.changes),
|
|
1867
|
+
typeorm$1.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
1714
1868
|
tslib.__metadata("design:type", exports.ReclassifyInventoryOrderItemEntityClass)
|
|
1715
1869
|
], exports.ReclassifyInventoryOrderChangeEntityClass.prototype, "item", void 0);
|
|
1716
1870
|
exports.ReclassifyInventoryOrderChangeEntityClass = tslib.__decorate([
|
|
1717
|
-
typeorm.Entity('reclassify_inventory_order_changes')
|
|
1871
|
+
typeorm$1.Entity('reclassify_inventory_order_changes')
|
|
1718
1872
|
], exports.ReclassifyInventoryOrderChangeEntityClass);
|
|
1719
1873
|
|
|
1720
1874
|
const TransferVendorOrderEntity = Symbol('TransferVendorOrderEntity');
|
|
@@ -1725,25 +1879,25 @@ exports.TransferVendorOrderEntityClass = class TransferVendorOrderEntityClass {
|
|
|
1725
1879
|
items;
|
|
1726
1880
|
};
|
|
1727
1881
|
tslib.__decorate([
|
|
1728
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1882
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1729
1883
|
tslib.__metadata("design:type", String)
|
|
1730
1884
|
], exports.TransferVendorOrderEntityClass.prototype, "id", void 0);
|
|
1731
1885
|
tslib.__decorate([
|
|
1732
|
-
typeorm.Column({ type: 'varchar', unique: true }),
|
|
1733
|
-
typeorm.Index(),
|
|
1886
|
+
typeorm$1.Column({ type: 'varchar', unique: true }),
|
|
1887
|
+
typeorm$1.Index(),
|
|
1734
1888
|
tslib.__metadata("design:type", String)
|
|
1735
1889
|
], exports.TransferVendorOrderEntityClass.prototype, "key", void 0);
|
|
1736
1890
|
tslib.__decorate([
|
|
1737
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
1891
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
1738
1892
|
tslib.__metadata("design:type", Date)
|
|
1739
1893
|
], exports.TransferVendorOrderEntityClass.prototype, "createdAt", void 0);
|
|
1740
1894
|
tslib.__decorate([
|
|
1741
|
-
typeorm.OneToMany('transfer_vendor_order_items', (entity) => entity.order),
|
|
1895
|
+
typeorm$1.OneToMany('transfer_vendor_order_items', (entity) => entity.order),
|
|
1742
1896
|
tslib.__metadata("design:type", Array)
|
|
1743
1897
|
], exports.TransferVendorOrderEntityClass.prototype, "items", void 0);
|
|
1744
1898
|
exports.TransferVendorOrderEntityClass = tslib.__decorate([
|
|
1745
|
-
typeorm.Entity('transfer_vendor_orders'),
|
|
1746
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1899
|
+
typeorm$1.Entity('transfer_vendor_orders'),
|
|
1900
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1747
1901
|
], exports.TransferVendorOrderEntityClass);
|
|
1748
1902
|
|
|
1749
1903
|
const TransferVendorOrderItemEntity = Symbol('TransferVendorOrderItemEntity');
|
|
@@ -1763,69 +1917,69 @@ exports.TransferVendorOrderItemEntityClass = class TransferVendorOrderItemEntity
|
|
|
1763
1917
|
changes;
|
|
1764
1918
|
};
|
|
1765
1919
|
tslib.__decorate([
|
|
1766
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1920
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1767
1921
|
tslib.__metadata("design:type", String)
|
|
1768
1922
|
], exports.TransferVendorOrderItemEntityClass.prototype, "id", void 0);
|
|
1769
1923
|
tslib.__decorate([
|
|
1770
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1771
|
-
typeorm.Index(),
|
|
1924
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1925
|
+
typeorm$1.Index(),
|
|
1772
1926
|
tslib.__metadata("design:type", String)
|
|
1773
1927
|
], exports.TransferVendorOrderItemEntityClass.prototype, "materialId", void 0);
|
|
1774
1928
|
tslib.__decorate([
|
|
1775
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1776
|
-
typeorm.Index(),
|
|
1929
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1930
|
+
typeorm$1.Index(),
|
|
1777
1931
|
tslib.__metadata("design:type", String)
|
|
1778
1932
|
], exports.TransferVendorOrderItemEntityClass.prototype, "batchId", void 0);
|
|
1779
1933
|
tslib.__decorate([
|
|
1780
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1781
|
-
typeorm.Index(),
|
|
1934
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1935
|
+
typeorm$1.Index(),
|
|
1782
1936
|
tslib.__metadata("design:type", Object)
|
|
1783
1937
|
], exports.TransferVendorOrderItemEntityClass.prototype, "unitId", void 0);
|
|
1784
1938
|
tslib.__decorate([
|
|
1785
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1786
|
-
typeorm.Index(),
|
|
1939
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1940
|
+
typeorm$1.Index(),
|
|
1787
1941
|
tslib.__metadata("design:type", Object)
|
|
1788
1942
|
], exports.TransferVendorOrderItemEntityClass.prototype, "locationId", void 0);
|
|
1789
1943
|
tslib.__decorate([
|
|
1790
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1791
|
-
typeorm.Index(),
|
|
1944
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
1945
|
+
typeorm$1.Index(),
|
|
1792
1946
|
tslib.__metadata("design:type", Object)
|
|
1793
1947
|
], exports.TransferVendorOrderItemEntityClass.prototype, "loaderId", void 0);
|
|
1794
1948
|
tslib.__decorate([
|
|
1795
|
-
typeorm.Column({ type: 'varchar' }),
|
|
1949
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
1796
1950
|
tslib.__metadata("design:type", String)
|
|
1797
1951
|
], exports.TransferVendorOrderItemEntityClass.prototype, "vendorId", void 0);
|
|
1798
1952
|
tslib.__decorate([
|
|
1799
|
-
typeorm.Column({ type: 'numeric' }),
|
|
1953
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1800
1954
|
tslib.__metadata("design:type", Number)
|
|
1801
1955
|
], exports.TransferVendorOrderItemEntityClass.prototype, "targetTransferredQuantity", void 0);
|
|
1802
1956
|
tslib.__decorate([
|
|
1803
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1804
|
-
typeorm.Index(),
|
|
1957
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1958
|
+
typeorm$1.Index(),
|
|
1805
1959
|
tslib.__metadata("design:type", String)
|
|
1806
1960
|
], exports.TransferVendorOrderItemEntityClass.prototype, "orderId", void 0);
|
|
1807
1961
|
tslib.__decorate([
|
|
1808
|
-
typeorm.ManyToOne('locations'),
|
|
1809
|
-
typeorm.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
1962
|
+
typeorm$1.ManyToOne('locations'),
|
|
1963
|
+
typeorm$1.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
1810
1964
|
tslib.__metadata("design:type", exports.LocationEntityClass)
|
|
1811
1965
|
], exports.TransferVendorOrderItemEntityClass.prototype, "location", void 0);
|
|
1812
1966
|
tslib.__decorate([
|
|
1813
|
-
typeorm.ManyToOne('loaders'),
|
|
1814
|
-
typeorm.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1967
|
+
typeorm$1.ManyToOne('loaders'),
|
|
1968
|
+
typeorm$1.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1815
1969
|
tslib.__metadata("design:type", exports.LoadersEntityClass)
|
|
1816
1970
|
], exports.TransferVendorOrderItemEntityClass.prototype, "loader", void 0);
|
|
1817
1971
|
tslib.__decorate([
|
|
1818
|
-
typeorm.ManyToOne('transfer_vendor_orders', (entity) => entity.items),
|
|
1819
|
-
typeorm.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1972
|
+
typeorm$1.ManyToOne('transfer_vendor_orders', (entity) => entity.items),
|
|
1973
|
+
typeorm$1.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1820
1974
|
tslib.__metadata("design:type", exports.TransferVendorOrderEntityClass)
|
|
1821
1975
|
], exports.TransferVendorOrderItemEntityClass.prototype, "order", void 0);
|
|
1822
1976
|
tslib.__decorate([
|
|
1823
|
-
typeorm.ManyToOne('transfer_vendor_order_changes', (change) => change.item),
|
|
1977
|
+
typeorm$1.ManyToOne('transfer_vendor_order_changes', (change) => change.item),
|
|
1824
1978
|
tslib.__metadata("design:type", Array)
|
|
1825
1979
|
], exports.TransferVendorOrderItemEntityClass.prototype, "changes", void 0);
|
|
1826
1980
|
exports.TransferVendorOrderItemEntityClass = tslib.__decorate([
|
|
1827
|
-
typeorm.Entity('transfer_vendor_order_items'),
|
|
1828
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1981
|
+
typeorm$1.Entity('transfer_vendor_order_items'),
|
|
1982
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1829
1983
|
], exports.TransferVendorOrderItemEntityClass);
|
|
1830
1984
|
|
|
1831
1985
|
const TransferVendorOrderChangeEntity = Symbol('TransferVendorOrderChangeEntity');
|
|
@@ -1837,29 +1991,29 @@ exports.TransferVendorOrderChangeEntityClass = class TransferVendorOrderChangeEn
|
|
|
1837
1991
|
item;
|
|
1838
1992
|
};
|
|
1839
1993
|
tslib.__decorate([
|
|
1840
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
1994
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1841
1995
|
tslib.__metadata("design:type", String)
|
|
1842
1996
|
], exports.TransferVendorOrderChangeEntityClass.prototype, "id", void 0);
|
|
1843
1997
|
tslib.__decorate([
|
|
1844
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1998
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1845
1999
|
tslib.__metadata("design:type", String)
|
|
1846
2000
|
], exports.TransferVendorOrderChangeEntityClass.prototype, "itemId", void 0);
|
|
1847
2001
|
tslib.__decorate([
|
|
1848
|
-
typeorm.Column({ type: 'numeric' }),
|
|
2002
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1849
2003
|
tslib.__metadata("design:type", Number)
|
|
1850
2004
|
], exports.TransferVendorOrderChangeEntityClass.prototype, "quantityChanged", void 0);
|
|
1851
2005
|
tslib.__decorate([
|
|
1852
|
-
typeorm.OneToOne('orders'),
|
|
1853
|
-
typeorm.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
2006
|
+
typeorm$1.OneToOne('orders'),
|
|
2007
|
+
typeorm$1.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
1854
2008
|
tslib.__metadata("design:type", wmsBaseNestjsModule.OrderEntity)
|
|
1855
2009
|
], exports.TransferVendorOrderChangeEntityClass.prototype, "order", void 0);
|
|
1856
2010
|
tslib.__decorate([
|
|
1857
|
-
typeorm.ManyToOne('transfer_vendor_order_items', (item) => item.changes),
|
|
1858
|
-
typeorm.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
2011
|
+
typeorm$1.ManyToOne('transfer_vendor_order_items', (item) => item.changes),
|
|
2012
|
+
typeorm$1.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
1859
2013
|
tslib.__metadata("design:type", exports.TransferVendorOrderItemEntityClass)
|
|
1860
2014
|
], exports.TransferVendorOrderChangeEntityClass.prototype, "item", void 0);
|
|
1861
2015
|
exports.TransferVendorOrderChangeEntityClass = tslib.__decorate([
|
|
1862
|
-
typeorm.Entity('transfer_vendor_order_changes')
|
|
2016
|
+
typeorm$1.Entity('transfer_vendor_order_changes')
|
|
1863
2017
|
], exports.TransferVendorOrderChangeEntityClass);
|
|
1864
2018
|
|
|
1865
2019
|
const QualityInspectionOrderEntity = Symbol('QualityInspectionOrderEntity');
|
|
@@ -1871,29 +2025,29 @@ exports.QualityInspectionOrderEntityClass = class QualityInspectionOrderEntityCl
|
|
|
1871
2025
|
items;
|
|
1872
2026
|
};
|
|
1873
2027
|
tslib.__decorate([
|
|
1874
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
2028
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1875
2029
|
tslib.__metadata("design:type", String)
|
|
1876
2030
|
], exports.QualityInspectionOrderEntityClass.prototype, "id", void 0);
|
|
1877
2031
|
tslib.__decorate([
|
|
1878
|
-
typeorm.Column({ type: 'varchar', unique: true }),
|
|
1879
|
-
typeorm.Index(),
|
|
2032
|
+
typeorm$1.Column({ type: 'varchar', unique: true }),
|
|
2033
|
+
typeorm$1.Index(),
|
|
1880
2034
|
tslib.__metadata("design:type", String)
|
|
1881
2035
|
], exports.QualityInspectionOrderEntityClass.prototype, "key", void 0);
|
|
1882
2036
|
tslib.__decorate([
|
|
1883
|
-
typeorm.Column({ type: 'text', nullable: true }),
|
|
2037
|
+
typeorm$1.Column({ type: 'text', nullable: true }),
|
|
1884
2038
|
tslib.__metadata("design:type", Object)
|
|
1885
2039
|
], exports.QualityInspectionOrderEntityClass.prototype, "note", void 0);
|
|
1886
2040
|
tslib.__decorate([
|
|
1887
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
2041
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
1888
2042
|
tslib.__metadata("design:type", Date)
|
|
1889
2043
|
], exports.QualityInspectionOrderEntityClass.prototype, "createdAt", void 0);
|
|
1890
2044
|
tslib.__decorate([
|
|
1891
|
-
typeorm.OneToMany('quality_inspection_order_items', (entity) => entity.order),
|
|
2045
|
+
typeorm$1.OneToMany('quality_inspection_order_items', (entity) => entity.order),
|
|
1892
2046
|
tslib.__metadata("design:type", Array)
|
|
1893
2047
|
], exports.QualityInspectionOrderEntityClass.prototype, "items", void 0);
|
|
1894
2048
|
exports.QualityInspectionOrderEntityClass = tslib.__decorate([
|
|
1895
|
-
typeorm.Entity('quality_inspection_orders'),
|
|
1896
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
2049
|
+
typeorm$1.Entity('quality_inspection_orders'),
|
|
2050
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1897
2051
|
], exports.QualityInspectionOrderEntityClass);
|
|
1898
2052
|
|
|
1899
2053
|
const QualityInspectionOrderItemEntity = Symbol('QualityInspectionOrderItemEntity');
|
|
@@ -1912,65 +2066,65 @@ exports.QualityInspectionOrderItemEntityClass = class QualityInspectionOrderItem
|
|
|
1912
2066
|
changes;
|
|
1913
2067
|
};
|
|
1914
2068
|
tslib.__decorate([
|
|
1915
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
2069
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1916
2070
|
tslib.__metadata("design:type", String)
|
|
1917
2071
|
], exports.QualityInspectionOrderItemEntityClass.prototype, "id", void 0);
|
|
1918
2072
|
tslib.__decorate([
|
|
1919
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1920
|
-
typeorm.Index(),
|
|
2073
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
2074
|
+
typeorm$1.Index(),
|
|
1921
2075
|
tslib.__metadata("design:type", String)
|
|
1922
2076
|
], exports.QualityInspectionOrderItemEntityClass.prototype, "materialId", void 0);
|
|
1923
2077
|
tslib.__decorate([
|
|
1924
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1925
|
-
typeorm.Index(),
|
|
2078
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
2079
|
+
typeorm$1.Index(),
|
|
1926
2080
|
tslib.__metadata("design:type", String)
|
|
1927
2081
|
], exports.QualityInspectionOrderItemEntityClass.prototype, "batchId", void 0);
|
|
1928
2082
|
tslib.__decorate([
|
|
1929
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1930
|
-
typeorm.Index(),
|
|
2083
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
2084
|
+
typeorm$1.Index(),
|
|
1931
2085
|
tslib.__metadata("design:type", Object)
|
|
1932
2086
|
], exports.QualityInspectionOrderItemEntityClass.prototype, "unitId", void 0);
|
|
1933
2087
|
tslib.__decorate([
|
|
1934
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1935
|
-
typeorm.Index(),
|
|
2088
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
2089
|
+
typeorm$1.Index(),
|
|
1936
2090
|
tslib.__metadata("design:type", Object)
|
|
1937
2091
|
], exports.QualityInspectionOrderItemEntityClass.prototype, "locationId", void 0);
|
|
1938
2092
|
tslib.__decorate([
|
|
1939
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
1940
|
-
typeorm.Index(),
|
|
2093
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
2094
|
+
typeorm$1.Index(),
|
|
1941
2095
|
tslib.__metadata("design:type", Object)
|
|
1942
2096
|
], exports.QualityInspectionOrderItemEntityClass.prototype, "loaderId", void 0);
|
|
1943
2097
|
tslib.__decorate([
|
|
1944
|
-
typeorm.Column({ type: 'numeric' }),
|
|
2098
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1945
2099
|
tslib.__metadata("design:type", Number)
|
|
1946
2100
|
], exports.QualityInspectionOrderItemEntityClass.prototype, "targetInspectedQuantity", void 0);
|
|
1947
2101
|
tslib.__decorate([
|
|
1948
|
-
typeorm.Column({ type: 'uuid' }),
|
|
1949
|
-
typeorm.Index(),
|
|
2102
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
2103
|
+
typeorm$1.Index(),
|
|
1950
2104
|
tslib.__metadata("design:type", String)
|
|
1951
2105
|
], exports.QualityInspectionOrderItemEntityClass.prototype, "orderId", void 0);
|
|
1952
2106
|
tslib.__decorate([
|
|
1953
|
-
typeorm.ManyToOne('locations'),
|
|
1954
|
-
typeorm.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
2107
|
+
typeorm$1.ManyToOne('locations'),
|
|
2108
|
+
typeorm$1.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
1955
2109
|
tslib.__metadata("design:type", exports.LocationEntityClass)
|
|
1956
2110
|
], exports.QualityInspectionOrderItemEntityClass.prototype, "location", void 0);
|
|
1957
2111
|
tslib.__decorate([
|
|
1958
|
-
typeorm.ManyToOne('loaders'),
|
|
1959
|
-
typeorm.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
2112
|
+
typeorm$1.ManyToOne('loaders'),
|
|
2113
|
+
typeorm$1.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
1960
2114
|
tslib.__metadata("design:type", exports.LoadersEntityClass)
|
|
1961
2115
|
], exports.QualityInspectionOrderItemEntityClass.prototype, "loader", void 0);
|
|
1962
2116
|
tslib.__decorate([
|
|
1963
|
-
typeorm.ManyToOne('quality_inspection_orders', (entity) => entity.items),
|
|
1964
|
-
typeorm.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
2117
|
+
typeorm$1.ManyToOne('quality_inspection_orders', (entity) => entity.items),
|
|
2118
|
+
typeorm$1.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
1965
2119
|
tslib.__metadata("design:type", exports.QualityInspectionOrderEntityClass)
|
|
1966
2120
|
], exports.QualityInspectionOrderItemEntityClass.prototype, "order", void 0);
|
|
1967
2121
|
tslib.__decorate([
|
|
1968
|
-
typeorm.ManyToOne('quality_inspection_order_changes', (change) => change.item),
|
|
2122
|
+
typeorm$1.ManyToOne('quality_inspection_order_changes', (change) => change.item),
|
|
1969
2123
|
tslib.__metadata("design:type", Array)
|
|
1970
2124
|
], exports.QualityInspectionOrderItemEntityClass.prototype, "changes", void 0);
|
|
1971
2125
|
exports.QualityInspectionOrderItemEntityClass = tslib.__decorate([
|
|
1972
|
-
typeorm.Entity('quality_inspection_order_items'),
|
|
1973
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
2126
|
+
typeorm$1.Entity('quality_inspection_order_items'),
|
|
2127
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
1974
2128
|
], exports.QualityInspectionOrderItemEntityClass);
|
|
1975
2129
|
|
|
1976
2130
|
const QualityInspectionOrderChangeEntity = Symbol('QualityInspectionOrderChangeEntity');
|
|
@@ -1983,33 +2137,33 @@ exports.QualityInspectionOrderChangeEntityClass = class QualityInspectionOrderCh
|
|
|
1983
2137
|
item;
|
|
1984
2138
|
};
|
|
1985
2139
|
tslib.__decorate([
|
|
1986
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
2140
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
1987
2141
|
tslib.__metadata("design:type", String)
|
|
1988
2142
|
], exports.QualityInspectionOrderChangeEntityClass.prototype, "id", void 0);
|
|
1989
2143
|
tslib.__decorate([
|
|
1990
|
-
typeorm.Column({ type: 'uuid' }),
|
|
2144
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
1991
2145
|
tslib.__metadata("design:type", String)
|
|
1992
2146
|
], exports.QualityInspectionOrderChangeEntityClass.prototype, "itemId", void 0);
|
|
1993
2147
|
tslib.__decorate([
|
|
1994
|
-
typeorm.Column({ type: 'numeric' }),
|
|
2148
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
1995
2149
|
tslib.__metadata("design:type", Number)
|
|
1996
2150
|
], exports.QualityInspectionOrderChangeEntityClass.prototype, "quantityChanged", void 0);
|
|
1997
2151
|
tslib.__decorate([
|
|
1998
|
-
typeorm.Column({ type: 'boolean', nullable: true }),
|
|
2152
|
+
typeorm$1.Column({ type: 'boolean', nullable: true }),
|
|
1999
2153
|
tslib.__metadata("design:type", Object)
|
|
2000
2154
|
], exports.QualityInspectionOrderChangeEntityClass.prototype, "result", void 0);
|
|
2001
2155
|
tslib.__decorate([
|
|
2002
|
-
typeorm.OneToOne('orders'),
|
|
2003
|
-
typeorm.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
2156
|
+
typeorm$1.OneToOne('orders'),
|
|
2157
|
+
typeorm$1.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
2004
2158
|
tslib.__metadata("design:type", wmsBaseNestjsModule.OrderEntity)
|
|
2005
2159
|
], exports.QualityInspectionOrderChangeEntityClass.prototype, "order", void 0);
|
|
2006
2160
|
tslib.__decorate([
|
|
2007
|
-
typeorm.ManyToOne('quality_inspection_order_items', (item) => item.changes),
|
|
2008
|
-
typeorm.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
2161
|
+
typeorm$1.ManyToOne('quality_inspection_order_items', (item) => item.changes),
|
|
2162
|
+
typeorm$1.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
2009
2163
|
tslib.__metadata("design:type", exports.QualityInspectionOrderItemEntityClass)
|
|
2010
2164
|
], exports.QualityInspectionOrderChangeEntityClass.prototype, "item", void 0);
|
|
2011
2165
|
exports.QualityInspectionOrderChangeEntityClass = tslib.__decorate([
|
|
2012
|
-
typeorm.Entity('quality_inspection_order_changes')
|
|
2166
|
+
typeorm$1.Entity('quality_inspection_order_changes')
|
|
2013
2167
|
], exports.QualityInspectionOrderChangeEntityClass);
|
|
2014
2168
|
|
|
2015
2169
|
const TransferCustomerOrderEntity = Symbol('TransferCustomerOrderEntity');
|
|
@@ -2020,25 +2174,25 @@ exports.TransferCustomerOrderEntityClass = class TransferCustomerOrderEntityClas
|
|
|
2020
2174
|
items;
|
|
2021
2175
|
};
|
|
2022
2176
|
tslib.__decorate([
|
|
2023
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
2177
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
2024
2178
|
tslib.__metadata("design:type", String)
|
|
2025
2179
|
], exports.TransferCustomerOrderEntityClass.prototype, "id", void 0);
|
|
2026
2180
|
tslib.__decorate([
|
|
2027
|
-
typeorm.Column({ type: 'varchar', unique: true }),
|
|
2028
|
-
typeorm.Index(),
|
|
2181
|
+
typeorm$1.Column({ type: 'varchar', unique: true }),
|
|
2182
|
+
typeorm$1.Index(),
|
|
2029
2183
|
tslib.__metadata("design:type", String)
|
|
2030
2184
|
], exports.TransferCustomerOrderEntityClass.prototype, "key", void 0);
|
|
2031
2185
|
tslib.__decorate([
|
|
2032
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
2186
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
2033
2187
|
tslib.__metadata("design:type", Date)
|
|
2034
2188
|
], exports.TransferCustomerOrderEntityClass.prototype, "createdAt", void 0);
|
|
2035
2189
|
tslib.__decorate([
|
|
2036
|
-
typeorm.OneToMany('transfer_customer_order_items', (entity) => entity.order),
|
|
2190
|
+
typeorm$1.OneToMany('transfer_customer_order_items', (entity) => entity.order),
|
|
2037
2191
|
tslib.__metadata("design:type", Array)
|
|
2038
2192
|
], exports.TransferCustomerOrderEntityClass.prototype, "items", void 0);
|
|
2039
2193
|
exports.TransferCustomerOrderEntityClass = tslib.__decorate([
|
|
2040
|
-
typeorm.Entity('transfer_customer_orders'),
|
|
2041
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
2194
|
+
typeorm$1.Entity('transfer_customer_orders'),
|
|
2195
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
2042
2196
|
], exports.TransferCustomerOrderEntityClass);
|
|
2043
2197
|
|
|
2044
2198
|
const TransferCustomerOrderItemEntity = Symbol('TransferCustomerOrderItemEntity');
|
|
@@ -2058,69 +2212,69 @@ exports.TransferCustomerOrderItemEntityClass = class TransferCustomerOrderItemEn
|
|
|
2058
2212
|
changes;
|
|
2059
2213
|
};
|
|
2060
2214
|
tslib.__decorate([
|
|
2061
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
2215
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
2062
2216
|
tslib.__metadata("design:type", String)
|
|
2063
2217
|
], exports.TransferCustomerOrderItemEntityClass.prototype, "id", void 0);
|
|
2064
2218
|
tslib.__decorate([
|
|
2065
|
-
typeorm.Column({ type: 'uuid' }),
|
|
2066
|
-
typeorm.Index(),
|
|
2219
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
2220
|
+
typeorm$1.Index(),
|
|
2067
2221
|
tslib.__metadata("design:type", String)
|
|
2068
2222
|
], exports.TransferCustomerOrderItemEntityClass.prototype, "materialId", void 0);
|
|
2069
2223
|
tslib.__decorate([
|
|
2070
|
-
typeorm.Column({ type: 'uuid' }),
|
|
2071
|
-
typeorm.Index(),
|
|
2224
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
2225
|
+
typeorm$1.Index(),
|
|
2072
2226
|
tslib.__metadata("design:type", String)
|
|
2073
2227
|
], exports.TransferCustomerOrderItemEntityClass.prototype, "batchId", void 0);
|
|
2074
2228
|
tslib.__decorate([
|
|
2075
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
2076
|
-
typeorm.Index(),
|
|
2229
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
2230
|
+
typeorm$1.Index(),
|
|
2077
2231
|
tslib.__metadata("design:type", Object)
|
|
2078
2232
|
], exports.TransferCustomerOrderItemEntityClass.prototype, "unitId", void 0);
|
|
2079
2233
|
tslib.__decorate([
|
|
2080
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
2081
|
-
typeorm.Index(),
|
|
2234
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
2235
|
+
typeorm$1.Index(),
|
|
2082
2236
|
tslib.__metadata("design:type", Object)
|
|
2083
2237
|
], exports.TransferCustomerOrderItemEntityClass.prototype, "locationId", void 0);
|
|
2084
2238
|
tslib.__decorate([
|
|
2085
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
2086
|
-
typeorm.Index(),
|
|
2239
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
2240
|
+
typeorm$1.Index(),
|
|
2087
2241
|
tslib.__metadata("design:type", Object)
|
|
2088
2242
|
], exports.TransferCustomerOrderItemEntityClass.prototype, "loaderId", void 0);
|
|
2089
2243
|
tslib.__decorate([
|
|
2090
|
-
typeorm.Column({ type: 'varchar' }),
|
|
2244
|
+
typeorm$1.Column({ type: 'varchar' }),
|
|
2091
2245
|
tslib.__metadata("design:type", String)
|
|
2092
2246
|
], exports.TransferCustomerOrderItemEntityClass.prototype, "customerId", void 0);
|
|
2093
2247
|
tslib.__decorate([
|
|
2094
|
-
typeorm.Column({ type: 'numeric' }),
|
|
2248
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
2095
2249
|
tslib.__metadata("design:type", Number)
|
|
2096
2250
|
], exports.TransferCustomerOrderItemEntityClass.prototype, "targetTransferredQuantity", void 0);
|
|
2097
2251
|
tslib.__decorate([
|
|
2098
|
-
typeorm.Column({ type: 'uuid' }),
|
|
2099
|
-
typeorm.Index(),
|
|
2252
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
2253
|
+
typeorm$1.Index(),
|
|
2100
2254
|
tslib.__metadata("design:type", String)
|
|
2101
2255
|
], exports.TransferCustomerOrderItemEntityClass.prototype, "orderId", void 0);
|
|
2102
2256
|
tslib.__decorate([
|
|
2103
|
-
typeorm.ManyToOne('locations'),
|
|
2104
|
-
typeorm.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
2257
|
+
typeorm$1.ManyToOne('locations'),
|
|
2258
|
+
typeorm$1.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
2105
2259
|
tslib.__metadata("design:type", exports.LocationEntityClass)
|
|
2106
2260
|
], exports.TransferCustomerOrderItemEntityClass.prototype, "location", void 0);
|
|
2107
2261
|
tslib.__decorate([
|
|
2108
|
-
typeorm.ManyToOne('loaders'),
|
|
2109
|
-
typeorm.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
2262
|
+
typeorm$1.ManyToOne('loaders'),
|
|
2263
|
+
typeorm$1.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
2110
2264
|
tslib.__metadata("design:type", exports.LoadersEntityClass)
|
|
2111
2265
|
], exports.TransferCustomerOrderItemEntityClass.prototype, "loader", void 0);
|
|
2112
2266
|
tslib.__decorate([
|
|
2113
|
-
typeorm.ManyToOne('transfer_customer_orders', (entity) => entity.items),
|
|
2114
|
-
typeorm.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
2267
|
+
typeorm$1.ManyToOne('transfer_customer_orders', (entity) => entity.items),
|
|
2268
|
+
typeorm$1.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
2115
2269
|
tslib.__metadata("design:type", exports.TransferCustomerOrderEntityClass)
|
|
2116
2270
|
], exports.TransferCustomerOrderItemEntityClass.prototype, "order", void 0);
|
|
2117
2271
|
tslib.__decorate([
|
|
2118
|
-
typeorm.ManyToOne('transfer_customer_order_changes', (change) => change.item),
|
|
2272
|
+
typeorm$1.ManyToOne('transfer_customer_order_changes', (change) => change.item),
|
|
2119
2273
|
tslib.__metadata("design:type", Array)
|
|
2120
2274
|
], exports.TransferCustomerOrderItemEntityClass.prototype, "changes", void 0);
|
|
2121
2275
|
exports.TransferCustomerOrderItemEntityClass = tslib.__decorate([
|
|
2122
|
-
typeorm.Entity('transfer_customer_order_items'),
|
|
2123
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
2276
|
+
typeorm$1.Entity('transfer_customer_order_items'),
|
|
2277
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
2124
2278
|
], exports.TransferCustomerOrderItemEntityClass);
|
|
2125
2279
|
|
|
2126
2280
|
const TransferCustomerOrderChangeEntity = Symbol('TransferCustomerOrderChangeEntity');
|
|
@@ -2132,29 +2286,29 @@ exports.TransferCustomerOrderChangeEntityClass = class TransferCustomerOrderChan
|
|
|
2132
2286
|
item;
|
|
2133
2287
|
};
|
|
2134
2288
|
tslib.__decorate([
|
|
2135
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
2289
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
2136
2290
|
tslib.__metadata("design:type", String)
|
|
2137
2291
|
], exports.TransferCustomerOrderChangeEntityClass.prototype, "id", void 0);
|
|
2138
2292
|
tslib.__decorate([
|
|
2139
|
-
typeorm.Column({ type: 'uuid' }),
|
|
2293
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
2140
2294
|
tslib.__metadata("design:type", String)
|
|
2141
2295
|
], exports.TransferCustomerOrderChangeEntityClass.prototype, "itemId", void 0);
|
|
2142
2296
|
tslib.__decorate([
|
|
2143
|
-
typeorm.Column({ type: 'numeric' }),
|
|
2297
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
2144
2298
|
tslib.__metadata("design:type", Number)
|
|
2145
2299
|
], exports.TransferCustomerOrderChangeEntityClass.prototype, "quantityChanged", void 0);
|
|
2146
2300
|
tslib.__decorate([
|
|
2147
|
-
typeorm.OneToOne('orders'),
|
|
2148
|
-
typeorm.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
2301
|
+
typeorm$1.OneToOne('orders'),
|
|
2302
|
+
typeorm$1.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
2149
2303
|
tslib.__metadata("design:type", wmsBaseNestjsModule.OrderEntity)
|
|
2150
2304
|
], exports.TransferCustomerOrderChangeEntityClass.prototype, "order", void 0);
|
|
2151
2305
|
tslib.__decorate([
|
|
2152
|
-
typeorm.ManyToOne('transfer_customer_order_items', (item) => item.changes),
|
|
2153
|
-
typeorm.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
2306
|
+
typeorm$1.ManyToOne('transfer_customer_order_items', (item) => item.changes),
|
|
2307
|
+
typeorm$1.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
2154
2308
|
tslib.__metadata("design:type", exports.TransferCustomerOrderItemEntityClass)
|
|
2155
2309
|
], exports.TransferCustomerOrderChangeEntityClass.prototype, "item", void 0);
|
|
2156
2310
|
exports.TransferCustomerOrderChangeEntityClass = tslib.__decorate([
|
|
2157
|
-
typeorm.Entity('transfer_customer_order_changes')
|
|
2311
|
+
typeorm$1.Entity('transfer_customer_order_changes')
|
|
2158
2312
|
], exports.TransferCustomerOrderChangeEntityClass);
|
|
2159
2313
|
|
|
2160
2314
|
const ScrapeOrderEntity = Symbol('ScrapeOrderEntity');
|
|
@@ -2165,25 +2319,25 @@ exports.ScrapeOrderEntityClass = class ScrapeOrderEntityClass {
|
|
|
2165
2319
|
items;
|
|
2166
2320
|
};
|
|
2167
2321
|
tslib.__decorate([
|
|
2168
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
2322
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
2169
2323
|
tslib.__metadata("design:type", String)
|
|
2170
2324
|
], exports.ScrapeOrderEntityClass.prototype, "id", void 0);
|
|
2171
2325
|
tslib.__decorate([
|
|
2172
|
-
typeorm.Column({ type: 'varchar', unique: true }),
|
|
2173
|
-
typeorm.Index(),
|
|
2326
|
+
typeorm$1.Column({ type: 'varchar', unique: true }),
|
|
2327
|
+
typeorm$1.Index(),
|
|
2174
2328
|
tslib.__metadata("design:type", String)
|
|
2175
2329
|
], exports.ScrapeOrderEntityClass.prototype, "key", void 0);
|
|
2176
2330
|
tslib.__decorate([
|
|
2177
|
-
typeorm.CreateDateColumn({ type: 'timestamptz' }),
|
|
2331
|
+
typeorm$1.CreateDateColumn({ type: 'timestamptz' }),
|
|
2178
2332
|
tslib.__metadata("design:type", Date)
|
|
2179
2333
|
], exports.ScrapeOrderEntityClass.prototype, "createdAt", void 0);
|
|
2180
2334
|
tslib.__decorate([
|
|
2181
|
-
typeorm.OneToMany('scrape_order_items', (entity) => entity.order),
|
|
2335
|
+
typeorm$1.OneToMany('scrape_order_items', (entity) => entity.order),
|
|
2182
2336
|
tslib.__metadata("design:type", Array)
|
|
2183
2337
|
], exports.ScrapeOrderEntityClass.prototype, "items", void 0);
|
|
2184
2338
|
exports.ScrapeOrderEntityClass = tslib.__decorate([
|
|
2185
|
-
typeorm.Entity('scrape_orders'),
|
|
2186
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
2339
|
+
typeorm$1.Entity('scrape_orders'),
|
|
2340
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
2187
2341
|
], exports.ScrapeOrderEntityClass);
|
|
2188
2342
|
|
|
2189
2343
|
const ScrapeOrderItemEntity = Symbol('ScrapeOrderItemEntity');
|
|
@@ -2202,65 +2356,65 @@ exports.ScrapeOrderItemEntityClass = class ScrapeOrderItemEntityClass {
|
|
|
2202
2356
|
changes;
|
|
2203
2357
|
};
|
|
2204
2358
|
tslib.__decorate([
|
|
2205
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
2359
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
2206
2360
|
tslib.__metadata("design:type", String)
|
|
2207
2361
|
], exports.ScrapeOrderItemEntityClass.prototype, "id", void 0);
|
|
2208
2362
|
tslib.__decorate([
|
|
2209
|
-
typeorm.Column({ type: 'uuid' }),
|
|
2210
|
-
typeorm.Index(),
|
|
2363
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
2364
|
+
typeorm$1.Index(),
|
|
2211
2365
|
tslib.__metadata("design:type", String)
|
|
2212
2366
|
], exports.ScrapeOrderItemEntityClass.prototype, "materialId", void 0);
|
|
2213
2367
|
tslib.__decorate([
|
|
2214
|
-
typeorm.Column({ type: 'uuid' }),
|
|
2215
|
-
typeorm.Index(),
|
|
2368
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
2369
|
+
typeorm$1.Index(),
|
|
2216
2370
|
tslib.__metadata("design:type", String)
|
|
2217
2371
|
], exports.ScrapeOrderItemEntityClass.prototype, "batchId", void 0);
|
|
2218
2372
|
tslib.__decorate([
|
|
2219
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
2220
|
-
typeorm.Index(),
|
|
2373
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
2374
|
+
typeorm$1.Index(),
|
|
2221
2375
|
tslib.__metadata("design:type", Object)
|
|
2222
2376
|
], exports.ScrapeOrderItemEntityClass.prototype, "unitId", void 0);
|
|
2223
2377
|
tslib.__decorate([
|
|
2224
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
2225
|
-
typeorm.Index(),
|
|
2378
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
2379
|
+
typeorm$1.Index(),
|
|
2226
2380
|
tslib.__metadata("design:type", Object)
|
|
2227
2381
|
], exports.ScrapeOrderItemEntityClass.prototype, "locationId", void 0);
|
|
2228
2382
|
tslib.__decorate([
|
|
2229
|
-
typeorm.Column({ type: 'uuid', nullable: true }),
|
|
2230
|
-
typeorm.Index(),
|
|
2383
|
+
typeorm$1.Column({ type: 'uuid', nullable: true }),
|
|
2384
|
+
typeorm$1.Index(),
|
|
2231
2385
|
tslib.__metadata("design:type", Object)
|
|
2232
2386
|
], exports.ScrapeOrderItemEntityClass.prototype, "loaderId", void 0);
|
|
2233
2387
|
tslib.__decorate([
|
|
2234
|
-
typeorm.Column({ type: 'numeric' }),
|
|
2388
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
2235
2389
|
tslib.__metadata("design:type", Number)
|
|
2236
2390
|
], exports.ScrapeOrderItemEntityClass.prototype, "targetScrapedQuantity", void 0);
|
|
2237
2391
|
tslib.__decorate([
|
|
2238
|
-
typeorm.Column({ type: 'uuid' }),
|
|
2239
|
-
typeorm.Index(),
|
|
2392
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
2393
|
+
typeorm$1.Index(),
|
|
2240
2394
|
tslib.__metadata("design:type", String)
|
|
2241
2395
|
], exports.ScrapeOrderItemEntityClass.prototype, "orderId", void 0);
|
|
2242
2396
|
tslib.__decorate([
|
|
2243
|
-
typeorm.ManyToOne('locations'),
|
|
2244
|
-
typeorm.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
2397
|
+
typeorm$1.ManyToOne('locations'),
|
|
2398
|
+
typeorm$1.JoinColumn({ name: 'locationId', referencedColumnName: 'id' }),
|
|
2245
2399
|
tslib.__metadata("design:type", exports.LocationEntityClass)
|
|
2246
2400
|
], exports.ScrapeOrderItemEntityClass.prototype, "location", void 0);
|
|
2247
2401
|
tslib.__decorate([
|
|
2248
|
-
typeorm.ManyToOne('loaders'),
|
|
2249
|
-
typeorm.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
2402
|
+
typeorm$1.ManyToOne('loaders'),
|
|
2403
|
+
typeorm$1.JoinColumn({ name: 'loaderId', referencedColumnName: 'id' }),
|
|
2250
2404
|
tslib.__metadata("design:type", exports.LoadersEntityClass)
|
|
2251
2405
|
], exports.ScrapeOrderItemEntityClass.prototype, "loader", void 0);
|
|
2252
2406
|
tslib.__decorate([
|
|
2253
|
-
typeorm.ManyToOne('scrape_orders', (entity) => entity.items),
|
|
2254
|
-
typeorm.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
2407
|
+
typeorm$1.ManyToOne('scrape_orders', (entity) => entity.items),
|
|
2408
|
+
typeorm$1.JoinColumn({ name: 'orderId', referencedColumnName: 'id' }),
|
|
2255
2409
|
tslib.__metadata("design:type", exports.ScrapeOrderEntityClass)
|
|
2256
2410
|
], exports.ScrapeOrderItemEntityClass.prototype, "order", void 0);
|
|
2257
2411
|
tslib.__decorate([
|
|
2258
|
-
typeorm.OneToMany('scrape_order_changes', (change) => change.item),
|
|
2412
|
+
typeorm$1.OneToMany('scrape_order_changes', (change) => change.item),
|
|
2259
2413
|
tslib.__metadata("design:type", Array)
|
|
2260
2414
|
], exports.ScrapeOrderItemEntityClass.prototype, "changes", void 0);
|
|
2261
2415
|
exports.ScrapeOrderItemEntityClass = tslib.__decorate([
|
|
2262
|
-
typeorm.Entity('scrape_order_items'),
|
|
2263
|
-
typeorm.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
2416
|
+
typeorm$1.Entity('scrape_order_items'),
|
|
2417
|
+
typeorm$1.TableInheritance({ column: { type: 'varchar', name: 'entityName' } })
|
|
2264
2418
|
], exports.ScrapeOrderItemEntityClass);
|
|
2265
2419
|
|
|
2266
2420
|
const ScrapeOrderChangeEntity = Symbol('ScrapeOrderChangeEntity');
|
|
@@ -2272,29 +2426,29 @@ exports.ScrapeOrderChangeEntityClass = class ScrapeOrderChangeEntityClass {
|
|
|
2272
2426
|
item;
|
|
2273
2427
|
};
|
|
2274
2428
|
tslib.__decorate([
|
|
2275
|
-
typeorm.PrimaryGeneratedColumn('uuid'),
|
|
2429
|
+
typeorm$1.PrimaryGeneratedColumn('uuid'),
|
|
2276
2430
|
tslib.__metadata("design:type", String)
|
|
2277
2431
|
], exports.ScrapeOrderChangeEntityClass.prototype, "id", void 0);
|
|
2278
2432
|
tslib.__decorate([
|
|
2279
|
-
typeorm.Column({ type: 'uuid' }),
|
|
2433
|
+
typeorm$1.Column({ type: 'uuid' }),
|
|
2280
2434
|
tslib.__metadata("design:type", String)
|
|
2281
2435
|
], exports.ScrapeOrderChangeEntityClass.prototype, "itemId", void 0);
|
|
2282
2436
|
tslib.__decorate([
|
|
2283
|
-
typeorm.Column({ type: 'numeric' }),
|
|
2437
|
+
typeorm$1.Column({ type: 'numeric' }),
|
|
2284
2438
|
tslib.__metadata("design:type", Number)
|
|
2285
2439
|
], exports.ScrapeOrderChangeEntityClass.prototype, "quantityChanged", void 0);
|
|
2286
2440
|
tslib.__decorate([
|
|
2287
|
-
typeorm.OneToOne('orders'),
|
|
2288
|
-
typeorm.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
2441
|
+
typeorm$1.OneToOne('orders'),
|
|
2442
|
+
typeorm$1.JoinColumn({ name: 'id', referencedColumnName: 'id' }),
|
|
2289
2443
|
tslib.__metadata("design:type", wmsBaseNestjsModule.OrderEntity)
|
|
2290
2444
|
], exports.ScrapeOrderChangeEntityClass.prototype, "order", void 0);
|
|
2291
2445
|
tslib.__decorate([
|
|
2292
|
-
typeorm.ManyToOne('scrape_order_items', (item) => item.changes),
|
|
2293
|
-
typeorm.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
2446
|
+
typeorm$1.ManyToOne('scrape_order_items', (item) => item.changes),
|
|
2447
|
+
typeorm$1.JoinColumn({ name: 'itemId', referencedColumnName: 'id' }),
|
|
2294
2448
|
tslib.__metadata("design:type", exports.ScrapeOrderItemEntityClass)
|
|
2295
2449
|
], exports.ScrapeOrderChangeEntityClass.prototype, "item", void 0);
|
|
2296
2450
|
exports.ScrapeOrderChangeEntityClass = tslib.__decorate([
|
|
2297
|
-
typeorm.Entity('scrape_order_changes')
|
|
2451
|
+
typeorm$1.Entity('scrape_order_changes')
|
|
2298
2452
|
], exports.ScrapeOrderChangeEntityClass);
|
|
2299
2453
|
|
|
2300
2454
|
const entities = [
|
|
@@ -2359,9 +2513,13 @@ let ModelsModule = class ModelsModule {
|
|
|
2359
2513
|
};
|
|
2360
2514
|
ModelsModule = tslib.__decorate([
|
|
2361
2515
|
common.Module({
|
|
2362
|
-
imports: [typeorm
|
|
2363
|
-
providers:
|
|
2364
|
-
|
|
2516
|
+
imports: [typeorm.TypeOrmModule.forFeature(entities.map(([_, entity]) => entity))],
|
|
2517
|
+
providers: [
|
|
2518
|
+
...ResolvedEntitiesProviders,
|
|
2519
|
+
exports.WmsEventCollector,
|
|
2520
|
+
StockChangeSubscriber,
|
|
2521
|
+
],
|
|
2522
|
+
exports: [typeorm.TypeOrmModule, ...ResolvedEntitiesProviders, exports.WmsEventCollector],
|
|
2365
2523
|
})
|
|
2366
2524
|
], ModelsModule);
|
|
2367
2525
|
|
|
@@ -2783,7 +2941,7 @@ exports.StockService = tslib.__decorate([
|
|
|
2783
2941
|
tslib.__param(1, common.Inject(StockEntity)),
|
|
2784
2942
|
tslib.__param(2, common.Inject(MaterialEntity)),
|
|
2785
2943
|
tslib.__param(3, common.Inject(WMS_CORE_MODULE_OPTIONS)),
|
|
2786
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource, Object, Object, Object])
|
|
2944
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource, Object, Object, Object])
|
|
2787
2945
|
], exports.StockService);
|
|
2788
2946
|
|
|
2789
2947
|
/**
|
|
@@ -2838,7 +2996,7 @@ exports.LoaderService = class LoaderService {
|
|
|
2838
2996
|
const loaderRepository = manager.getRepository(this.loaderEntity);
|
|
2839
2997
|
const loaderTypeRepository = manager.getRepository(this.loaderTypeEntity);
|
|
2840
2998
|
const typeMap = await loaderTypeRepository
|
|
2841
|
-
.findBy({ id: typeorm.In(options.map(({ typeId }) => typeId)) })
|
|
2999
|
+
.findBy({ id: typeorm$1.In(options.map(({ typeId }) => typeId)) })
|
|
2842
3000
|
.then((types) => new Map(types.map((t) => [t.id, t])));
|
|
2843
3001
|
const loaders = [];
|
|
2844
3002
|
await Promise.all(options.map(async (option) => {
|
|
@@ -3012,7 +3170,7 @@ exports.LoaderService = tslib.__decorate([
|
|
|
3012
3170
|
tslib.__param(1, common.Inject(LoadersEntity)),
|
|
3013
3171
|
tslib.__param(2, common.Inject(LoaderTypeEntity)),
|
|
3014
3172
|
tslib.__param(3, common.Inject(LoaderUnitEntity)),
|
|
3015
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource, Object, Object, Object])
|
|
3173
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource, Object, Object, Object])
|
|
3016
3174
|
], exports.LoaderService);
|
|
3017
3175
|
|
|
3018
3176
|
/**
|
|
@@ -3131,7 +3289,7 @@ exports.MaterialService = tslib.__decorate([
|
|
|
3131
3289
|
common.Injectable(),
|
|
3132
3290
|
tslib.__param(1, common.Inject(MaterialEntity)),
|
|
3133
3291
|
tslib.__param(2, common.Inject(MaterialUnitEntity)),
|
|
3134
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource, Object, Object])
|
|
3292
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource, Object, Object])
|
|
3135
3293
|
], exports.MaterialService);
|
|
3136
3294
|
|
|
3137
3295
|
exports.BatchService = class BatchService {
|
|
@@ -3207,12 +3365,12 @@ exports.BatchService = class BatchService {
|
|
|
3207
3365
|
const batchRepository = manager.getRepository(exports.BatchEntityClass);
|
|
3208
3366
|
const batchGroupRepository = manager.getRepository(this.batchGroupEntity);
|
|
3209
3367
|
const unsplittedCondition = {
|
|
3210
|
-
saleId: typeorm.IsNull(),
|
|
3211
|
-
saleSerialId: typeorm.IsNull(),
|
|
3212
|
-
customerId: typeorm.IsNull(),
|
|
3213
|
-
vendorId: typeorm.IsNull(),
|
|
3214
|
-
transferId: typeorm.IsNull(),
|
|
3215
|
-
inspectionResult: typeorm.IsNull(),
|
|
3368
|
+
saleId: typeorm$1.IsNull(),
|
|
3369
|
+
saleSerialId: typeorm$1.IsNull(),
|
|
3370
|
+
customerId: typeorm$1.IsNull(),
|
|
3371
|
+
vendorId: typeorm$1.IsNull(),
|
|
3372
|
+
transferId: typeorm$1.IsNull(),
|
|
3373
|
+
inspectionResult: typeorm$1.IsNull(),
|
|
3216
3374
|
held: false,
|
|
3217
3375
|
inShipment: false,
|
|
3218
3376
|
};
|
|
@@ -3296,7 +3454,7 @@ exports.BatchService = tslib.__decorate([
|
|
|
3296
3454
|
common.Injectable(),
|
|
3297
3455
|
tslib.__param(1, common.Inject(BatchEntity)),
|
|
3298
3456
|
tslib.__param(2, common.Inject(BatchGroupEntity)),
|
|
3299
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource, Object, Object])
|
|
3457
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource, Object, Object])
|
|
3300
3458
|
], exports.BatchService);
|
|
3301
3459
|
|
|
3302
3460
|
exports.HelperService = class HelperService {
|
|
@@ -3318,7 +3476,7 @@ exports.HelperService = class HelperService {
|
|
|
3318
3476
|
};
|
|
3319
3477
|
exports.HelperService = tslib.__decorate([
|
|
3320
3478
|
common.Injectable(),
|
|
3321
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource])
|
|
3479
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource])
|
|
3322
3480
|
], exports.HelperService);
|
|
3323
3481
|
|
|
3324
3482
|
/**
|
|
@@ -3457,7 +3615,7 @@ exports.ReceiveInventoryOrderService = class ReceiveInventoryOrderService {
|
|
|
3457
3615
|
const receiveInventoryOrderItemRepository = manager.getRepository(this.receiveInventoryOrderItemEntity);
|
|
3458
3616
|
const order = await receiveInventoryOrderRepository.findOneByOrFail({
|
|
3459
3617
|
id,
|
|
3460
|
-
removedAt: typeorm.IsNull(),
|
|
3618
|
+
removedAt: typeorm$1.IsNull(),
|
|
3461
3619
|
});
|
|
3462
3620
|
const { items, ...orderOptions } = options;
|
|
3463
3621
|
const updated = await receiveInventoryOrderRepository.save(receiveInventoryOrderRepository.create({
|
|
@@ -3572,7 +3730,7 @@ exports.ReceiveInventoryOrderService = class ReceiveInventoryOrderService {
|
|
|
3572
3730
|
const loaderRepository = manager.getRepository(exports.LoadersEntityClass);
|
|
3573
3731
|
const stockRepository = manager.getRepository(exports.StockEntityClass);
|
|
3574
3732
|
const items = await itemRepository.find({
|
|
3575
|
-
where: { id: typeorm.In(options.map((o) => o.itemId)) },
|
|
3733
|
+
where: { id: typeorm$1.In(options.map((o) => o.itemId)) },
|
|
3576
3734
|
relations: ['changes'],
|
|
3577
3735
|
});
|
|
3578
3736
|
const itemMap = new Map(items.map((i) => [i.id, i]));
|
|
@@ -3662,7 +3820,7 @@ exports.ReceiveInventoryOrderService = tslib.__decorate([
|
|
|
3662
3820
|
common.Injectable(),
|
|
3663
3821
|
tslib.__param(5, common.Inject(ReceiveInventoryOrderEntity)),
|
|
3664
3822
|
tslib.__param(6, common.Inject(ReceiveInventoryOrderItemEntity)),
|
|
3665
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource,
|
|
3823
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource,
|
|
3666
3824
|
exports.MaterialService,
|
|
3667
3825
|
exports.BatchService,
|
|
3668
3826
|
exports.HelperService,
|
|
@@ -3842,7 +4000,7 @@ exports.ShipInventoryOrderService = class ShipInventoryOrderService {
|
|
|
3842
4000
|
const materialRepository = manager.getRepository(exports.MaterialEntityClass);
|
|
3843
4001
|
const order = await shipInventoryOrderRepository.findOneByOrFail({
|
|
3844
4002
|
id,
|
|
3845
|
-
removedAt: typeorm.IsNull(),
|
|
4003
|
+
removedAt: typeorm$1.IsNull(),
|
|
3846
4004
|
});
|
|
3847
4005
|
const { references, items, ...orderOptions } = options;
|
|
3848
4006
|
const updated = await shipInventoryOrderRepository.save(shipInventoryOrderRepository.create({
|
|
@@ -3853,7 +4011,7 @@ exports.ShipInventoryOrderService = class ShipInventoryOrderService {
|
|
|
3853
4011
|
const newItems = [];
|
|
3854
4012
|
const existingItems = [];
|
|
3855
4013
|
const items = await shipInventoryOrderReferenceRepository.find({
|
|
3856
|
-
where: { orderId: id, removedAt: typeorm.IsNull() },
|
|
4014
|
+
where: { orderId: id, removedAt: typeorm$1.IsNull() },
|
|
3857
4015
|
});
|
|
3858
4016
|
const itemSet = new Set(items.map((i) => i.id));
|
|
3859
4017
|
const results = await Promise.all((references || []).map(async (item) => {
|
|
@@ -3896,7 +4054,7 @@ exports.ShipInventoryOrderService = class ShipInventoryOrderService {
|
|
|
3896
4054
|
const newItems = [];
|
|
3897
4055
|
const existingItems = [];
|
|
3898
4056
|
await shipInventoryOrderItemRepository
|
|
3899
|
-
.find({ where: { orderId: id, removedAt: typeorm.IsNull() } })
|
|
4057
|
+
.find({ where: { orderId: id, removedAt: typeorm$1.IsNull() } })
|
|
3900
4058
|
.then((dbItems) => {
|
|
3901
4059
|
const itemSet = new Set(dbItems.map((i) => i.id));
|
|
3902
4060
|
items?.forEach((item) => {
|
|
@@ -3974,7 +4132,7 @@ exports.ShipInventoryOrderService = class ShipInventoryOrderService {
|
|
|
3974
4132
|
const orderRepository = manager.getRepository(wmsBaseNestjsModule.OrderEntity);
|
|
3975
4133
|
const stockRepository = manager.getRepository(exports.StockEntityClass);
|
|
3976
4134
|
const items = await itemRepository.find({
|
|
3977
|
-
where: { id: typeorm.In(options.map((o) => o.itemId)) },
|
|
4135
|
+
where: { id: typeorm$1.In(options.map((o) => o.itemId)) },
|
|
3978
4136
|
relations: ['changes'],
|
|
3979
4137
|
});
|
|
3980
4138
|
const itemMap = new Map(items.map((item) => [item.id, item]));
|
|
@@ -4111,7 +4269,7 @@ exports.ShipInventoryOrderService = class ShipInventoryOrderService {
|
|
|
4111
4269
|
const shipInventoryOrderRepository = manager.getRepository(this.shipInventoryOrderEntity);
|
|
4112
4270
|
const order = await shipInventoryOrderRepository.findOneByOrFail({
|
|
4113
4271
|
id: options.orderId,
|
|
4114
|
-
removedAt: typeorm.IsNull(),
|
|
4272
|
+
removedAt: typeorm$1.IsNull(),
|
|
4115
4273
|
});
|
|
4116
4274
|
if (options.items.length) {
|
|
4117
4275
|
const items = options.items.map((item) => ({
|
|
@@ -4131,7 +4289,7 @@ exports.ShipInventoryOrderService = class ShipInventoryOrderService {
|
|
|
4131
4289
|
const orderRepository = manager.getRepository(wmsBaseNestjsModule.OrderEntity);
|
|
4132
4290
|
const stockRepository = manager.getRepository(exports.StockEntityClass);
|
|
4133
4291
|
const items = await itemRepository.find({
|
|
4134
|
-
where: { id: typeorm.In(options.map((option) => option.itemId)) },
|
|
4292
|
+
where: { id: typeorm$1.In(options.map((option) => option.itemId)) },
|
|
4135
4293
|
relations: ['changes'],
|
|
4136
4294
|
});
|
|
4137
4295
|
const itemMap = new Map(items.map((item) => [item.id, item]));
|
|
@@ -4204,7 +4362,7 @@ exports.ShipInventoryOrderService = tslib.__decorate([
|
|
|
4204
4362
|
tslib.__param(5, common.Inject(ShipInventoryOrderItemEntity)),
|
|
4205
4363
|
tslib.__param(6, common.Inject(ShipInventoryOrderReferenceEntity)),
|
|
4206
4364
|
tslib.__param(7, common.Inject(SaleOrderEntity)),
|
|
4207
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource,
|
|
4365
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource,
|
|
4208
4366
|
exports.MaterialService,
|
|
4209
4367
|
exports.BatchService,
|
|
4210
4368
|
exports.StockService, Object, Object, Object, Object])
|
|
@@ -4284,7 +4442,7 @@ exports.LocationService = class LocationService {
|
|
|
4284
4442
|
exports.LocationService = tslib.__decorate([
|
|
4285
4443
|
common.Injectable(),
|
|
4286
4444
|
tslib.__param(1, common.Inject(LocationEntity)),
|
|
4287
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource, Object])
|
|
4445
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource, Object])
|
|
4288
4446
|
], exports.LocationService);
|
|
4289
4447
|
|
|
4290
4448
|
exports.UnitService = class UnitService {
|
|
@@ -4298,7 +4456,7 @@ exports.UnitService = class UnitService {
|
|
|
4298
4456
|
};
|
|
4299
4457
|
exports.UnitService = tslib.__decorate([
|
|
4300
4458
|
common.Injectable(),
|
|
4301
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource])
|
|
4459
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource])
|
|
4302
4460
|
], exports.UnitService);
|
|
4303
4461
|
|
|
4304
4462
|
exports.TransferOrderService = class TransferOrderService {
|
|
@@ -4400,7 +4558,7 @@ exports.TransferOrderService = class TransferOrderService {
|
|
|
4400
4558
|
async cancelTransferInternal(options, manager) {
|
|
4401
4559
|
const repos = this.getRepositories(manager);
|
|
4402
4560
|
const items = await repos.transferOrderItem.find({
|
|
4403
|
-
where: { id: typeorm.In(options.map((o) => o.itemId)) },
|
|
4561
|
+
where: { id: typeorm$1.In(options.map((o) => o.itemId)) },
|
|
4404
4562
|
relations: ['changes'],
|
|
4405
4563
|
});
|
|
4406
4564
|
const itemMap = new Map(items.map((item) => [item.id, item]));
|
|
@@ -4708,7 +4866,7 @@ exports.TransferOrderService = class TransferOrderService {
|
|
|
4708
4866
|
const itemRepository = manager.getRepository(this.transferOrderItemEntity);
|
|
4709
4867
|
const stockRepository = manager.getRepository(this.stockEntity);
|
|
4710
4868
|
const items = await itemRepository.find({
|
|
4711
|
-
where: { id: typeorm.In(options.map((o) => o.itemId)) },
|
|
4869
|
+
where: { id: typeorm$1.In(options.map((o) => o.itemId)) },
|
|
4712
4870
|
relations: ['changes'],
|
|
4713
4871
|
});
|
|
4714
4872
|
const itemMap = new Map(items.map((item) => [item.id, item]));
|
|
@@ -4867,7 +5025,7 @@ exports.TransferOrderService = tslib.__decorate([
|
|
|
4867
5025
|
tslib.__param(5, common.Inject(TransferOrderEntity)),
|
|
4868
5026
|
tslib.__param(6, common.Inject(TransferOrderItemEntity)),
|
|
4869
5027
|
tslib.__param(7, common.Inject(StockEntity)),
|
|
4870
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource,
|
|
5028
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource,
|
|
4871
5029
|
exports.HelperService,
|
|
4872
5030
|
exports.MaterialService,
|
|
4873
5031
|
exports.BatchService,
|
|
@@ -5094,7 +5252,7 @@ exports.HoldInventoryOrderService = tslib.__decorate([
|
|
|
5094
5252
|
tslib.__param(5, common.Inject(HoldInventoryOrderEntity)),
|
|
5095
5253
|
tslib.__param(6, common.Inject(HoldInventoryOrderItemEntity)),
|
|
5096
5254
|
tslib.__param(7, common.Inject(StockEntity)),
|
|
5097
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource,
|
|
5255
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource,
|
|
5098
5256
|
exports.HelperService,
|
|
5099
5257
|
exports.MaterialService,
|
|
5100
5258
|
exports.BatchService,
|
|
@@ -5240,8 +5398,8 @@ exports.AllocateInventoryOrderService = class AllocateInventoryOrderService {
|
|
|
5240
5398
|
return;
|
|
5241
5399
|
const originalBatch = await this.batchService.batchRepository.findOneByOrFail({
|
|
5242
5400
|
id: data.batchId,
|
|
5243
|
-
saleId: typeorm.Not(typeorm.IsNull()),
|
|
5244
|
-
saleSerialId: typeorm.Not(typeorm.IsNull()),
|
|
5401
|
+
saleId: typeorm$1.Not(typeorm$1.IsNull()),
|
|
5402
|
+
saleSerialId: typeorm$1.Not(typeorm$1.IsNull()),
|
|
5245
5403
|
});
|
|
5246
5404
|
const splittedBatch = await this.batchService.splitBatch({
|
|
5247
5405
|
id: data.batchId,
|
|
@@ -5335,7 +5493,7 @@ exports.AllocateInventoryOrderService = tslib.__decorate([
|
|
|
5335
5493
|
tslib.__param(5, common.Inject(AllocateInventoryOrderEntity)),
|
|
5336
5494
|
tslib.__param(6, common.Inject(AllocateInventoryOrderItemEntity)),
|
|
5337
5495
|
tslib.__param(7, common.Inject(StockEntity)),
|
|
5338
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource,
|
|
5496
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource,
|
|
5339
5497
|
exports.HelperService,
|
|
5340
5498
|
exports.MaterialService,
|
|
5341
5499
|
exports.BatchService,
|
|
@@ -5438,7 +5596,7 @@ exports.SplitBatchOrderService = tslib.__decorate([
|
|
|
5438
5596
|
common.Injectable(),
|
|
5439
5597
|
tslib.__param(5, common.Inject(SplitBatchOrderEntity)),
|
|
5440
5598
|
tslib.__param(6, common.Inject(SplitBatchOrderItemEntity)),
|
|
5441
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource,
|
|
5599
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource,
|
|
5442
5600
|
exports.MaterialService,
|
|
5443
5601
|
exports.BatchService,
|
|
5444
5602
|
exports.HelperService,
|
|
@@ -5473,7 +5631,7 @@ exports.MergeBatchOrderService = class MergeBatchOrderService {
|
|
|
5473
5631
|
const batchRepository = manager.getRepository(exports.BatchEntityClass);
|
|
5474
5632
|
// Verify all source batches have identical metadata (except key and groupId)
|
|
5475
5633
|
const sourceBatches = await batchRepository.find({
|
|
5476
|
-
where: { id: typeorm.In(options.items.map((item) => item.batchId)) },
|
|
5634
|
+
where: { id: typeorm$1.In(options.items.map((item) => item.batchId)) },
|
|
5477
5635
|
});
|
|
5478
5636
|
if (sourceBatches.length !== options.items.length) {
|
|
5479
5637
|
throw new Error('Some source batches were not found');
|
|
@@ -5575,7 +5733,7 @@ exports.MergeBatchOrderService = tslib.__decorate([
|
|
|
5575
5733
|
common.Injectable(),
|
|
5576
5734
|
tslib.__param(5, common.Inject(MergeBatchOrderEntity)),
|
|
5577
5735
|
tslib.__param(6, common.Inject(MergeBatchOrderItemEntity)),
|
|
5578
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource,
|
|
5736
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource,
|
|
5579
5737
|
exports.MaterialService,
|
|
5580
5738
|
exports.BatchService,
|
|
5581
5739
|
exports.HelperService,
|
|
@@ -5698,7 +5856,7 @@ exports.ReclassifyInventoryOrderService = tslib.__decorate([
|
|
|
5698
5856
|
common.Injectable(),
|
|
5699
5857
|
tslib.__param(5, common.Inject(ReclassifyInventoryOrderEntity)),
|
|
5700
5858
|
tslib.__param(6, common.Inject(ReclassifyInventoryOrderItemEntity)),
|
|
5701
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource,
|
|
5859
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource,
|
|
5702
5860
|
exports.MaterialService,
|
|
5703
5861
|
exports.BatchService,
|
|
5704
5862
|
exports.HelperService,
|
|
@@ -5850,7 +6008,7 @@ exports.TransferVendorOrderService = class TransferVendorOrderService {
|
|
|
5850
6008
|
return;
|
|
5851
6009
|
const originalBatch = await this.batchService.batchRepository.findOneByOrFail({
|
|
5852
6010
|
id: data.batchId,
|
|
5853
|
-
vendorId: typeorm.Not(typeorm.IsNull()),
|
|
6011
|
+
vendorId: typeorm$1.Not(typeorm$1.IsNull()),
|
|
5854
6012
|
});
|
|
5855
6013
|
const splittedBatch = await this.batchService.splitBatch({
|
|
5856
6014
|
id: data.batchId,
|
|
@@ -5919,7 +6077,7 @@ exports.TransferVendorOrderService = tslib.__decorate([
|
|
|
5919
6077
|
tslib.__param(5, common.Inject(TransferVendorOrderEntity)),
|
|
5920
6078
|
tslib.__param(6, common.Inject(TransferVendorOrderItemEntity)),
|
|
5921
6079
|
tslib.__param(7, common.Inject(StockEntity)),
|
|
5922
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource,
|
|
6080
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource,
|
|
5923
6081
|
exports.HelperService,
|
|
5924
6082
|
exports.MaterialService,
|
|
5925
6083
|
exports.BatchService,
|
|
@@ -5999,7 +6157,7 @@ exports.QualityInspectionOrderService = tslib.__decorate([
|
|
|
5999
6157
|
common.Injectable(),
|
|
6000
6158
|
tslib.__param(1, common.Inject(QualityInspectionOrderEntity)),
|
|
6001
6159
|
tslib.__param(2, common.Inject(QualityInspectionOrderItemEntity)),
|
|
6002
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource, Object, Object, exports.BatchService,
|
|
6160
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource, Object, Object, exports.BatchService,
|
|
6003
6161
|
exports.MaterialService,
|
|
6004
6162
|
exports.StockService])
|
|
6005
6163
|
], exports.QualityInspectionOrderService);
|
|
@@ -6149,7 +6307,7 @@ exports.TransferCustomerOrderService = class TransferCustomerOrderService {
|
|
|
6149
6307
|
return;
|
|
6150
6308
|
const originalBatch = await this.batchService.batchRepository.findOneByOrFail({
|
|
6151
6309
|
id: data.batchId,
|
|
6152
|
-
customerId: typeorm.Not(typeorm.IsNull()),
|
|
6310
|
+
customerId: typeorm$1.Not(typeorm$1.IsNull()),
|
|
6153
6311
|
});
|
|
6154
6312
|
const splittedBatch = await this.batchService.splitBatch({
|
|
6155
6313
|
id: data.batchId,
|
|
@@ -6218,7 +6376,7 @@ exports.TransferCustomerOrderService = tslib.__decorate([
|
|
|
6218
6376
|
tslib.__param(5, common.Inject(TransferCustomerOrderEntity)),
|
|
6219
6377
|
tslib.__param(6, common.Inject(TransferCustomerOrderItemEntity)),
|
|
6220
6378
|
tslib.__param(7, common.Inject(StockEntity)),
|
|
6221
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource,
|
|
6379
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource,
|
|
6222
6380
|
exports.HelperService,
|
|
6223
6381
|
exports.MaterialService,
|
|
6224
6382
|
exports.BatchService,
|
|
@@ -6236,7 +6394,7 @@ exports.SaleOrderService = class SaleOrderService {
|
|
|
6236
6394
|
};
|
|
6237
6395
|
exports.SaleOrderService = tslib.__decorate([
|
|
6238
6396
|
common.Injectable(),
|
|
6239
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource])
|
|
6397
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource])
|
|
6240
6398
|
], exports.SaleOrderService);
|
|
6241
6399
|
|
|
6242
6400
|
exports.ScrapeService = class ScrapeService {
|
|
@@ -6315,7 +6473,7 @@ exports.ScrapeService = tslib.__decorate([
|
|
|
6315
6473
|
common.Injectable(),
|
|
6316
6474
|
tslib.__param(4, common.Inject(ScrapeOrderEntity)),
|
|
6317
6475
|
tslib.__param(5, common.Inject(StockEntity)),
|
|
6318
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource,
|
|
6476
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource,
|
|
6319
6477
|
exports.HelperService,
|
|
6320
6478
|
exports.MaterialService,
|
|
6321
6479
|
exports.StockService, Object, Object])
|
|
@@ -6350,7 +6508,7 @@ exports.WarehouseMapDataService = class WarehouseMapDataService {
|
|
|
6350
6508
|
};
|
|
6351
6509
|
exports.WarehouseMapDataService = tslib.__decorate([
|
|
6352
6510
|
common.Injectable(),
|
|
6353
|
-
tslib.__metadata("design:paramtypes", [typeorm.DataSource])
|
|
6511
|
+
tslib.__metadata("design:paramtypes", [typeorm$1.DataSource])
|
|
6354
6512
|
], exports.WarehouseMapDataService);
|
|
6355
6513
|
|
|
6356
6514
|
var WmsModuleCoreModule_1;
|
|
@@ -6427,6 +6585,69 @@ exports.WmsModuleCoreModule = WmsModuleCoreModule_1 = tslib.__decorate([
|
|
|
6427
6585
|
})
|
|
6428
6586
|
], exports.WmsModuleCoreModule);
|
|
6429
6587
|
|
|
6588
|
+
/** DI token holding the resolved {@link WmsEventModuleOptions}. */
|
|
6589
|
+
const WMS_EVENT_OPTIONS = Symbol('WMS_EVENT_OPTIONS');
|
|
6590
|
+
/** DI token for an optional external emitter bridge (e.g. @nestjs/event-emitter). */
|
|
6591
|
+
const WMS_EVENT_EMITTER_BRIDGE = Symbol('WMS_EVENT_EMITTER_BRIDGE');
|
|
6592
|
+
|
|
6593
|
+
var WmsEventDispatcher_1;
|
|
6594
|
+
/**
|
|
6595
|
+
* Central event dispatcher. Runs consumer before-hooks (which may veto) and,
|
|
6596
|
+
* post-commit, flushes collected events to consumer after-listeners and the
|
|
6597
|
+
* optional emitter bridge. Listener errors are isolated so one failing listener
|
|
6598
|
+
* never blocks the others or the already-committed mutation.
|
|
6599
|
+
*/
|
|
6600
|
+
exports.WmsEventDispatcher = WmsEventDispatcher_1 = class WmsEventDispatcher {
|
|
6601
|
+
options;
|
|
6602
|
+
bridge;
|
|
6603
|
+
logger = new common.Logger(WmsEventDispatcher_1.name);
|
|
6604
|
+
constructor(options, bridge = null) {
|
|
6605
|
+
this.options = options;
|
|
6606
|
+
this.bridge = bridge;
|
|
6607
|
+
}
|
|
6608
|
+
/** Whether any hook, listener or bridge is wired (lets the interceptor skip overhead entirely). */
|
|
6609
|
+
isActive() {
|
|
6610
|
+
const { beforeHooks, afterListeners } = this.options;
|
|
6611
|
+
return (!!this.bridge ||
|
|
6612
|
+
(!!beforeHooks && Object.keys(beforeHooks).length > 0) ||
|
|
6613
|
+
(!!afterListeners && Object.keys(afterListeners).length > 0));
|
|
6614
|
+
}
|
|
6615
|
+
/** Invoke the before-hook for an event. A thrown error vetoes the mutation. */
|
|
6616
|
+
async runBeforeHook(context) {
|
|
6617
|
+
const hook = this.options.beforeHooks?.[context.event];
|
|
6618
|
+
if (hook) {
|
|
6619
|
+
await hook(context);
|
|
6620
|
+
}
|
|
6621
|
+
}
|
|
6622
|
+
/** Flush collected events to after-listeners and the emitter bridge (post-commit). */
|
|
6623
|
+
async flush(events) {
|
|
6624
|
+
for (const event of events) {
|
|
6625
|
+
const listener = this.options.afterListeners?.[event.name];
|
|
6626
|
+
if (listener) {
|
|
6627
|
+
try {
|
|
6628
|
+
await listener({ event: event.name, payload: event.payload });
|
|
6629
|
+
}
|
|
6630
|
+
catch (error) {
|
|
6631
|
+
this.logger.error(`WMS after-listener for "${event.name}" threw: ${error instanceof Error ? error.message : String(error)}`);
|
|
6632
|
+
}
|
|
6633
|
+
}
|
|
6634
|
+
try {
|
|
6635
|
+
this.bridge?.forward(event);
|
|
6636
|
+
}
|
|
6637
|
+
catch (error) {
|
|
6638
|
+
this.logger.error(`WMS emitter bridge for "${event.name}" threw: ${error instanceof Error ? error.message : String(error)}`);
|
|
6639
|
+
}
|
|
6640
|
+
}
|
|
6641
|
+
}
|
|
6642
|
+
};
|
|
6643
|
+
exports.WmsEventDispatcher = WmsEventDispatcher_1 = tslib.__decorate([
|
|
6644
|
+
common.Injectable(),
|
|
6645
|
+
tslib.__param(0, common.Inject(WMS_EVENT_OPTIONS)),
|
|
6646
|
+
tslib.__param(1, common.Optional()),
|
|
6647
|
+
tslib.__param(1, common.Inject(WMS_EVENT_EMITTER_BRIDGE)),
|
|
6648
|
+
tslib.__metadata("design:paramtypes", [Object, Object])
|
|
6649
|
+
], exports.WmsEventDispatcher);
|
|
6650
|
+
|
|
6430
6651
|
exports.AllocateInventoryOrderChangeEntity = AllocateInventoryOrderChangeEntity;
|
|
6431
6652
|
exports.AllocateInventoryOrderEntity = AllocateInventoryOrderEntity;
|
|
6432
6653
|
exports.AllocateInventoryOrderItemEntity = AllocateInventoryOrderItemEntity;
|
|
@@ -6476,4 +6697,8 @@ exports.TransferVendorOrderEntity = TransferVendorOrderEntity;
|
|
|
6476
6697
|
exports.TransferVendorOrderItemEntity = TransferVendorOrderItemEntity;
|
|
6477
6698
|
exports.UnitEntity = UnitEntity;
|
|
6478
6699
|
exports.WMS_CORE_MODULE_OPTIONS = WMS_CORE_MODULE_OPTIONS;
|
|
6700
|
+
exports.WMS_EVENT_EMITTER_BRIDGE = WMS_EVENT_EMITTER_BRIDGE;
|
|
6701
|
+
exports.WMS_EVENT_OPTIONS = WMS_EVENT_OPTIONS;
|
|
6479
6702
|
exports.WarehouseMapEntity = WarehouseMapEntity;
|
|
6703
|
+
exports.collectToScope = collectToScope;
|
|
6704
|
+
exports.runInDispatchScope = runInDispatchScope;
|