@rytass/wms-module-graphql 0.10.0 → 0.10.2
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.
|
@@ -365,7 +365,7 @@ because it was exercised.
|
|
|
365
365
|
| `rxjs` | 7.x | 7.8.x | One import (the mutation interceptor) |
|
|
366
366
|
| `@nestjs/event-emitter` | 2.x – 3.x (optional) | 3.1.0 | The next release is 12.x, which is ESM-only |
|
|
367
367
|
| `@rytass/wms-base-nestjs-module` | 0.4.x | 0.4.0 | Imported directly by this package (the warehouse-map mutation and the location resolver) and shared with `@rytass/wms-module-core`. Declared as a peer since 0.10.0 so both see the same copy |
|
|
368
|
-
| TypeORM | 0.3.x
|
|
368
|
+
| TypeORM | 0.3.x – 1.x | 1.1.1 | The suite is run against both 0.3.31 and 1.1.1. 0.2.x is not supported. TypeORM 1.x additionally needs `@nestjs/typeorm` >= 11.0.1 |
|
|
369
369
|
| PostgreSQL | — | 14+ | Native dialect |
|
|
370
370
|
| Node.js | — | 20 LTS / 22 | 18 deprecated, 24 untested |
|
|
371
371
|
| Next.js | 15.x – 16.x | 15.5.x Pages | Only `next/router` and `next/navigation` are used; App Router unsupported (see §13.11) |
|
package/index.cjs.js
CHANGED
|
@@ -2351,9 +2351,7 @@ let LoaderQuery = class LoaderQuery {
|
|
|
2351
2351
|
if (loader.locationId === locationId)
|
|
2352
2352
|
loaders.push(loader);
|
|
2353
2353
|
});
|
|
2354
|
-
const [aggregatedStocks] = await this.stockService.findAggregatedStocks({
|
|
2355
|
-
aggregated: true,
|
|
2356
|
-
});
|
|
2354
|
+
const [aggregatedStocks] = await this.stockService.findAggregatedStocks({});
|
|
2357
2355
|
// Collect loaderIds that currently have stock
|
|
2358
2356
|
const loaderIdsWithStock = new Set(aggregatedStocks.map((s) => s.loaderId).filter(Boolean));
|
|
2359
2357
|
// Find targetLoaderIds booked in not-yet-executed transfer order items
|
|
@@ -2700,16 +2698,12 @@ let StockQuery = class StockQuery {
|
|
|
2700
2698
|
async aggregatedStocks(args) {
|
|
2701
2699
|
const [items, total] = await this.stockService.findAggregatedStocks({
|
|
2702
2700
|
...args,
|
|
2703
|
-
aggregated: true,
|
|
2704
2701
|
aggregatedKeys: args.ids?.length ? args.ids : [],
|
|
2705
2702
|
});
|
|
2706
2703
|
return { items, total };
|
|
2707
2704
|
}
|
|
2708
2705
|
async changeLogs(args) {
|
|
2709
|
-
const [items, total] = await this.stockService.findChangeLogs(
|
|
2710
|
-
...args,
|
|
2711
|
-
aggregated: false,
|
|
2712
|
-
});
|
|
2706
|
+
const [items, total] = await this.stockService.findChangeLogs(args);
|
|
2713
2707
|
return {
|
|
2714
2708
|
items: items.map((item) => ({
|
|
2715
2709
|
...item,
|
|
@@ -3512,7 +3506,6 @@ let LoaderResolver = class LoaderResolver {
|
|
|
3512
3506
|
async totalQuantity({ id }) {
|
|
3513
3507
|
const [aggregatedStocks] = await this.stockService.findAggregatedStocks({
|
|
3514
3508
|
loaderId: id,
|
|
3515
|
-
aggregated: true,
|
|
3516
3509
|
});
|
|
3517
3510
|
if (!aggregatedStocks.length)
|
|
3518
3511
|
return 0;
|
|
@@ -3573,7 +3566,6 @@ let MaterialResolver = class MaterialResolver {
|
|
|
3573
3566
|
// TODO: should be compatible with dataloader in the future
|
|
3574
3567
|
const [items] = await this.stockService.findAggregatedStocks({
|
|
3575
3568
|
materialId: id,
|
|
3576
|
-
aggregated: true,
|
|
3577
3569
|
});
|
|
3578
3570
|
return items;
|
|
3579
3571
|
}
|
|
@@ -79,9 +79,7 @@ let LoaderQuery = class LoaderQuery {
|
|
|
79
79
|
if (loader.locationId === locationId)
|
|
80
80
|
loaders.push(loader);
|
|
81
81
|
});
|
|
82
|
-
const [aggregatedStocks] = await this.stockService.findAggregatedStocks({
|
|
83
|
-
aggregated: true,
|
|
84
|
-
});
|
|
82
|
+
const [aggregatedStocks] = await this.stockService.findAggregatedStocks({});
|
|
85
83
|
// Collect loaderIds that currently have stock
|
|
86
84
|
const loaderIdsWithStock = new Set(aggregatedStocks.map((s) => s.loaderId).filter(Boolean));
|
|
87
85
|
// Find targetLoaderIds booked in not-yet-executed transfer order items
|
|
@@ -50,16 +50,12 @@ let StockQuery = class StockQuery {
|
|
|
50
50
|
async aggregatedStocks(args) {
|
|
51
51
|
const [items, total] = await this.stockService.findAggregatedStocks({
|
|
52
52
|
...args,
|
|
53
|
-
aggregated: true,
|
|
54
53
|
aggregatedKeys: args.ids?.length ? args.ids : [],
|
|
55
54
|
});
|
|
56
55
|
return { items, total };
|
|
57
56
|
}
|
|
58
57
|
async changeLogs(args) {
|
|
59
|
-
const [items, total] = await this.stockService.findChangeLogs(
|
|
60
|
-
...args,
|
|
61
|
-
aggregated: false,
|
|
62
|
-
});
|
|
58
|
+
const [items, total] = await this.stockService.findChangeLogs(args);
|
|
63
59
|
return {
|
|
64
60
|
items: items.map((item) => ({
|
|
65
61
|
...item,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rytass/wms-module-graphql",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "Rytass WMS Module — GraphQL schema, resolvers and DTOs for warehouse management",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rytass",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"@nestjs/core": "^10.0.0 || ^11.0.0",
|
|
63
63
|
"@nestjs/graphql": "^13.0.0",
|
|
64
64
|
"@rytass/wms-base-nestjs-module": "^0.4.0",
|
|
65
|
-
"@rytass/wms-module-core": "^0.
|
|
65
|
+
"@rytass/wms-module-core": "^0.8.1",
|
|
66
66
|
"graphql": "^16.0.0",
|
|
67
67
|
"reflect-metadata": "^0.1.13 || ^0.2.0",
|
|
68
68
|
"rxjs": "^7.0.0",
|
|
69
|
-
"typeorm": "^0.3.0",
|
|
69
|
+
"typeorm": "^0.3.0 || ^1.0.0",
|
|
70
70
|
"@nestjs/event-emitter": "^2.0.0 || ^3.0.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependenciesMeta": {
|