@rytass/wms-module-graphql 0.10.2 → 0.11.1
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/adapters/event-emitter.d.mts +6 -0
- package/adapters/member-base.d.mts +6 -0
- package/index.cjs.js +1009 -98
- package/index.d.mts +6 -0
- package/{index.js → index.mjs} +11 -11
- package/lib/auth/{wms-auth.guard.js → wms-auth.guard.mjs} +1 -1
- package/lib/auth/{wms-operation.decorator.js → wms-operation.decorator.mjs} +3 -3
- package/lib/dto/{allocate-inventory-order.dto.js → allocate-inventory-order.dto.mjs} +1 -1
- package/lib/dto/{batch.dto.js → batch.dto.mjs} +1 -1
- package/lib/dto/consumption-order-item.dto.d.ts +17 -0
- package/lib/dto/consumption-order-item.dto.mjs +43 -0
- package/lib/dto/consumption-order.dto.d.ts +14 -0
- package/lib/dto/consumption-order.dto.mjs +52 -0
- package/lib/dto/{hold-inventory-order-item.dto.js → hold-inventory-order-item.dto.mjs} +1 -1
- package/lib/dto/{hold-inventory-order.dto.js → hold-inventory-order.dto.mjs} +2 -2
- package/lib/dto/index.d.ts +3 -0
- package/lib/dto/inventory-count-order.dto.d.ts +7 -1
- package/lib/dto/{inventory-count-order.dto.js → inventory-count-order.dto.mjs} +12 -2
- package/lib/dto/{loader-type.dto.js → loader-type.dto.mjs} +1 -1
- package/lib/dto/{loader.dto.js → loader.dto.mjs} +1 -1
- package/lib/dto/{location.dto.js → location.dto.mjs} +1 -1
- package/lib/dto/{material-unit.dto.js → material-unit.dto.mjs} +1 -1
- package/lib/dto/{material.dto.js → material.dto.mjs} +1 -1
- package/lib/dto/order-reference.dto.d.ts +22 -0
- package/lib/dto/order-reference.dto.mjs +73 -0
- package/lib/dto/{quality-inspection-order.dto.js → quality-inspection-order.dto.mjs} +2 -2
- package/lib/dto/{receive-inventory-order-item.dto.js → receive-inventory-order-item.dto.mjs} +1 -1
- package/lib/dto/{receive-inventory-order.dto.js → receive-inventory-order.dto.mjs} +2 -2
- package/lib/dto/{scrape-order-item.dto.js → scrape-order-item.dto.mjs} +1 -1
- package/lib/dto/{scrape-order.dto.js → scrape-order.dto.mjs} +2 -2
- package/lib/dto/{ship-inventory-order-item.dto.js → ship-inventory-order-item.dto.mjs} +1 -1
- package/lib/dto/{ship-inventory-order.dto.js → ship-inventory-order.dto.mjs} +2 -2
- package/lib/dto/stock.dto.d.ts +15 -0
- package/lib/dto/{stock.dto.js → stock.dto.mjs} +29 -1
- package/lib/dto/{transfer-customer-order-item.dto.js → transfer-customer-order-item.dto.mjs} +1 -1
- package/lib/dto/{transfer-customer-order.dto.js → transfer-customer-order.dto.mjs} +2 -2
- package/lib/dto/{transfer-order-item.dto.js → transfer-order-item.dto.mjs} +1 -1
- package/lib/dto/{transfer-order.dto.js → transfer-order.dto.mjs} +2 -2
- package/lib/dto/{transfer-vendor-order-item.dto.js → transfer-vendor-order-item.dto.mjs} +1 -1
- package/lib/dto/{transfer-vendor-order.dto.js → transfer-vendor-order.dto.mjs} +2 -2
- package/lib/events/operation-result-map.d.ts +13 -0
- package/lib/events/typed-maps.d.ts +17 -7
- package/lib/events/{wms-mutation-event.decorator.js → wms-mutation-event.decorator.mjs} +2 -2
- package/lib/events/wms-mutation.interceptor.d.ts +11 -9
- package/lib/events/wms-mutation.interceptor.mjs +64 -0
- package/lib/graphql.module.d.ts +1 -1
- package/lib/{graphql.module.js → graphql.module.mjs} +86 -69
- package/lib/helpers/{helper.module.js → helper.module.mjs} +1 -1
- package/lib/inputs/consumption-order.args.d.ts +47 -0
- package/lib/inputs/consumption-order.args.mjs +182 -0
- package/lib/inputs/{create-allocate-inventory-order.args.js → create-allocate-inventory-order.args.mjs} +1 -1
- package/lib/inputs/{create-hold-inventory-order.args.js → create-hold-inventory-order.args.mjs} +1 -1
- package/lib/inputs/{create-material.args.js → create-material.args.mjs} +1 -1
- package/lib/inputs/{create-receive-inventory-order.args.js → create-receive-inventory-order.args.mjs} +1 -1
- package/lib/inputs/{create-ship-inventory-order.args.js → create-ship-inventory-order.args.mjs} +2 -2
- package/lib/inputs/{create-transfer-customer-order.args.js → create-transfer-customer-order.args.mjs} +1 -1
- package/lib/inputs/{create-transfer-order.args.js → create-transfer-order.args.mjs} +1 -1
- package/lib/inputs/{create-transfer-vendor-order.args.js → create-transfer-vendor-order.args.mjs} +1 -1
- package/lib/inputs/{find-allocate-inventory-order.args.js → find-allocate-inventory-order.args.mjs} +2 -2
- package/lib/inputs/{find-batch.args.js → find-batch.args.mjs} +1 -1
- package/lib/inputs/{find-hold-inventory-order.args.js → find-hold-inventory-order.args.mjs} +2 -2
- package/lib/inputs/{find-loader-type.args.js → find-loader-type.args.mjs} +2 -2
- package/lib/inputs/{find-loader.args.js → find-loader.args.mjs} +2 -2
- package/lib/inputs/{find-location.args.js → find-location.args.mjs} +1 -1
- package/lib/inputs/{find-material.args.js → find-material.args.mjs} +1 -1
- package/lib/inputs/{find-receive-inventory-order.args.js → find-receive-inventory-order.args.mjs} +2 -2
- package/lib/inputs/{find-sale-order.args.js → find-sale-order.args.mjs} +1 -1
- package/lib/inputs/{find-ship-inventory-order.args.js → find-ship-inventory-order.args.mjs} +2 -2
- package/lib/inputs/find-stock.args.d.ts +6 -0
- package/lib/inputs/{find-stock.args.js → find-stock.args.mjs} +11 -1
- package/lib/inputs/{find-transfer-order.args.js → find-transfer-order.args.mjs} +2 -2
- package/lib/inputs/{inventory-count-order.args.js → inventory-count-order.args.mjs} +1 -1
- package/lib/inputs/order-reference.args.d.ts +32 -0
- package/lib/inputs/order-reference.args.mjs +103 -0
- package/lib/inputs/split-batch.args.d.ts +6 -0
- package/lib/inputs/{split-batch.args.js → split-batch.args.mjs} +11 -0
- package/lib/inputs/{update-warehouse-map.args.js → update-warehouse-map.args.mjs} +1 -1
- package/lib/mutations/{allocate-inventory-order.mutation.js → allocate-inventory-order.mutation.mjs} +7 -7
- package/lib/mutations/consumption-order.mutation.d.ts +18 -0
- package/lib/mutations/consumption-order.mutation.mjs +90 -0
- package/lib/mutations/{hold-inventory-order.mutation.js → hold-inventory-order.mutation.mjs} +7 -7
- package/lib/mutations/{inventory-count-order.mutation.js → inventory-count-order.mutation.mjs} +6 -6
- package/lib/mutations/{loader.mutation.js → loader.mutation.mjs} +34 -31
- package/lib/mutations/{location.mutation.js → location.mutation.mjs} +6 -6
- package/lib/mutations/{material.mutation.js → material.mutation.mjs} +33 -30
- package/lib/mutations/{merge-batch.mutation.js → merge-batch.mutation.mjs} +6 -6
- package/lib/mutations/order-reference.mutation.d.ts +13 -0
- package/lib/mutations/order-reference.mutation.mjs +57 -0
- package/lib/mutations/{quality-inspection-order.mutation.js → quality-inspection-order.mutation.mjs} +6 -6
- package/lib/mutations/{receive-inventory-order.mutation.js → receive-inventory-order.mutation.mjs} +34 -31
- package/lib/mutations/{reclassify-inventory-order.mutation.js → reclassify-inventory-order.mutation.mjs} +6 -6
- package/lib/mutations/{scrape-order.mutation.js → scrape-order.mutation.mjs} +6 -6
- package/lib/mutations/{ship-inventory-order.mutation.js → ship-inventory-order.mutation.mjs} +35 -32
- package/lib/mutations/{split-batch.mutation.js → split-batch.mutation.mjs} +6 -6
- package/lib/mutations/{transfer-customer-order.mutation.js → transfer-customer-order.mutation.mjs} +7 -7
- package/lib/mutations/{transfer-order.mutation.js → transfer-order.mutation.mjs} +8 -8
- package/lib/mutations/{transfer-vendor-order.mutation.js → transfer-vendor-order.mutation.mjs} +7 -7
- package/lib/mutations/{warehouse-map.mutation.js → warehouse-map.mutation.mjs} +6 -6
- package/lib/queries/{allocate-inventory-order.query.js → allocate-inventory-order.query.mjs} +4 -4
- package/lib/queries/{batch.query.js → batch.query.mjs} +4 -4
- package/lib/queries/consumption-order.query.d.ts +9 -0
- package/lib/queries/consumption-order.query.mjs +45 -0
- package/lib/queries/{hold-inventory-order.query.js → hold-inventory-order.query.mjs} +4 -4
- package/lib/queries/{inventory-count-order.query.js → inventory-count-order.query.mjs} +4 -4
- package/lib/queries/{loader.query.js → loader.query.mjs} +33 -30
- package/lib/queries/{location.query.js → location.query.mjs} +4 -4
- package/lib/queries/{material.query.js → material.query.mjs} +31 -28
- package/lib/queries/order-reference.query.d.ts +8 -0
- package/lib/queries/order-reference.query.mjs +34 -0
- package/lib/queries/{recieve-inventory-order.query.js → recieve-inventory-order.query.mjs} +31 -28
- package/lib/queries/{sale-order.query.js → sale-order.query.mjs} +3 -3
- package/lib/queries/{ship-inventory-order.query.js → ship-inventory-order.query.mjs} +31 -28
- package/lib/queries/{stock.query.js → stock.query.mjs} +31 -28
- package/lib/queries/{transfer-order.query.js → transfer-order.query.mjs} +4 -4
- package/lib/queries/{unit.query.js → unit.query.mjs} +3 -3
- package/lib/queries/{warehouse-map.query.js → warehouse-map.query.mjs} +3 -3
- package/lib/registry/{operation-registry.js → operation-registry.mjs} +1 -1
- package/lib/resolvers/{aggregated-stock.resolver.js → aggregated-stock.resolver.mjs} +30 -27
- package/lib/resolvers/{allocate-inventory-order.resolver.js → allocate-inventory-order.resolver.mjs} +2 -2
- package/lib/resolvers/{change-log.resolver.js → change-log.resolver.mjs} +30 -27
- package/lib/resolvers/consumption-order.resolver.d.ts +40 -0
- package/lib/resolvers/consumption-order.resolver.mjs +238 -0
- package/lib/resolvers/{hold-inventory-order.resolver.js → hold-inventory-order.resolver.mjs} +2 -2
- package/lib/resolvers/{inventory-count-order.resolver.js → inventory-count-order.resolver.mjs} +5 -5
- package/lib/resolvers/loader-type.resolver.mjs +54 -0
- package/lib/resolvers/{loader.resolver.js → loader.resolver.mjs} +29 -26
- package/lib/resolvers/{location.resolver.js → location.resolver.mjs} +2 -2
- package/lib/resolvers/{material.resolver.js → material.resolver.mjs} +29 -26
- package/lib/resolvers/{merge-batch.resolver.js → merge-batch.resolver.mjs} +1 -1
- package/lib/resolvers/{receive-inventory-order.resolver.js → receive-inventory-order.resolver.mjs} +30 -27
- package/lib/resolvers/{ship-inventory-order.resolver.js → ship-inventory-order.resolver.mjs} +31 -28
- package/lib/resolvers/{split-batch.resolver.js → split-batch.resolver.mjs} +1 -1
- package/lib/resolvers/{stock.resolver.js → stock.resolver.mjs} +30 -27
- package/lib/resolvers/{transfer-customer-order.resolver.js → transfer-customer-order.resolver.mjs} +2 -2
- package/lib/resolvers/{transfer-order.resolver.js → transfer-order.resolver.mjs} +30 -27
- package/lib/resolvers/{transfer-vendor-order.resolver.js → transfer-vendor-order.resolver.mjs} +2 -2
- package/lib/resolvers/{warehouse-map.resolver.js → warehouse-map.resolver.mjs} +2 -2
- package/lib/scalars/index.d.ts +1 -0
- package/lib/scalars/json-object.scalar.d.ts +2 -0
- package/lib/scalars/json-object.scalar.mjs +62 -0
- package/package.json +36 -14
- package/lib/events/wms-mutation.interceptor.js +0 -90
- package/lib/inputs/index.d.ts +0 -0
- package/lib/resolvers/loader-type.resolver.js +0 -51
- /package/adapters/{event-emitter.js → event-emitter.mjs} +0 -0
- /package/adapters/{member-base.js → member-base.mjs} +0 -0
- /package/lib/auth/{host-skip.constant.js → host-skip.constant.mjs} +0 -0
- /package/lib/auth/{wms-auth.types.js → wms-auth.types.mjs} +0 -0
- /package/lib/dto/{allocate-inventory-order-item.dto.js → allocate-inventory-order-item.dto.mjs} +0 -0
- /package/lib/dto/{loader-unit.dto.js → loader-unit.dto.mjs} +0 -0
- /package/lib/dto/{merge-batch-order.dto.js → merge-batch-order.dto.mjs} +0 -0
- /package/lib/dto/{pagination.dto.js → pagination.dto.mjs} +0 -0
- /package/lib/dto/{quality-inspection-order-item.dto.js → quality-inspection-order-item.dto.mjs} +0 -0
- /package/lib/dto/{reclassify-inventory-order.dto.js → reclassify-inventory-order.dto.mjs} +0 -0
- /package/lib/dto/{sale-order.dto.js → sale-order.dto.mjs} +0 -0
- /package/lib/dto/{ship-inventory-order-reference.dto.js → ship-inventory-order-reference.dto.mjs} +0 -0
- /package/lib/dto/{split-batch-order.dto.js → split-batch-order.dto.mjs} +0 -0
- /package/lib/dto/{unit.dto.js → unit.dto.mjs} +0 -0
- /package/lib/dto/{warehouse-map.dto.js → warehouse-map.dto.mjs} +0 -0
- /package/lib/events/{wms-mutation-event.constants.js → wms-mutation-event.constants.mjs} +0 -0
- /package/lib/helpers/{create-wms-loaders.js → create-wms-loaders.mjs} +0 -0
- /package/lib/helpers/{loader.service.js → loader.service.mjs} +0 -0
- /package/lib/helpers/{query-path.js → query-path.mjs} +0 -0
- /package/lib/inputs/{cancel-ship-order.args.js → cancel-ship-order.args.mjs} +0 -0
- /package/lib/inputs/{cancel-transfer-order.args.js → cancel-transfer-order.args.mjs} +0 -0
- /package/lib/inputs/{create-allocate-inventory-order-item.args.js → create-allocate-inventory-order-item.args.mjs} +0 -0
- /package/lib/inputs/{create-hold-inventory-order-item.args.js → create-hold-inventory-order-item.args.mjs} +0 -0
- /package/lib/inputs/{create-loader-type.args.js → create-loader-type.args.mjs} +0 -0
- /package/lib/inputs/{create-loader.args.js → create-loader.args.mjs} +0 -0
- /package/lib/inputs/{create-location.args.js → create-location.args.mjs} +0 -0
- /package/lib/inputs/{create-material-unit.args.js → create-material-unit.args.mjs} +0 -0
- /package/lib/inputs/{create-quality-inspection-order.args.js → create-quality-inspection-order.args.mjs} +0 -0
- /package/lib/inputs/{create-receive-inventory-order-item.args.js → create-receive-inventory-order-item.args.mjs} +0 -0
- /package/lib/inputs/{create-ship-inventory-order-item.args.js → create-ship-inventory-order-item.args.mjs} +0 -0
- /package/lib/inputs/{create-ship-inventory-order-reference.args.js → create-ship-inventory-order-reference.args.mjs} +0 -0
- /package/lib/inputs/{create-transfer-customer-order-item.args.js → create-transfer-customer-order-item.args.mjs} +0 -0
- /package/lib/inputs/{create-transfer-order-item.args.js → create-transfer-order-item.args.mjs} +0 -0
- /package/lib/inputs/{create-transfer-vendor-order-item.args.js → create-transfer-vendor-order-item.args.mjs} +0 -0
- /package/lib/inputs/{date-range.args.js → date-range.args.mjs} +0 -0
- /package/lib/inputs/{deallocate-order.args.js → deallocate-order.args.mjs} +0 -0
- /package/lib/inputs/{merge-batch.args.js → merge-batch.args.mjs} +0 -0
- /package/lib/inputs/{pagination.args.js → pagination.args.mjs} +0 -0
- /package/lib/inputs/{receive-order.args.js → receive-order.args.mjs} +0 -0
- /package/lib/inputs/{reclassify-inventory-order.args.js → reclassify-inventory-order.args.mjs} +0 -0
- /package/lib/inputs/{release-order.args.js → release-order.args.mjs} +0 -0
- /package/lib/inputs/{return-transfer-customer-order.args.js → return-transfer-customer-order.args.mjs} +0 -0
- /package/lib/inputs/{return-transfer-vendor-order.args.js → return-transfer-vendor-order.args.mjs} +0 -0
- /package/lib/inputs/{scrape-order.args.js → scrape-order.args.mjs} +0 -0
- /package/lib/inputs/{ship-order.args.js → ship-order.args.mjs} +0 -0
- /package/lib/inputs/{transfer-order.args.js → transfer-order.args.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ID, ArgsType, PartialType, OmitType } from '@nestjs/graphql';
|
|
3
|
-
import { CreateReceiveInventoryOrderItemArgs, UpdateReceiveInventoryOrderItemArgs } from './create-receive-inventory-order-item.args.
|
|
3
|
+
import { CreateReceiveInventoryOrderItemArgs, UpdateReceiveInventoryOrderItemArgs } from './create-receive-inventory-order-item.args.mjs';
|
|
4
4
|
|
|
5
5
|
let CreateReceiveInventoryOrderArgs = class CreateReceiveInventoryOrderArgs {
|
|
6
6
|
key;
|
package/lib/inputs/{create-ship-inventory-order.args.js → create-ship-inventory-order.args.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ID, ArgsType, PartialType, OmitType } from '@nestjs/graphql';
|
|
3
|
-
import { CreateShipInventoryOrderReferenceArgs, UpdateShipInventoryOrderReferenceArgs } from './create-ship-inventory-order-reference.args.
|
|
4
|
-
import { UpdateShipInventoryOrderItemArgs } from './create-ship-inventory-order-item.args.
|
|
3
|
+
import { CreateShipInventoryOrderReferenceArgs, UpdateShipInventoryOrderReferenceArgs } from './create-ship-inventory-order-reference.args.mjs';
|
|
4
|
+
import { UpdateShipInventoryOrderItemArgs } from './create-ship-inventory-order-item.args.mjs';
|
|
5
5
|
|
|
6
6
|
let CreateShipInventoryOrderArgs = class CreateShipInventoryOrderArgs {
|
|
7
7
|
key;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ArgsType, PartialType, OmitType, ID } from '@nestjs/graphql';
|
|
3
|
-
import { CreateTransferCustomerOrderItemArgs, UpdateTransferCustomerOrderItemArgs } from './create-transfer-customer-order-item.args.
|
|
3
|
+
import { CreateTransferCustomerOrderItemArgs, UpdateTransferCustomerOrderItemArgs } from './create-transfer-customer-order-item.args.mjs';
|
|
4
4
|
|
|
5
5
|
let CreateTransferCustomerOrderArgs = class CreateTransferCustomerOrderArgs {
|
|
6
6
|
description;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ID, ArgsType, PartialType, OmitType } from '@nestjs/graphql';
|
|
3
|
-
import { CreateTransferOrderItemArgs, UpdateTransferOrderItemArgs } from './create-transfer-order-item.args.
|
|
3
|
+
import { CreateTransferOrderItemArgs, UpdateTransferOrderItemArgs } from './create-transfer-order-item.args.mjs';
|
|
4
4
|
|
|
5
5
|
let CreateTransferOrderArgs = class CreateTransferOrderArgs {
|
|
6
6
|
description;
|
package/lib/inputs/{create-transfer-vendor-order.args.js → create-transfer-vendor-order.args.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ArgsType, PartialType, OmitType, ID } from '@nestjs/graphql';
|
|
3
|
-
import { CreateTransferVendorOrderItemArgs, UpdateTransferVendorOrderItemArgs } from './create-transfer-vendor-order-item.args.
|
|
3
|
+
import { CreateTransferVendorOrderItemArgs, UpdateTransferVendorOrderItemArgs } from './create-transfer-vendor-order-item.args.mjs';
|
|
4
4
|
|
|
5
5
|
let CreateTransferVendorOrderArgs = class CreateTransferVendorOrderArgs {
|
|
6
6
|
description;
|
package/lib/inputs/{find-allocate-inventory-order.args.js → find-allocate-inventory-order.args.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ID, ArgsType } from '@nestjs/graphql';
|
|
3
|
-
import { PaginationArgs } from './pagination.args.
|
|
4
|
-
import { DateRangeArgs } from './date-range.args.
|
|
3
|
+
import { PaginationArgs } from './pagination.args.mjs';
|
|
4
|
+
import { DateRangeArgs } from './date-range.args.mjs';
|
|
5
5
|
|
|
6
6
|
let FindAllocateInventoryOrderArgs = class FindAllocateInventoryOrderArgs extends PaginationArgs {
|
|
7
7
|
key;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ID, ArgsType } from '@nestjs/graphql';
|
|
3
|
-
import { PaginationArgs } from './pagination.args.
|
|
3
|
+
import { PaginationArgs } from './pagination.args.mjs';
|
|
4
4
|
|
|
5
5
|
let FindBatchArgs = class FindBatchArgs extends PaginationArgs {
|
|
6
6
|
key;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ID, ArgsType } from '@nestjs/graphql';
|
|
3
|
-
import { DateRangeArgs } from './date-range.args.
|
|
4
|
-
import { PaginationArgs } from './pagination.args.
|
|
3
|
+
import { DateRangeArgs } from './date-range.args.mjs';
|
|
4
|
+
import { PaginationArgs } from './pagination.args.mjs';
|
|
5
5
|
|
|
6
6
|
let FindHoldInventoryOrderArgs = class FindHoldInventoryOrderArgs extends PaginationArgs {
|
|
7
7
|
key;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ArgsType } from '@nestjs/graphql';
|
|
3
|
-
import { PaginationArgs } from './pagination.args.
|
|
4
|
-
import { DateRangeArgs } from './date-range.args.
|
|
3
|
+
import { PaginationArgs } from './pagination.args.mjs';
|
|
4
|
+
import { DateRangeArgs } from './date-range.args.mjs';
|
|
5
5
|
|
|
6
6
|
let FindLoaderTypeArgs = class FindLoaderTypeArgs extends PaginationArgs {
|
|
7
7
|
description;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ID, ArgsType } from '@nestjs/graphql';
|
|
3
|
-
import { PaginationArgs } from './pagination.args.
|
|
4
|
-
import { DateRangeArgs } from './date-range.args.
|
|
3
|
+
import { PaginationArgs } from './pagination.args.mjs';
|
|
4
|
+
import { DateRangeArgs } from './date-range.args.mjs';
|
|
5
5
|
|
|
6
6
|
let FindLoaderArgs = class FindLoaderArgs extends PaginationArgs {
|
|
7
7
|
key;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ArgsType } from '@nestjs/graphql';
|
|
3
|
-
import { PaginationArgs } from './pagination.args.
|
|
3
|
+
import { PaginationArgs } from './pagination.args.mjs';
|
|
4
4
|
|
|
5
5
|
let FindLocationArgs = class FindLocationArgs extends PaginationArgs {
|
|
6
6
|
description;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ArgsType } from '@nestjs/graphql';
|
|
3
|
-
import { PaginationArgs } from './pagination.args.
|
|
3
|
+
import { PaginationArgs } from './pagination.args.mjs';
|
|
4
4
|
|
|
5
5
|
let FindMaterialArgs = class FindMaterialArgs extends PaginationArgs {
|
|
6
6
|
key;
|
package/lib/inputs/{find-receive-inventory-order.args.js → find-receive-inventory-order.args.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { registerEnumType, Field, ID, ArgsType } from '@nestjs/graphql';
|
|
3
|
-
import { PaginationArgs } from './pagination.args.
|
|
4
|
-
import { DateRangeArgs } from './date-range.args.
|
|
3
|
+
import { PaginationArgs } from './pagination.args.mjs';
|
|
4
|
+
import { DateRangeArgs } from './date-range.args.mjs';
|
|
5
5
|
import { ReceiveInventoryOrderStatus } from '@rytass/wms-module-core';
|
|
6
6
|
|
|
7
7
|
registerEnumType(ReceiveInventoryOrderStatus, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ArgsType } from '@nestjs/graphql';
|
|
3
|
-
import { PaginationArgs } from './pagination.args.
|
|
3
|
+
import { PaginationArgs } from './pagination.args.mjs';
|
|
4
4
|
|
|
5
5
|
let FindSaleOrderArgs = class FindSaleOrderArgs extends PaginationArgs {
|
|
6
6
|
key;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { registerEnumType, Field, ID, ArgsType } from '@nestjs/graphql';
|
|
3
|
-
import { PaginationArgs } from './pagination.args.
|
|
4
|
-
import { DateRangeArgs } from './date-range.args.
|
|
3
|
+
import { PaginationArgs } from './pagination.args.mjs';
|
|
4
|
+
import { DateRangeArgs } from './date-range.args.mjs';
|
|
5
5
|
import { ShipInventoryOrderStatus } from '@rytass/wms-module-core';
|
|
6
6
|
|
|
7
7
|
registerEnumType(ShipInventoryOrderStatus, {
|
|
@@ -4,6 +4,12 @@ export declare class FindStockArgs extends PaginationArgs {
|
|
|
4
4
|
materialId?: string;
|
|
5
5
|
batchId?: string;
|
|
6
6
|
locationId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Locations to leave out of the result. Subtractive counterpart to
|
|
9
|
+
* `locationId`: a stock report uses it to drop locations that do not hold
|
|
10
|
+
* available inventory (staging, quarantine, a host's work-in-progress lane).
|
|
11
|
+
*/
|
|
12
|
+
excludeLocationIds?: string[];
|
|
7
13
|
loaderId?: string;
|
|
8
14
|
ids?: string[];
|
|
9
15
|
description?: string;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ID, ArgsType } from '@nestjs/graphql';
|
|
3
|
-
import { PaginationArgs } from './pagination.args.
|
|
3
|
+
import { PaginationArgs } from './pagination.args.mjs';
|
|
4
4
|
import { StockStatus } from '@rytass/wms-module-core';
|
|
5
5
|
|
|
6
6
|
let FindStockArgs = class FindStockArgs extends PaginationArgs {
|
|
7
7
|
materialId;
|
|
8
8
|
batchId;
|
|
9
9
|
locationId;
|
|
10
|
+
/**
|
|
11
|
+
* Locations to leave out of the result. Subtractive counterpart to
|
|
12
|
+
* `locationId`: a stock report uses it to drop locations that do not hold
|
|
13
|
+
* available inventory (staging, quarantine, a host's work-in-progress lane).
|
|
14
|
+
*/
|
|
15
|
+
excludeLocationIds;
|
|
10
16
|
loaderId;
|
|
11
17
|
ids;
|
|
12
18
|
description;
|
|
@@ -37,6 +43,10 @@ __decorate([
|
|
|
37
43
|
Field(() => ID, { nullable: true }),
|
|
38
44
|
__metadata("design:type", String)
|
|
39
45
|
], FindStockArgs.prototype, "locationId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
Field(() => [ID], { nullable: true }),
|
|
48
|
+
__metadata("design:type", Array)
|
|
49
|
+
], FindStockArgs.prototype, "excludeLocationIds", void 0);
|
|
40
50
|
__decorate([
|
|
41
51
|
Field(() => ID, { nullable: true }),
|
|
42
52
|
__metadata("design:type", String)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ID, ArgsType } from '@nestjs/graphql';
|
|
3
|
-
import { DateRangeArgs } from './date-range.args.
|
|
4
|
-
import { PaginationArgs } from './pagination.args.
|
|
3
|
+
import { DateRangeArgs } from './date-range.args.mjs';
|
|
4
|
+
import { PaginationArgs } from './pagination.args.mjs';
|
|
5
5
|
|
|
6
6
|
let FindTransferOrderArgs = class FindTransferOrderArgs extends PaginationArgs {
|
|
7
7
|
key;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ID, ArgsType, Float, InputType } from '@nestjs/graphql';
|
|
3
3
|
import { InventoryCountStatus } from '@rytass/wms-module-core';
|
|
4
|
-
import { PaginationArgs } from './pagination.args.
|
|
4
|
+
import { PaginationArgs } from './pagination.args.mjs';
|
|
5
5
|
|
|
6
6
|
let FindInventoryCountOrderArgs = class FindInventoryCountOrderArgs extends PaginationArgs {
|
|
7
7
|
name;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { WmsOrderType } from '@rytass/wms-module-core';
|
|
2
|
+
import { PaginationArgs } from './pagination.args';
|
|
3
|
+
/**
|
|
4
|
+
* Reads the link in either direction: give it an order to list what that order
|
|
5
|
+
* was opened for, or a `referenceType` / `referenceId` to list every order
|
|
6
|
+
* opened for that document.
|
|
7
|
+
*
|
|
8
|
+
* `referenceType` / `referenceId` / `referenceLine` match exactly, never as a
|
|
9
|
+
* substring — they are identifiers the host owns, and a partial match on
|
|
10
|
+
* 「WO-1」 would quietly sweep in 「WO-10」.
|
|
11
|
+
*/
|
|
12
|
+
export declare class FindOrderReferenceArgs extends PaginationArgs {
|
|
13
|
+
orderType?: WmsOrderType;
|
|
14
|
+
orderId?: string;
|
|
15
|
+
itemId?: string;
|
|
16
|
+
referenceType?: string;
|
|
17
|
+
referenceId?: string;
|
|
18
|
+
referenceLine?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class OrderReferenceInputType {
|
|
21
|
+
referenceType: string;
|
|
22
|
+
referenceId: string;
|
|
23
|
+
referenceLine?: string | null;
|
|
24
|
+
/** The order item this link is about; omit for an order-level link. */
|
|
25
|
+
itemId?: string | null;
|
|
26
|
+
metadata?: Record<string, unknown> | null;
|
|
27
|
+
}
|
|
28
|
+
export declare class AttachOrderReferencesArgs {
|
|
29
|
+
orderType: WmsOrderType;
|
|
30
|
+
orderId: string;
|
|
31
|
+
references: OrderReferenceInputType[];
|
|
32
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import { Field, ID, ArgsType, InputType } from '@nestjs/graphql';
|
|
3
|
+
import { WmsOrderType } from '@rytass/wms-module-core';
|
|
4
|
+
import { GraphQLJSONObject } from '../scalars/json-object.scalar.mjs';
|
|
5
|
+
import { PaginationArgs } from './pagination.args.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Reads the link in either direction: give it an order to list what that order
|
|
9
|
+
* was opened for, or a `referenceType` / `referenceId` to list every order
|
|
10
|
+
* opened for that document.
|
|
11
|
+
*
|
|
12
|
+
* `referenceType` / `referenceId` / `referenceLine` match exactly, never as a
|
|
13
|
+
* substring — they are identifiers the host owns, and a partial match on
|
|
14
|
+
* 「WO-1」 would quietly sweep in 「WO-10」.
|
|
15
|
+
*/
|
|
16
|
+
let FindOrderReferenceArgs = class FindOrderReferenceArgs extends PaginationArgs {
|
|
17
|
+
orderType;
|
|
18
|
+
orderId;
|
|
19
|
+
itemId;
|
|
20
|
+
referenceType;
|
|
21
|
+
referenceId;
|
|
22
|
+
referenceLine;
|
|
23
|
+
};
|
|
24
|
+
__decorate([
|
|
25
|
+
Field(() => WmsOrderType, { nullable: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], FindOrderReferenceArgs.prototype, "orderType", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
Field(() => ID, { nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], FindOrderReferenceArgs.prototype, "orderId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Field(() => ID, { nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], FindOrderReferenceArgs.prototype, "itemId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
Field(() => String, { nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], FindOrderReferenceArgs.prototype, "referenceType", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
Field(() => String, { nullable: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], FindOrderReferenceArgs.prototype, "referenceId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Field(() => String, { nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], FindOrderReferenceArgs.prototype, "referenceLine", void 0);
|
|
48
|
+
FindOrderReferenceArgs = __decorate([
|
|
49
|
+
ArgsType()
|
|
50
|
+
], FindOrderReferenceArgs);
|
|
51
|
+
let OrderReferenceInputType = class OrderReferenceInputType {
|
|
52
|
+
referenceType;
|
|
53
|
+
referenceId;
|
|
54
|
+
referenceLine;
|
|
55
|
+
/** The order item this link is about; omit for an order-level link. */
|
|
56
|
+
itemId;
|
|
57
|
+
metadata;
|
|
58
|
+
};
|
|
59
|
+
__decorate([
|
|
60
|
+
Field(() => String),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], OrderReferenceInputType.prototype, "referenceType", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
Field(() => String),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], OrderReferenceInputType.prototype, "referenceId", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
Field(() => String, { nullable: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], OrderReferenceInputType.prototype, "referenceLine", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
Field(() => ID, { nullable: true }),
|
|
73
|
+
__metadata("design:type", Object)
|
|
74
|
+
], OrderReferenceInputType.prototype, "itemId", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
Field(() => GraphQLJSONObject, { nullable: true }),
|
|
77
|
+
__metadata("design:type", Object)
|
|
78
|
+
], OrderReferenceInputType.prototype, "metadata", void 0);
|
|
79
|
+
OrderReferenceInputType = __decorate([
|
|
80
|
+
InputType()
|
|
81
|
+
], OrderReferenceInputType);
|
|
82
|
+
let AttachOrderReferencesArgs = class AttachOrderReferencesArgs {
|
|
83
|
+
orderType;
|
|
84
|
+
orderId;
|
|
85
|
+
references;
|
|
86
|
+
};
|
|
87
|
+
__decorate([
|
|
88
|
+
Field(() => WmsOrderType),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], AttachOrderReferencesArgs.prototype, "orderType", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
Field(() => ID),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], AttachOrderReferencesArgs.prototype, "orderId", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
Field(() => [OrderReferenceInputType]),
|
|
97
|
+
__metadata("design:type", Array)
|
|
98
|
+
], AttachOrderReferencesArgs.prototype, "references", void 0);
|
|
99
|
+
AttachOrderReferencesArgs = __decorate([
|
|
100
|
+
ArgsType()
|
|
101
|
+
], AttachOrderReferencesArgs);
|
|
102
|
+
|
|
103
|
+
export { AttachOrderReferencesArgs, FindOrderReferenceArgs, OrderReferenceInputType };
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export declare class SplitBatchItemInput {
|
|
2
2
|
batchKey: string;
|
|
3
3
|
quantity: number;
|
|
4
|
+
/**
|
|
5
|
+
* Host-defined attributes for this child batch. Applied only when the split
|
|
6
|
+
* creates the batch; reusing an existing `batchKey` keeps what that batch
|
|
7
|
+
* already carries.
|
|
8
|
+
*/
|
|
9
|
+
attributes?: Record<string, unknown> | null;
|
|
4
10
|
}
|
|
5
11
|
export declare class SplitBatchArgs {
|
|
6
12
|
aggregatedKey: string;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ID, InputType, ArgsType } from '@nestjs/graphql';
|
|
3
|
+
import { GraphQLJSONObject } from '../scalars/json-object.scalar.mjs';
|
|
3
4
|
|
|
4
5
|
let SplitBatchItemInput = class SplitBatchItemInput {
|
|
5
6
|
batchKey;
|
|
6
7
|
quantity;
|
|
8
|
+
/**
|
|
9
|
+
* Host-defined attributes for this child batch. Applied only when the split
|
|
10
|
+
* creates the batch; reusing an existing `batchKey` keeps what that batch
|
|
11
|
+
* already carries.
|
|
12
|
+
*/
|
|
13
|
+
attributes;
|
|
7
14
|
};
|
|
8
15
|
__decorate([
|
|
9
16
|
Field(() => ID),
|
|
@@ -13,6 +20,10 @@ __decorate([
|
|
|
13
20
|
Field(() => Number),
|
|
14
21
|
__metadata("design:type", Number)
|
|
15
22
|
], SplitBatchItemInput.prototype, "quantity", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
Field(() => GraphQLJSONObject, { nullable: true }),
|
|
25
|
+
__metadata("design:type", Object)
|
|
26
|
+
], SplitBatchItemInput.prototype, "attributes", void 0);
|
|
16
27
|
SplitBatchItemInput = __decorate([
|
|
17
28
|
InputType()
|
|
18
29
|
], SplitBatchItemInput);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import { Field, ID, Float, InputType, ArgsType } from '@nestjs/graphql';
|
|
3
|
-
import { MapRangeType } from '../dto/warehouse-map.dto.
|
|
3
|
+
import { MapRangeType } from '../dto/warehouse-map.dto.mjs';
|
|
4
4
|
|
|
5
5
|
let MapBackgroundInput = class MapBackgroundInput {
|
|
6
6
|
id;
|
package/lib/mutations/{allocate-inventory-order.mutation.js → allocate-inventory-order.mutation.mjs}
RENAMED
|
@@ -2,13 +2,13 @@ import { __decorate, __param, __metadata } from 'tslib';
|
|
|
2
2
|
import { Injectable } from '@nestjs/common';
|
|
3
3
|
import { Mutation, Args } from '@nestjs/graphql';
|
|
4
4
|
import { AllocateInventoryOrderService, StockService } from '@rytass/wms-module-core';
|
|
5
|
-
import { AllocateInventoryOrderDto } from '../dto/allocate-inventory-order.dto.
|
|
6
|
-
import { CreateAllocateInventoryOrderArgs, UpdateAllocateInventoryOrderArgs } from '../inputs/create-allocate-inventory-order.args.
|
|
7
|
-
import { DeallocateOrderArgs } from '../inputs/deallocate-order.args.
|
|
8
|
-
import '../auth/wms-auth.guard.
|
|
9
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.
|
|
10
|
-
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.
|
|
11
|
-
import '../events/wms-mutation.interceptor.
|
|
5
|
+
import { AllocateInventoryOrderDto } from '../dto/allocate-inventory-order.dto.mjs';
|
|
6
|
+
import { CreateAllocateInventoryOrderArgs, UpdateAllocateInventoryOrderArgs } from '../inputs/create-allocate-inventory-order.args.mjs';
|
|
7
|
+
import { DeallocateOrderArgs } from '../inputs/deallocate-order.args.mjs';
|
|
8
|
+
import '../auth/wms-auth.guard.mjs';
|
|
9
|
+
import { WmsOperation } from '../auth/wms-operation.decorator.mjs';
|
|
10
|
+
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.mjs';
|
|
11
|
+
import '../events/wms-mutation.interceptor.mjs';
|
|
12
12
|
|
|
13
13
|
let AllocateInventoryOrderMutation = class AllocateInventoryOrderMutation {
|
|
14
14
|
allocateInventoryOrderService;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ConsumptionOrderService } from '@rytass/wms-module-core';
|
|
2
|
+
import { ConsumptionOrderDto } from '../dto/consumption-order.dto';
|
|
3
|
+
import { ConsumptionOrderActionArgs, CreateConsumptionOrderArgs, UpdateConsumptionOrderArgs } from '../inputs/consumption-order.args';
|
|
4
|
+
/**
|
|
5
|
+
* The three actions are separate mutations rather than one with a mode
|
|
6
|
+
* argument: they carry different permissions (a host may well let the floor
|
|
7
|
+
* issue and return but not settle) and different events, and both of those are
|
|
8
|
+
* keyed per field.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ConsumptionOrderMutation {
|
|
11
|
+
private readonly consumptionOrderService;
|
|
12
|
+
constructor(consumptionOrderService: ConsumptionOrderService);
|
|
13
|
+
createConsumptionOrder(args: CreateConsumptionOrderArgs): Promise<ConsumptionOrderDto>;
|
|
14
|
+
updateConsumptionOrder(args: UpdateConsumptionOrderArgs): Promise<ConsumptionOrderDto>;
|
|
15
|
+
issueConsumptionOrder(args: ConsumptionOrderActionArgs): Promise<boolean>;
|
|
16
|
+
returnConsumptionOrder(args: ConsumptionOrderActionArgs): Promise<boolean>;
|
|
17
|
+
settleConsumptionOrder(args: ConsumptionOrderActionArgs): Promise<boolean>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
+
import { Injectable } from '@nestjs/common';
|
|
3
|
+
import { Mutation, Args, Resolver } from '@nestjs/graphql';
|
|
4
|
+
import { ConsumptionOrderService } from '@rytass/wms-module-core';
|
|
5
|
+
import { ConsumptionOrderDto } from '../dto/consumption-order.dto.mjs';
|
|
6
|
+
import { CreateConsumptionOrderArgs, UpdateConsumptionOrderArgs, ConsumptionOrderActionArgs } from '../inputs/consumption-order.args.mjs';
|
|
7
|
+
import '../auth/wms-auth.guard.mjs';
|
|
8
|
+
import { WmsOperation } from '../auth/wms-operation.decorator.mjs';
|
|
9
|
+
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.mjs';
|
|
10
|
+
import '../events/wms-mutation.interceptor.mjs';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The three actions are separate mutations rather than one with a mode
|
|
14
|
+
* argument: they carry different permissions (a host may well let the floor
|
|
15
|
+
* issue and return but not settle) and different events, and both of those are
|
|
16
|
+
* keyed per field.
|
|
17
|
+
*/
|
|
18
|
+
let ConsumptionOrderMutation = class ConsumptionOrderMutation {
|
|
19
|
+
consumptionOrderService;
|
|
20
|
+
constructor(consumptionOrderService) {
|
|
21
|
+
this.consumptionOrderService = consumptionOrderService;
|
|
22
|
+
}
|
|
23
|
+
createConsumptionOrder(args) {
|
|
24
|
+
return this.consumptionOrderService.createConsumptionOrder(args);
|
|
25
|
+
}
|
|
26
|
+
updateConsumptionOrder(args) {
|
|
27
|
+
return this.consumptionOrderService.updateConsumptionOrder(args);
|
|
28
|
+
}
|
|
29
|
+
issueConsumptionOrder(args) {
|
|
30
|
+
return this.consumptionOrderService.issue(args);
|
|
31
|
+
}
|
|
32
|
+
returnConsumptionOrder(args) {
|
|
33
|
+
return this.consumptionOrderService.return(args);
|
|
34
|
+
}
|
|
35
|
+
settleConsumptionOrder(args) {
|
|
36
|
+
return this.consumptionOrderService.settle(args);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
__decorate([
|
|
40
|
+
Mutation(() => ConsumptionOrderDto),
|
|
41
|
+
WmsOperation({ resource: 'consumption-order', action: 'create' }),
|
|
42
|
+
WmsMutationEvent({ event: 'consumption-order.created' }),
|
|
43
|
+
__param(0, Args()),
|
|
44
|
+
__metadata("design:type", Function),
|
|
45
|
+
__metadata("design:paramtypes", [CreateConsumptionOrderArgs]),
|
|
46
|
+
__metadata("design:returntype", Promise)
|
|
47
|
+
], ConsumptionOrderMutation.prototype, "createConsumptionOrder", null);
|
|
48
|
+
__decorate([
|
|
49
|
+
Mutation(() => ConsumptionOrderDto),
|
|
50
|
+
WmsOperation({ resource: 'consumption-order', action: 'update' }),
|
|
51
|
+
WmsMutationEvent({ event: 'consumption-order.updated' }),
|
|
52
|
+
__param(0, Args()),
|
|
53
|
+
__metadata("design:type", Function),
|
|
54
|
+
__metadata("design:paramtypes", [UpdateConsumptionOrderArgs]),
|
|
55
|
+
__metadata("design:returntype", Promise)
|
|
56
|
+
], ConsumptionOrderMutation.prototype, "updateConsumptionOrder", null);
|
|
57
|
+
__decorate([
|
|
58
|
+
Mutation(() => Boolean),
|
|
59
|
+
WmsOperation({ resource: 'consumption-order', action: 'issue' }),
|
|
60
|
+
WmsMutationEvent({ event: 'consumption-order.issued' }),
|
|
61
|
+
__param(0, Args()),
|
|
62
|
+
__metadata("design:type", Function),
|
|
63
|
+
__metadata("design:paramtypes", [ConsumptionOrderActionArgs]),
|
|
64
|
+
__metadata("design:returntype", Promise)
|
|
65
|
+
], ConsumptionOrderMutation.prototype, "issueConsumptionOrder", null);
|
|
66
|
+
__decorate([
|
|
67
|
+
Mutation(() => Boolean),
|
|
68
|
+
WmsOperation({ resource: 'consumption-order', action: 'return' }),
|
|
69
|
+
WmsMutationEvent({ event: 'consumption-order.returned' }),
|
|
70
|
+
__param(0, Args()),
|
|
71
|
+
__metadata("design:type", Function),
|
|
72
|
+
__metadata("design:paramtypes", [ConsumptionOrderActionArgs]),
|
|
73
|
+
__metadata("design:returntype", Promise)
|
|
74
|
+
], ConsumptionOrderMutation.prototype, "returnConsumptionOrder", null);
|
|
75
|
+
__decorate([
|
|
76
|
+
Mutation(() => Boolean),
|
|
77
|
+
WmsOperation({ resource: 'consumption-order', action: 'settle' }),
|
|
78
|
+
WmsMutationEvent({ event: 'consumption-order.settled' }),
|
|
79
|
+
__param(0, Args()),
|
|
80
|
+
__metadata("design:type", Function),
|
|
81
|
+
__metadata("design:paramtypes", [ConsumptionOrderActionArgs]),
|
|
82
|
+
__metadata("design:returntype", Promise)
|
|
83
|
+
], ConsumptionOrderMutation.prototype, "settleConsumptionOrder", null);
|
|
84
|
+
ConsumptionOrderMutation = __decorate([
|
|
85
|
+
Injectable(),
|
|
86
|
+
Resolver(),
|
|
87
|
+
__metadata("design:paramtypes", [ConsumptionOrderService])
|
|
88
|
+
], ConsumptionOrderMutation);
|
|
89
|
+
|
|
90
|
+
export { ConsumptionOrderMutation };
|
package/lib/mutations/{hold-inventory-order.mutation.js → hold-inventory-order.mutation.mjs}
RENAMED
|
@@ -2,13 +2,13 @@ import { __decorate, __param, __metadata } from 'tslib';
|
|
|
2
2
|
import { Injectable } from '@nestjs/common';
|
|
3
3
|
import { Mutation, Args } from '@nestjs/graphql';
|
|
4
4
|
import { HoldInventoryOrderService, StockService } from '@rytass/wms-module-core';
|
|
5
|
-
import { HoldInventoryOrderDto } from '../dto/hold-inventory-order.dto.
|
|
6
|
-
import { CreateHoldInventoryOrderArgs, UpdateHoldInventoryOrderArgs } from '../inputs/create-hold-inventory-order.args.
|
|
7
|
-
import { ReleaseOrderArgs } from '../inputs/release-order.args.
|
|
8
|
-
import '../auth/wms-auth.guard.
|
|
9
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.
|
|
10
|
-
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.
|
|
11
|
-
import '../events/wms-mutation.interceptor.
|
|
5
|
+
import { HoldInventoryOrderDto } from '../dto/hold-inventory-order.dto.mjs';
|
|
6
|
+
import { CreateHoldInventoryOrderArgs, UpdateHoldInventoryOrderArgs } from '../inputs/create-hold-inventory-order.args.mjs';
|
|
7
|
+
import { ReleaseOrderArgs } from '../inputs/release-order.args.mjs';
|
|
8
|
+
import '../auth/wms-auth.guard.mjs';
|
|
9
|
+
import { WmsOperation } from '../auth/wms-operation.decorator.mjs';
|
|
10
|
+
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.mjs';
|
|
11
|
+
import '../events/wms-mutation.interceptor.mjs';
|
|
12
12
|
|
|
13
13
|
let HoldInventoryOrderMutation = class HoldInventoryOrderMutation {
|
|
14
14
|
holdInventoryOrderService;
|
package/lib/mutations/{inventory-count-order.mutation.js → inventory-count-order.mutation.mjs}
RENAMED
|
@@ -2,12 +2,12 @@ import { __decorate, __param, __metadata } from 'tslib';
|
|
|
2
2
|
import { Injectable } from '@nestjs/common';
|
|
3
3
|
import { Mutation, Args } from '@nestjs/graphql';
|
|
4
4
|
import { InventoryCountOrderService } from '@rytass/wms-module-core';
|
|
5
|
-
import { InventoryCountOrderDto, InventoryCountOrderItemDto } from '../dto/inventory-count-order.dto.
|
|
6
|
-
import { CreateInventoryCountOrderArgs, UpdateInventoryCountOrderArgs, InventoryCountOrderIdArgs, CountInventoryArgs, AddInventoryCountItemArgs, RemoveInventoryCountItemArgs } from '../inputs/inventory-count-order.args.
|
|
7
|
-
import '../auth/wms-auth.guard.
|
|
8
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.
|
|
9
|
-
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.
|
|
10
|
-
import '../events/wms-mutation.interceptor.
|
|
5
|
+
import { InventoryCountOrderDto, InventoryCountOrderItemDto } from '../dto/inventory-count-order.dto.mjs';
|
|
6
|
+
import { CreateInventoryCountOrderArgs, UpdateInventoryCountOrderArgs, InventoryCountOrderIdArgs, CountInventoryArgs, AddInventoryCountItemArgs, RemoveInventoryCountItemArgs } from '../inputs/inventory-count-order.args.mjs';
|
|
7
|
+
import '../auth/wms-auth.guard.mjs';
|
|
8
|
+
import { WmsOperation } from '../auth/wms-operation.decorator.mjs';
|
|
9
|
+
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.mjs';
|
|
10
|
+
import '../events/wms-mutation.interceptor.mjs';
|
|
11
11
|
|
|
12
12
|
let InventoryCountOrderMutation = class InventoryCountOrderMutation {
|
|
13
13
|
inventoryCountOrderService;
|