@rytass/wms-module-graphql 0.11.0 → 0.12.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/README.md +19 -0
- package/docs/README.md +5 -2
- package/docs/api-reference.md +10 -8
- package/docs/integration-guide.md +34 -17
- package/docs/inventory-count.md +372 -0
- package/index.cjs.js +10 -0
- package/lib/inputs/inventory-count-order.args.d.ts +6 -0
- package/package.json +12 -11
- package/adapters/event-emitter.js +0 -41
- package/adapters/member-base.js +0 -63
- package/index.js +0 -12
- package/lib/auth/host-skip.constant.js +0 -29
- package/lib/auth/wms-auth.guard.js +0 -41
- package/lib/auth/wms-auth.types.js +0 -6
- package/lib/auth/wms-operation.decorator.js +0 -29
- package/lib/dto/allocate-inventory-order-item.dto.js +0 -36
- package/lib/dto/allocate-inventory-order.dto.js +0 -31
- package/lib/dto/batch.dto.js +0 -26
- package/lib/dto/consumption-order-item.dto.js +0 -43
- package/lib/dto/consumption-order.dto.js +0 -52
- package/lib/dto/hold-inventory-order-item.dto.js +0 -37
- package/lib/dto/hold-inventory-order.dto.js +0 -47
- package/lib/dto/inventory-count-order.dto.js +0 -207
- package/lib/dto/loader-type.dto.js +0 -46
- package/lib/dto/loader-unit.dto.js +0 -21
- package/lib/dto/loader.dto.js +0 -71
- package/lib/dto/location.dto.js +0 -36
- package/lib/dto/material-unit.dto.js +0 -46
- package/lib/dto/material.dto.js +0 -36
- package/lib/dto/merge-batch-order.dto.js +0 -50
- package/lib/dto/order-reference.dto.js +0 -73
- package/lib/dto/pagination.dto.js +0 -51
- package/lib/dto/quality-inspection-order-item.dto.js +0 -50
- package/lib/dto/quality-inspection-order.dto.js +0 -42
- package/lib/dto/receive-inventory-order-item.dto.js +0 -60
- package/lib/dto/receive-inventory-order.dto.js +0 -58
- package/lib/dto/reclassify-inventory-order.dto.js +0 -55
- package/lib/dto/sale-order.dto.js +0 -20
- package/lib/dto/scrape-order-item.dto.js +0 -56
- package/lib/dto/scrape-order.dto.js +0 -37
- package/lib/dto/ship-inventory-order-item.dto.js +0 -56
- package/lib/dto/ship-inventory-order-reference.dto.js +0 -48
- package/lib/dto/ship-inventory-order.dto.js +0 -58
- package/lib/dto/split-batch-order.dto.js +0 -50
- package/lib/dto/stock.dto.js +0 -166
- package/lib/dto/transfer-customer-order-item.dto.js +0 -61
- package/lib/dto/transfer-customer-order.dto.js +0 -37
- package/lib/dto/transfer-order-item.dto.js +0 -41
- package/lib/dto/transfer-order.dto.js +0 -57
- package/lib/dto/transfer-vendor-order-item.dto.js +0 -61
- package/lib/dto/transfer-vendor-order.dto.js +0 -37
- package/lib/dto/unit.dto.js +0 -20
- package/lib/dto/warehouse-map.dto.js +0 -165
- package/lib/events/wms-mutation-event.constants.js +0 -4
- package/lib/events/wms-mutation-event.decorator.js +0 -20
- package/lib/events/wms-mutation.interceptor.js +0 -64
- package/lib/graphql.module.js +0 -183
- package/lib/helpers/create-wms-loaders.js +0 -11
- package/lib/helpers/helper.module.js +0 -15
- package/lib/helpers/loader.service.js +0 -230
- package/lib/helpers/query-path.js +0 -19
- package/lib/inputs/cancel-ship-order.args.js +0 -20
- package/lib/inputs/cancel-transfer-order.args.js +0 -23
- package/lib/inputs/consumption-order.args.js +0 -182
- package/lib/inputs/create-allocate-inventory-order-item.args.js +0 -50
- package/lib/inputs/create-allocate-inventory-order.args.js +0 -36
- package/lib/inputs/create-hold-inventory-order-item.args.js +0 -40
- package/lib/inputs/create-hold-inventory-order.args.js +0 -41
- package/lib/inputs/create-loader-type.args.js +0 -35
- package/lib/inputs/create-loader.args.js +0 -130
- package/lib/inputs/create-location.args.js +0 -50
- package/lib/inputs/create-material-unit.args.js +0 -25
- package/lib/inputs/create-material.args.js +0 -51
- package/lib/inputs/create-quality-inspection-order.args.js +0 -50
- package/lib/inputs/create-receive-inventory-order-item.args.js +0 -70
- package/lib/inputs/create-receive-inventory-order.args.js +0 -51
- package/lib/inputs/create-ship-inventory-order-item.args.js +0 -45
- package/lib/inputs/create-ship-inventory-order-reference.args.js +0 -65
- package/lib/inputs/create-ship-inventory-order.args.js +0 -57
- package/lib/inputs/create-transfer-customer-order-item.args.js +0 -40
- package/lib/inputs/create-transfer-customer-order.args.js +0 -51
- package/lib/inputs/create-transfer-order-item.args.js +0 -40
- package/lib/inputs/create-transfer-order.args.js +0 -61
- package/lib/inputs/create-transfer-vendor-order-item.args.js +0 -40
- package/lib/inputs/create-transfer-vendor-order.args.js +0 -51
- package/lib/inputs/date-range.args.js +0 -20
- package/lib/inputs/deallocate-order.args.js +0 -25
- package/lib/inputs/find-allocate-inventory-order.args.js +0 -42
- package/lib/inputs/find-batch.args.js +0 -21
- package/lib/inputs/find-hold-inventory-order.args.js +0 -42
- package/lib/inputs/find-loader-type.args.js +0 -32
- package/lib/inputs/find-loader.args.js +0 -72
- package/lib/inputs/find-location.args.js +0 -26
- package/lib/inputs/find-material.args.js +0 -21
- package/lib/inputs/find-receive-inventory-order.args.js +0 -71
- package/lib/inputs/find-sale-order.args.js +0 -16
- package/lib/inputs/find-ship-inventory-order.args.js +0 -71
- package/lib/inputs/find-stock.args.js +0 -102
- package/lib/inputs/find-transfer-order.args.js +0 -82
- package/lib/inputs/inventory-count-order.args.js +0 -257
- package/lib/inputs/merge-batch.args.js +0 -40
- package/lib/inputs/order-reference.args.js +0 -103
- package/lib/inputs/pagination.args.js +0 -20
- package/lib/inputs/receive-order.args.js +0 -40
- package/lib/inputs/reclassify-inventory-order.args.js +0 -40
- package/lib/inputs/release-order.args.js +0 -25
- package/lib/inputs/return-transfer-customer-order.args.js +0 -35
- package/lib/inputs/return-transfer-vendor-order.args.js +0 -35
- package/lib/inputs/scrape-order.args.js +0 -35
- package/lib/inputs/ship-order.args.js +0 -20
- package/lib/inputs/split-batch.args.js +0 -51
- package/lib/inputs/transfer-order.args.js +0 -20
- package/lib/inputs/update-warehouse-map.args.js +0 -121
- package/lib/mutations/allocate-inventory-order.mutation.js +0 -91
- package/lib/mutations/consumption-order.mutation.js +0 -90
- package/lib/mutations/hold-inventory-order.mutation.js +0 -91
- package/lib/mutations/inventory-count-order.mutation.js +0 -138
- package/lib/mutations/loader.mutation.js +0 -123
- package/lib/mutations/location.mutation.js +0 -47
- package/lib/mutations/material.mutation.js +0 -74
- package/lib/mutations/merge-batch.mutation.js +0 -50
- package/lib/mutations/order-reference.mutation.js +0 -57
- package/lib/mutations/quality-inspection-order.mutation.js +0 -50
- package/lib/mutations/receive-inventory-order.mutation.js +0 -106
- package/lib/mutations/reclassify-inventory-order.mutation.js +0 -51
- package/lib/mutations/scrape-order.mutation.js +0 -44
- package/lib/mutations/ship-inventory-order.mutation.js +0 -123
- package/lib/mutations/split-batch.mutation.js +0 -44
- package/lib/mutations/transfer-customer-order.mutation.js +0 -91
- package/lib/mutations/transfer-order.mutation.js +0 -96
- package/lib/mutations/transfer-vendor-order.mutation.js +0 -91
- package/lib/mutations/warehouse-map.mutation.js +0 -60
- package/lib/queries/allocate-inventory-order.query.js +0 -33
- package/lib/queries/batch.query.js +0 -36
- package/lib/queries/consumption-order.query.js +0 -45
- package/lib/queries/hold-inventory-order.query.js +0 -33
- package/lib/queries/inventory-count-order.query.js +0 -63
- package/lib/queries/loader.query.js +0 -167
- package/lib/queries/location.query.js +0 -51
- package/lib/queries/material.query.js +0 -79
- package/lib/queries/order-reference.query.js +0 -34
- package/lib/queries/recieve-inventory-order.query.js +0 -77
- package/lib/queries/sale-order.query.js +0 -57
- package/lib/queries/ship-inventory-order.query.js +0 -77
- package/lib/queries/stock.query.js +0 -116
- package/lib/queries/transfer-order.query.js +0 -46
- package/lib/queries/unit.query.js +0 -30
- package/lib/queries/warehouse-map.query.js +0 -32
- package/lib/registry/operation-registry.js +0 -136
- package/lib/resolvers/aggregated-stock.resolver.js +0 -119
- package/lib/resolvers/allocate-inventory-order.resolver.js +0 -27
- package/lib/resolvers/change-log.resolver.js +0 -99
- package/lib/resolvers/consumption-order.resolver.js +0 -238
- package/lib/resolvers/hold-inventory-order.resolver.js +0 -27
- package/lib/resolvers/inventory-count-order.resolver.js +0 -148
- package/lib/resolvers/loader-type.resolver.js +0 -54
- package/lib/resolvers/loader.resolver.js +0 -99
- package/lib/resolvers/location.resolver.js +0 -80
- package/lib/resolvers/material.resolver.js +0 -87
- package/lib/resolvers/merge-batch.resolver.js +0 -26
- package/lib/resolvers/receive-inventory-order.resolver.js +0 -156
- package/lib/resolvers/ship-inventory-order.resolver.js +0 -301
- package/lib/resolvers/split-batch.resolver.js +0 -26
- package/lib/resolvers/stock.resolver.js +0 -99
- package/lib/resolvers/transfer-customer-order.resolver.js +0 -27
- package/lib/resolvers/transfer-order.resolver.js +0 -246
- package/lib/resolvers/transfer-vendor-order.resolver.js +0 -27
- package/lib/resolvers/warehouse-map.resolver.js +0 -41
- package/lib/scalars/json-object.scalar.js +0 -62
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Query, Args } from '@nestjs/graphql';
|
|
4
|
-
import { InventoryCountOrderService } from '@rytass/wms-module-core';
|
|
5
|
-
import { InventoryCountOrders, InventoryCountOrderItems, InventoryCountOrderDto } from '../dto/inventory-count-order.dto.js';
|
|
6
|
-
import { FindInventoryCountOrderArgs, FindInventoryCountOrderItemArgs, InventoryCountOrderIdArgs } from '../inputs/inventory-count-order.args.js';
|
|
7
|
-
import '../auth/wms-auth.guard.js';
|
|
8
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
9
|
-
|
|
10
|
-
let InventoryCountOrderQuery = class InventoryCountOrderQuery {
|
|
11
|
-
inventoryCountOrderService;
|
|
12
|
-
constructor(inventoryCountOrderService) {
|
|
13
|
-
this.inventoryCountOrderService = inventoryCountOrderService;
|
|
14
|
-
}
|
|
15
|
-
async inventoryCountOrders(args) {
|
|
16
|
-
const [items, total] = await this.inventoryCountOrderService.findMany(args);
|
|
17
|
-
return { items, total };
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* The count sheet, filtered and paginated.
|
|
21
|
-
*
|
|
22
|
-
* Separate from `inventoryCountOrder.items` on purpose: the detail page needs
|
|
23
|
-
* to narrow thousands of lines down to the shelf in front of the operator, and
|
|
24
|
-
* a field resolver cannot take filters or a page.
|
|
25
|
-
*/
|
|
26
|
-
async inventoryCountOrderItems({ id, ...options }) {
|
|
27
|
-
const [items, total] = await this.inventoryCountOrderService.findItems(id, options);
|
|
28
|
-
return { items, total };
|
|
29
|
-
}
|
|
30
|
-
async inventoryCountOrder({ id }) {
|
|
31
|
-
return this.inventoryCountOrderService.findOne(id);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
__decorate([
|
|
35
|
-
Query(() => InventoryCountOrders),
|
|
36
|
-
WmsOperation({ resource: 'inventory-count-order', action: 'read' }),
|
|
37
|
-
__param(0, Args()),
|
|
38
|
-
__metadata("design:type", Function),
|
|
39
|
-
__metadata("design:paramtypes", [FindInventoryCountOrderArgs]),
|
|
40
|
-
__metadata("design:returntype", Promise)
|
|
41
|
-
], InventoryCountOrderQuery.prototype, "inventoryCountOrders", null);
|
|
42
|
-
__decorate([
|
|
43
|
-
Query(() => InventoryCountOrderItems),
|
|
44
|
-
WmsOperation({ resource: 'inventory-count-order', action: 'read-items' }),
|
|
45
|
-
__param(0, Args()),
|
|
46
|
-
__metadata("design:type", Function),
|
|
47
|
-
__metadata("design:paramtypes", [FindInventoryCountOrderItemArgs]),
|
|
48
|
-
__metadata("design:returntype", Promise)
|
|
49
|
-
], InventoryCountOrderQuery.prototype, "inventoryCountOrderItems", null);
|
|
50
|
-
__decorate([
|
|
51
|
-
Query(() => InventoryCountOrderDto),
|
|
52
|
-
WmsOperation({ resource: 'inventory-count-order', action: 'read' }),
|
|
53
|
-
__param(0, Args()),
|
|
54
|
-
__metadata("design:type", Function),
|
|
55
|
-
__metadata("design:paramtypes", [InventoryCountOrderIdArgs]),
|
|
56
|
-
__metadata("design:returntype", Promise)
|
|
57
|
-
], InventoryCountOrderQuery.prototype, "inventoryCountOrder", null);
|
|
58
|
-
InventoryCountOrderQuery = __decorate([
|
|
59
|
-
Injectable(),
|
|
60
|
-
__metadata("design:paramtypes", [InventoryCountOrderService])
|
|
61
|
-
], InventoryCountOrderQuery);
|
|
62
|
-
|
|
63
|
-
export { InventoryCountOrderQuery };
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Query, Args, ID } from '@nestjs/graphql';
|
|
4
|
-
import { LoaderService, StockService, TransferOrderService, TransferOrderItemEntityClass, TransferOrderChangeEntityClass } from '@rytass/wms-module-core';
|
|
5
|
-
import { LoaderTypeDto, LoaderTypes } from '../dto/loader-type.dto.js';
|
|
6
|
-
import { LoaderDto, Loaders } from '../dto/loader.dto.js';
|
|
7
|
-
import '../dto/material.dto.js';
|
|
8
|
-
import '../dto/material-unit.dto.js';
|
|
9
|
-
import '../dto/stock.dto.js';
|
|
10
|
-
import '../dto/sale-order.dto.js';
|
|
11
|
-
import '../dto/receive-inventory-order.dto.js';
|
|
12
|
-
import '../dto/receive-inventory-order-item.dto.js';
|
|
13
|
-
import '../dto/ship-inventory-order.dto.js';
|
|
14
|
-
import '../dto/ship-inventory-order-item.dto.js';
|
|
15
|
-
import '../dto/hold-inventory-order.dto.js';
|
|
16
|
-
import '../dto/hold-inventory-order-item.dto.js';
|
|
17
|
-
import '../dto/allocate-inventory-order.dto.js';
|
|
18
|
-
import '../dto/allocate-inventory-order-item.dto.js';
|
|
19
|
-
import '../dto/transfer-order.dto.js';
|
|
20
|
-
import '../dto/transfer-order-item.dto.js';
|
|
21
|
-
import '../dto/transfer-customer-order.dto.js';
|
|
22
|
-
import '../dto/transfer-customer-order-item.dto.js';
|
|
23
|
-
import '../dto/transfer-vendor-order.dto.js';
|
|
24
|
-
import '../dto/transfer-vendor-order-item.dto.js';
|
|
25
|
-
import '../dto/scrape-order.dto.js';
|
|
26
|
-
import '../dto/scrape-order-item.dto.js';
|
|
27
|
-
import '../dto/quality-inspection-order.dto.js';
|
|
28
|
-
import '../dto/quality-inspection-order-item.dto.js';
|
|
29
|
-
import '../dto/inventory-count-order.dto.js';
|
|
30
|
-
import '../dto/consumption-order.dto.js';
|
|
31
|
-
import '../dto/consumption-order-item.dto.js';
|
|
32
|
-
import '../dto/order-reference.dto.js';
|
|
33
|
-
import { FindLoaderArgs } from '../inputs/find-loader.args.js';
|
|
34
|
-
import { FindLoaderTypeArgs } from '../inputs/find-loader-type.args.js';
|
|
35
|
-
import { LoaderUnitDto, LoaderUnit } from '../dto/loader-unit.dto.js';
|
|
36
|
-
import '../auth/wms-auth.guard.js';
|
|
37
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
38
|
-
|
|
39
|
-
let LoaderQuery = class LoaderQuery {
|
|
40
|
-
loaderService;
|
|
41
|
-
stockService;
|
|
42
|
-
transferOrderService;
|
|
43
|
-
constructor(loaderService, stockService, transferOrderService) {
|
|
44
|
-
this.loaderService = loaderService;
|
|
45
|
-
this.stockService = stockService;
|
|
46
|
-
this.transferOrderService = transferOrderService;
|
|
47
|
-
}
|
|
48
|
-
loader(id) {
|
|
49
|
-
return this.loaderService.loaderRepository.findOneByOrFail({ id });
|
|
50
|
-
}
|
|
51
|
-
async loaders(args) {
|
|
52
|
-
const [items, total] = await this.loaderService.findManyLoaders({
|
|
53
|
-
...args,
|
|
54
|
-
wildcard: args.key ? { key: 'serialId', value: args.key } : undefined,
|
|
55
|
-
});
|
|
56
|
-
return { items, total };
|
|
57
|
-
}
|
|
58
|
-
async loaderType(id) {
|
|
59
|
-
return this.loaderService.loaderTypeRepository.findOneByOrFail({ id });
|
|
60
|
-
}
|
|
61
|
-
async loaderTypes(args) {
|
|
62
|
-
const [items, total] = await this.loaderService.findManyLoaderTypes({
|
|
63
|
-
...args,
|
|
64
|
-
wildcard: args.key ? { key: 'key', value: args.key } : undefined,
|
|
65
|
-
});
|
|
66
|
-
return { items, total };
|
|
67
|
-
}
|
|
68
|
-
loaderUnits(type) {
|
|
69
|
-
return this.loaderService.loaderUnitRepository.findBy({
|
|
70
|
-
type,
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
async availableLoaders(locationId) {
|
|
74
|
-
const loaders = [];
|
|
75
|
-
// every loaders from locationId +
|
|
76
|
-
// (loaders with empty stocks - loader with empty stocks but being used as targetLoader in transfer order that being booked)
|
|
77
|
-
const allLoaders = await this.loaderService.loaderRepository.findBy({
|
|
78
|
-
isActive: true,
|
|
79
|
-
});
|
|
80
|
-
if (locationId)
|
|
81
|
-
allLoaders.forEach((loader) => {
|
|
82
|
-
if (loader.locationId === locationId)
|
|
83
|
-
loaders.push(loader);
|
|
84
|
-
});
|
|
85
|
-
const [aggregatedStocks] = await this.stockService.findAggregatedStocks({});
|
|
86
|
-
// Collect loaderIds that currently have stock
|
|
87
|
-
const loaderIdsWithStock = new Set(aggregatedStocks.map((s) => s.loaderId).filter(Boolean));
|
|
88
|
-
// Find targetLoaderIds booked in not-yet-executed transfer order items
|
|
89
|
-
const bookedRows = await this.transferOrderService.transferOrderRepository.manager
|
|
90
|
-
.getRepository(TransferOrderItemEntityClass)
|
|
91
|
-
.createQueryBuilder('toi')
|
|
92
|
-
.select('toi."targetLoaderId"', 'targetLoaderId')
|
|
93
|
-
.where('toi."targetLoaderId" IS NOT NULL')
|
|
94
|
-
.andWhere('toi."removedAt" IS NULL')
|
|
95
|
-
.leftJoin(TransferOrderChangeEntityClass, 'toc', 'toc."itemId" = toi.id')
|
|
96
|
-
.andWhere('toc.id IS NULL')
|
|
97
|
-
.distinct(true)
|
|
98
|
-
.getRawMany();
|
|
99
|
-
const bookedLoaderIdSet = new Set(bookedRows.map((r) => r.targetLoaderId));
|
|
100
|
-
// Add empty loaders (no stock) that are not booked as a pending targetLoader
|
|
101
|
-
const collectedIds = new Set(loaders.map((l) => l.id));
|
|
102
|
-
for (const loader of allLoaders) {
|
|
103
|
-
if (!loaderIdsWithStock.has(loader.id) &&
|
|
104
|
-
!bookedLoaderIdSet.has(loader.id) &&
|
|
105
|
-
!collectedIds.has(loader.id)) {
|
|
106
|
-
loaders.push(loader);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
return loaders;
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
__decorate([
|
|
113
|
-
Query(() => LoaderDto),
|
|
114
|
-
WmsOperation({ resource: 'loader', action: 'read' }),
|
|
115
|
-
__param(0, Args('id', { type: () => ID })),
|
|
116
|
-
__metadata("design:type", Function),
|
|
117
|
-
__metadata("design:paramtypes", [String]),
|
|
118
|
-
__metadata("design:returntype", Promise)
|
|
119
|
-
], LoaderQuery.prototype, "loader", null);
|
|
120
|
-
__decorate([
|
|
121
|
-
Query(() => Loaders),
|
|
122
|
-
WmsOperation({ resource: 'loader', action: 'read' }),
|
|
123
|
-
__param(0, Args()),
|
|
124
|
-
__metadata("design:type", Function),
|
|
125
|
-
__metadata("design:paramtypes", [FindLoaderArgs]),
|
|
126
|
-
__metadata("design:returntype", Promise)
|
|
127
|
-
], LoaderQuery.prototype, "loaders", null);
|
|
128
|
-
__decorate([
|
|
129
|
-
Query(() => LoaderTypeDto),
|
|
130
|
-
WmsOperation({ resource: 'loader', action: 'read' }),
|
|
131
|
-
__param(0, Args('id', { type: () => ID })),
|
|
132
|
-
__metadata("design:type", Function),
|
|
133
|
-
__metadata("design:paramtypes", [String]),
|
|
134
|
-
__metadata("design:returntype", Promise)
|
|
135
|
-
], LoaderQuery.prototype, "loaderType", null);
|
|
136
|
-
__decorate([
|
|
137
|
-
Query(() => LoaderTypes),
|
|
138
|
-
WmsOperation({ resource: 'loader', action: 'read' }),
|
|
139
|
-
__param(0, Args()),
|
|
140
|
-
__metadata("design:type", Function),
|
|
141
|
-
__metadata("design:paramtypes", [FindLoaderTypeArgs]),
|
|
142
|
-
__metadata("design:returntype", Promise)
|
|
143
|
-
], LoaderQuery.prototype, "loaderTypes", null);
|
|
144
|
-
__decorate([
|
|
145
|
-
Query(() => [LoaderUnitDto]),
|
|
146
|
-
WmsOperation({ resource: 'loader', action: 'read' }),
|
|
147
|
-
__param(0, Args('type', { type: () => LoaderUnit })),
|
|
148
|
-
__metadata("design:type", Function),
|
|
149
|
-
__metadata("design:paramtypes", [String]),
|
|
150
|
-
__metadata("design:returntype", Promise)
|
|
151
|
-
], LoaderQuery.prototype, "loaderUnits", null);
|
|
152
|
-
__decorate([
|
|
153
|
-
Query(() => [LoaderDto]),
|
|
154
|
-
WmsOperation({ resource: 'loader', action: 'read' }),
|
|
155
|
-
__param(0, Args('locationId', { type: () => ID, nullable: true })),
|
|
156
|
-
__metadata("design:type", Function),
|
|
157
|
-
__metadata("design:paramtypes", [String]),
|
|
158
|
-
__metadata("design:returntype", Promise)
|
|
159
|
-
], LoaderQuery.prototype, "availableLoaders", null);
|
|
160
|
-
LoaderQuery = __decorate([
|
|
161
|
-
Injectable(),
|
|
162
|
-
__metadata("design:paramtypes", [LoaderService,
|
|
163
|
-
StockService,
|
|
164
|
-
TransferOrderService])
|
|
165
|
-
], LoaderQuery);
|
|
166
|
-
|
|
167
|
-
export { LoaderQuery };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Query, Args, ID } from '@nestjs/graphql';
|
|
4
|
-
import { LocationService } from '@rytass/wms-module-core';
|
|
5
|
-
import { LocationDto, Locations } from '../dto/location.dto.js';
|
|
6
|
-
import { FindLocationArgs } from '../inputs/find-location.args.js';
|
|
7
|
-
import '../auth/wms-auth.guard.js';
|
|
8
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
9
|
-
|
|
10
|
-
let LocationQuery = class LocationQuery {
|
|
11
|
-
locationService;
|
|
12
|
-
constructor(locationService) {
|
|
13
|
-
this.locationService = locationService;
|
|
14
|
-
}
|
|
15
|
-
location(id) {
|
|
16
|
-
return this.locationService.locationReposistory
|
|
17
|
-
.createQueryBuilder('location')
|
|
18
|
-
.leftJoinAndSelect('location.children', 'children')
|
|
19
|
-
.where('location.id = :id', { id })
|
|
20
|
-
.getOneOrFail();
|
|
21
|
-
}
|
|
22
|
-
async locations(args) {
|
|
23
|
-
const [items, total] = await this.locationService.findMany({
|
|
24
|
-
...args,
|
|
25
|
-
wildcard: args.key ? { key: 'key', value: args.key } : undefined,
|
|
26
|
-
});
|
|
27
|
-
return { items, total };
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
__decorate([
|
|
31
|
-
Query(() => LocationDto),
|
|
32
|
-
WmsOperation({ resource: 'location', action: 'read' }),
|
|
33
|
-
__param(0, Args('id', { type: () => ID })),
|
|
34
|
-
__metadata("design:type", Function),
|
|
35
|
-
__metadata("design:paramtypes", [String]),
|
|
36
|
-
__metadata("design:returntype", Promise)
|
|
37
|
-
], LocationQuery.prototype, "location", null);
|
|
38
|
-
__decorate([
|
|
39
|
-
Query(() => Locations),
|
|
40
|
-
WmsOperation({ resource: 'location', action: 'read' }),
|
|
41
|
-
__param(0, Args()),
|
|
42
|
-
__metadata("design:type", Function),
|
|
43
|
-
__metadata("design:paramtypes", [FindLocationArgs]),
|
|
44
|
-
__metadata("design:returntype", Promise)
|
|
45
|
-
], LocationQuery.prototype, "locations", null);
|
|
46
|
-
LocationQuery = __decorate([
|
|
47
|
-
Injectable(),
|
|
48
|
-
__metadata("design:paramtypes", [LocationService])
|
|
49
|
-
], LocationQuery);
|
|
50
|
-
|
|
51
|
-
export { LocationQuery };
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Query, Args, ID } from '@nestjs/graphql';
|
|
4
|
-
import '../dto/loader-type.dto.js';
|
|
5
|
-
import '../dto/loader.dto.js';
|
|
6
|
-
import { MaterialDto, Materials } from '../dto/material.dto.js';
|
|
7
|
-
import '../dto/material-unit.dto.js';
|
|
8
|
-
import '../dto/stock.dto.js';
|
|
9
|
-
import '../dto/sale-order.dto.js';
|
|
10
|
-
import '../dto/receive-inventory-order.dto.js';
|
|
11
|
-
import '../dto/receive-inventory-order-item.dto.js';
|
|
12
|
-
import '../dto/ship-inventory-order.dto.js';
|
|
13
|
-
import '../dto/ship-inventory-order-item.dto.js';
|
|
14
|
-
import '../dto/hold-inventory-order.dto.js';
|
|
15
|
-
import '../dto/hold-inventory-order-item.dto.js';
|
|
16
|
-
import '../dto/allocate-inventory-order.dto.js';
|
|
17
|
-
import '../dto/allocate-inventory-order-item.dto.js';
|
|
18
|
-
import '../dto/transfer-order.dto.js';
|
|
19
|
-
import '../dto/transfer-order-item.dto.js';
|
|
20
|
-
import '../dto/transfer-customer-order.dto.js';
|
|
21
|
-
import '../dto/transfer-customer-order-item.dto.js';
|
|
22
|
-
import '../dto/transfer-vendor-order.dto.js';
|
|
23
|
-
import '../dto/transfer-vendor-order-item.dto.js';
|
|
24
|
-
import '../dto/scrape-order.dto.js';
|
|
25
|
-
import '../dto/scrape-order-item.dto.js';
|
|
26
|
-
import '../dto/quality-inspection-order.dto.js';
|
|
27
|
-
import '../dto/quality-inspection-order-item.dto.js';
|
|
28
|
-
import '../dto/inventory-count-order.dto.js';
|
|
29
|
-
import '../dto/consumption-order.dto.js';
|
|
30
|
-
import '../dto/consumption-order-item.dto.js';
|
|
31
|
-
import '../dto/order-reference.dto.js';
|
|
32
|
-
import { MaterialService } from '@rytass/wms-module-core';
|
|
33
|
-
import { FindMaterialArgs } from '../inputs/find-material.args.js';
|
|
34
|
-
import '../auth/wms-auth.guard.js';
|
|
35
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
36
|
-
|
|
37
|
-
let MaterialQuery = class MaterialQuery {
|
|
38
|
-
materialService;
|
|
39
|
-
constructor(materialService) {
|
|
40
|
-
this.materialService = materialService;
|
|
41
|
-
}
|
|
42
|
-
material(id, key) {
|
|
43
|
-
const where = id ? { id } : key ? { key } : undefined;
|
|
44
|
-
if (!where) {
|
|
45
|
-
throw new Error('Either id or key must be provided');
|
|
46
|
-
}
|
|
47
|
-
return this.materialService.materialRepository.findOneByOrFail(where);
|
|
48
|
-
}
|
|
49
|
-
async materials(args) {
|
|
50
|
-
const [items, total] = await this.materialService.findMany({
|
|
51
|
-
...args,
|
|
52
|
-
wildcard: args.key ? { key: 'key', value: args.key } : undefined,
|
|
53
|
-
});
|
|
54
|
-
return { items, total };
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
__decorate([
|
|
58
|
-
Query(() => MaterialDto),
|
|
59
|
-
WmsOperation({ resource: 'material', action: 'read' }),
|
|
60
|
-
__param(0, Args('id', { type: () => ID, nullable: true })),
|
|
61
|
-
__param(1, Args('key', { type: () => String, nullable: true })),
|
|
62
|
-
__metadata("design:type", Function),
|
|
63
|
-
__metadata("design:paramtypes", [String, String]),
|
|
64
|
-
__metadata("design:returntype", Promise)
|
|
65
|
-
], MaterialQuery.prototype, "material", null);
|
|
66
|
-
__decorate([
|
|
67
|
-
Query(() => Materials),
|
|
68
|
-
WmsOperation({ resource: 'material', action: 'read' }),
|
|
69
|
-
__param(0, Args()),
|
|
70
|
-
__metadata("design:type", Function),
|
|
71
|
-
__metadata("design:paramtypes", [FindMaterialArgs]),
|
|
72
|
-
__metadata("design:returntype", Promise)
|
|
73
|
-
], MaterialQuery.prototype, "materials", null);
|
|
74
|
-
MaterialQuery = __decorate([
|
|
75
|
-
Injectable(),
|
|
76
|
-
__metadata("design:paramtypes", [MaterialService])
|
|
77
|
-
], MaterialQuery);
|
|
78
|
-
|
|
79
|
-
export { MaterialQuery };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Query, Args, Resolver } from '@nestjs/graphql';
|
|
4
|
-
import { OrderReferenceService } from '@rytass/wms-module-core';
|
|
5
|
-
import { OrderReferences } from '../dto/order-reference.dto.js';
|
|
6
|
-
import { FindOrderReferenceArgs } from '../inputs/order-reference.args.js';
|
|
7
|
-
import '../auth/wms-auth.guard.js';
|
|
8
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
9
|
-
|
|
10
|
-
let OrderReferenceQuery = class OrderReferenceQuery {
|
|
11
|
-
orderReferenceService;
|
|
12
|
-
constructor(orderReferenceService) {
|
|
13
|
-
this.orderReferenceService = orderReferenceService;
|
|
14
|
-
}
|
|
15
|
-
async orderReferences(args) {
|
|
16
|
-
const [items, total] = await this.orderReferenceService.findMany(args);
|
|
17
|
-
return { items, total };
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
__decorate([
|
|
21
|
-
Query(() => OrderReferences),
|
|
22
|
-
WmsOperation({ resource: 'order-reference', action: 'read' }),
|
|
23
|
-
__param(0, Args()),
|
|
24
|
-
__metadata("design:type", Function),
|
|
25
|
-
__metadata("design:paramtypes", [FindOrderReferenceArgs]),
|
|
26
|
-
__metadata("design:returntype", Promise)
|
|
27
|
-
], OrderReferenceQuery.prototype, "orderReferences", null);
|
|
28
|
-
OrderReferenceQuery = __decorate([
|
|
29
|
-
Injectable(),
|
|
30
|
-
Resolver(),
|
|
31
|
-
__metadata("design:paramtypes", [OrderReferenceService])
|
|
32
|
-
], OrderReferenceQuery);
|
|
33
|
-
|
|
34
|
-
export { OrderReferenceQuery };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Query, Args, ID } from '@nestjs/graphql';
|
|
4
|
-
import { ReceiveInventoryOrderService } from '@rytass/wms-module-core';
|
|
5
|
-
import '../dto/loader-type.dto.js';
|
|
6
|
-
import '../dto/loader.dto.js';
|
|
7
|
-
import '../dto/material.dto.js';
|
|
8
|
-
import '../dto/material-unit.dto.js';
|
|
9
|
-
import '../dto/stock.dto.js';
|
|
10
|
-
import '../dto/sale-order.dto.js';
|
|
11
|
-
import { ReceiveInventoryOrderDto, ReceiveInventoryOrders } from '../dto/receive-inventory-order.dto.js';
|
|
12
|
-
import '../dto/receive-inventory-order-item.dto.js';
|
|
13
|
-
import '../dto/ship-inventory-order.dto.js';
|
|
14
|
-
import '../dto/ship-inventory-order-item.dto.js';
|
|
15
|
-
import '../dto/hold-inventory-order.dto.js';
|
|
16
|
-
import '../dto/hold-inventory-order-item.dto.js';
|
|
17
|
-
import '../dto/allocate-inventory-order.dto.js';
|
|
18
|
-
import '../dto/allocate-inventory-order-item.dto.js';
|
|
19
|
-
import '../dto/transfer-order.dto.js';
|
|
20
|
-
import '../dto/transfer-order-item.dto.js';
|
|
21
|
-
import '../dto/transfer-customer-order.dto.js';
|
|
22
|
-
import '../dto/transfer-customer-order-item.dto.js';
|
|
23
|
-
import '../dto/transfer-vendor-order.dto.js';
|
|
24
|
-
import '../dto/transfer-vendor-order-item.dto.js';
|
|
25
|
-
import '../dto/scrape-order.dto.js';
|
|
26
|
-
import '../dto/scrape-order-item.dto.js';
|
|
27
|
-
import '../dto/quality-inspection-order.dto.js';
|
|
28
|
-
import '../dto/quality-inspection-order-item.dto.js';
|
|
29
|
-
import '../dto/inventory-count-order.dto.js';
|
|
30
|
-
import '../dto/consumption-order.dto.js';
|
|
31
|
-
import '../dto/consumption-order-item.dto.js';
|
|
32
|
-
import '../dto/order-reference.dto.js';
|
|
33
|
-
import { FindReceiveInventoryOrderArgs } from '../inputs/find-receive-inventory-order.args.js';
|
|
34
|
-
import '../auth/wms-auth.guard.js';
|
|
35
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
36
|
-
|
|
37
|
-
let ReceiveInventoryOrderQuery = class ReceiveInventoryOrderQuery {
|
|
38
|
-
receiveInventoryOrderService;
|
|
39
|
-
constructor(receiveInventoryOrderService) {
|
|
40
|
-
this.receiveInventoryOrderService = receiveInventoryOrderService;
|
|
41
|
-
}
|
|
42
|
-
async receiveInventoryOrder(id) {
|
|
43
|
-
return this.receiveInventoryOrderService
|
|
44
|
-
.selectQueryBuilder('orders')
|
|
45
|
-
.where('orders.id = :id', { id })
|
|
46
|
-
.getRawOne();
|
|
47
|
-
}
|
|
48
|
-
async receiveInventoryOrders(args) {
|
|
49
|
-
const [items, total] = await this.receiveInventoryOrderService.findMany({
|
|
50
|
-
...args,
|
|
51
|
-
wildcard: args.key ? { key: 'key', value: args.key } : undefined,
|
|
52
|
-
});
|
|
53
|
-
return { items, total };
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
__decorate([
|
|
57
|
-
Query(() => ReceiveInventoryOrderDto),
|
|
58
|
-
WmsOperation({ resource: 'receive-inventory-order', action: 'read' }),
|
|
59
|
-
__param(0, Args('id', { type: () => ID })),
|
|
60
|
-
__metadata("design:type", Function),
|
|
61
|
-
__metadata("design:paramtypes", [String]),
|
|
62
|
-
__metadata("design:returntype", Promise)
|
|
63
|
-
], ReceiveInventoryOrderQuery.prototype, "receiveInventoryOrder", null);
|
|
64
|
-
__decorate([
|
|
65
|
-
Query(() => ReceiveInventoryOrders),
|
|
66
|
-
WmsOperation({ resource: 'receive-inventory-order', action: 'read' }),
|
|
67
|
-
__param(0, Args()),
|
|
68
|
-
__metadata("design:type", Function),
|
|
69
|
-
__metadata("design:paramtypes", [FindReceiveInventoryOrderArgs]),
|
|
70
|
-
__metadata("design:returntype", Promise)
|
|
71
|
-
], ReceiveInventoryOrderQuery.prototype, "receiveInventoryOrders", null);
|
|
72
|
-
ReceiveInventoryOrderQuery = __decorate([
|
|
73
|
-
Injectable(),
|
|
74
|
-
__metadata("design:paramtypes", [ReceiveInventoryOrderService])
|
|
75
|
-
], ReceiveInventoryOrderQuery);
|
|
76
|
-
|
|
77
|
-
export { ReceiveInventoryOrderQuery };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Query, Args, ID } from '@nestjs/graphql';
|
|
4
|
-
import { SaleOrderService } from '@rytass/wms-module-core';
|
|
5
|
-
import { FindSaleOrderArgs } from '../inputs/find-sale-order.args.js';
|
|
6
|
-
import '../auth/wms-auth.guard.js';
|
|
7
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
8
|
-
|
|
9
|
-
let SaleOrderQuery = class SaleOrderQuery {
|
|
10
|
-
saleOrderService;
|
|
11
|
-
constructor(saleOrderService) {
|
|
12
|
-
this.saleOrderService = saleOrderService;
|
|
13
|
-
}
|
|
14
|
-
async saleOrderDistinctIds(args) {
|
|
15
|
-
const builder = this.saleOrderService.saleOrderRepository
|
|
16
|
-
.createQueryBuilder('so')
|
|
17
|
-
.select('DISTINCT so.id', 'id');
|
|
18
|
-
if (args?.key)
|
|
19
|
-
builder.where('so.id LIKE :key', {
|
|
20
|
-
key: `%${args.key}%`,
|
|
21
|
-
});
|
|
22
|
-
if (args?.offset !== undefined && args.offset >= 0)
|
|
23
|
-
builder.skip(args.offset);
|
|
24
|
-
if (args?.limit !== undefined && args.limit > 0)
|
|
25
|
-
builder.take(args.limit);
|
|
26
|
-
const result = await builder.getRawMany();
|
|
27
|
-
return result.map(({ id }) => id);
|
|
28
|
-
}
|
|
29
|
-
async saleOrders(id) {
|
|
30
|
-
const result = await this.saleOrderService.saleOrderRepository.findBy({
|
|
31
|
-
id,
|
|
32
|
-
});
|
|
33
|
-
return result.map(({ serialId }) => serialId);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
__decorate([
|
|
37
|
-
Query(() => [String]),
|
|
38
|
-
WmsOperation({ resource: 'sale-order', action: 'read' }),
|
|
39
|
-
__param(0, Args()),
|
|
40
|
-
__metadata("design:type", Function),
|
|
41
|
-
__metadata("design:paramtypes", [FindSaleOrderArgs]),
|
|
42
|
-
__metadata("design:returntype", Promise)
|
|
43
|
-
], SaleOrderQuery.prototype, "saleOrderDistinctIds", null);
|
|
44
|
-
__decorate([
|
|
45
|
-
Query(() => [String]),
|
|
46
|
-
WmsOperation({ resource: 'sale-order', action: 'read' }),
|
|
47
|
-
__param(0, Args('id', { type: () => ID })),
|
|
48
|
-
__metadata("design:type", Function),
|
|
49
|
-
__metadata("design:paramtypes", [String]),
|
|
50
|
-
__metadata("design:returntype", Promise)
|
|
51
|
-
], SaleOrderQuery.prototype, "saleOrders", null);
|
|
52
|
-
SaleOrderQuery = __decorate([
|
|
53
|
-
Injectable(),
|
|
54
|
-
__metadata("design:paramtypes", [SaleOrderService])
|
|
55
|
-
], SaleOrderQuery);
|
|
56
|
-
|
|
57
|
-
export { SaleOrderQuery };
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Query, Args, ID } from '@nestjs/graphql';
|
|
4
|
-
import { ShipInventoryOrderService } from '@rytass/wms-module-core';
|
|
5
|
-
import '../dto/loader-type.dto.js';
|
|
6
|
-
import '../dto/loader.dto.js';
|
|
7
|
-
import '../dto/material.dto.js';
|
|
8
|
-
import '../dto/material-unit.dto.js';
|
|
9
|
-
import '../dto/stock.dto.js';
|
|
10
|
-
import '../dto/sale-order.dto.js';
|
|
11
|
-
import '../dto/receive-inventory-order.dto.js';
|
|
12
|
-
import '../dto/receive-inventory-order-item.dto.js';
|
|
13
|
-
import { ShipInventoryOrderDto, ShipInventoryOrders } from '../dto/ship-inventory-order.dto.js';
|
|
14
|
-
import '../dto/ship-inventory-order-item.dto.js';
|
|
15
|
-
import '../dto/hold-inventory-order.dto.js';
|
|
16
|
-
import '../dto/hold-inventory-order-item.dto.js';
|
|
17
|
-
import '../dto/allocate-inventory-order.dto.js';
|
|
18
|
-
import '../dto/allocate-inventory-order-item.dto.js';
|
|
19
|
-
import '../dto/transfer-order.dto.js';
|
|
20
|
-
import '../dto/transfer-order-item.dto.js';
|
|
21
|
-
import '../dto/transfer-customer-order.dto.js';
|
|
22
|
-
import '../dto/transfer-customer-order-item.dto.js';
|
|
23
|
-
import '../dto/transfer-vendor-order.dto.js';
|
|
24
|
-
import '../dto/transfer-vendor-order-item.dto.js';
|
|
25
|
-
import '../dto/scrape-order.dto.js';
|
|
26
|
-
import '../dto/scrape-order-item.dto.js';
|
|
27
|
-
import '../dto/quality-inspection-order.dto.js';
|
|
28
|
-
import '../dto/quality-inspection-order-item.dto.js';
|
|
29
|
-
import '../dto/inventory-count-order.dto.js';
|
|
30
|
-
import '../dto/consumption-order.dto.js';
|
|
31
|
-
import '../dto/consumption-order-item.dto.js';
|
|
32
|
-
import '../dto/order-reference.dto.js';
|
|
33
|
-
import { FindShipInventoryOrderArgs } from '../inputs/find-ship-inventory-order.args.js';
|
|
34
|
-
import '../auth/wms-auth.guard.js';
|
|
35
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
36
|
-
|
|
37
|
-
let ShipInventoryOrderQuery = class ShipInventoryOrderQuery {
|
|
38
|
-
shipInventoryOrderService;
|
|
39
|
-
constructor(shipInventoryOrderService) {
|
|
40
|
-
this.shipInventoryOrderService = shipInventoryOrderService;
|
|
41
|
-
}
|
|
42
|
-
async shipInventoryOrder(id) {
|
|
43
|
-
return this.shipInventoryOrderService
|
|
44
|
-
.selectQueryBuilder('orders')
|
|
45
|
-
.where('orders.id = :id', { id })
|
|
46
|
-
.getRawOne();
|
|
47
|
-
}
|
|
48
|
-
async shipInventoryOrders(args) {
|
|
49
|
-
const [items, total] = await this.shipInventoryOrderService.findMany({
|
|
50
|
-
...args,
|
|
51
|
-
wildcard: args.key ? { key: 'key', value: args.key } : undefined,
|
|
52
|
-
});
|
|
53
|
-
return { items, total };
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
__decorate([
|
|
57
|
-
Query(() => ShipInventoryOrderDto),
|
|
58
|
-
WmsOperation({ resource: 'ship-inventory-order', action: 'read' }),
|
|
59
|
-
__param(0, Args('id', { type: () => ID })),
|
|
60
|
-
__metadata("design:type", Function),
|
|
61
|
-
__metadata("design:paramtypes", [String]),
|
|
62
|
-
__metadata("design:returntype", Promise)
|
|
63
|
-
], ShipInventoryOrderQuery.prototype, "shipInventoryOrder", null);
|
|
64
|
-
__decorate([
|
|
65
|
-
Query(() => ShipInventoryOrders),
|
|
66
|
-
WmsOperation({ resource: 'ship-inventory-order', action: 'read' }),
|
|
67
|
-
__param(0, Args()),
|
|
68
|
-
__metadata("design:type", Function),
|
|
69
|
-
__metadata("design:paramtypes", [FindShipInventoryOrderArgs]),
|
|
70
|
-
__metadata("design:returntype", Promise)
|
|
71
|
-
], ShipInventoryOrderQuery.prototype, "shipInventoryOrders", null);
|
|
72
|
-
ShipInventoryOrderQuery = __decorate([
|
|
73
|
-
Injectable(),
|
|
74
|
-
__metadata("design:paramtypes", [ShipInventoryOrderService])
|
|
75
|
-
], ShipInventoryOrderQuery);
|
|
76
|
-
|
|
77
|
-
export { ShipInventoryOrderQuery };
|