@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,123 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { LoaderService } from '@rytass/wms-module-core';
|
|
4
|
-
import { LoaderTypeDto } from '../dto/loader-type.dto.js';
|
|
5
|
-
import { LoaderDto } from '../dto/loader.dto.js';
|
|
6
|
-
import '../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 { Mutation, Args } from '@nestjs/graphql';
|
|
33
|
-
import { CreateLoaderTypeArgs, UpdateLoaderTypeArgs } from '../inputs/create-loader-type.args.js';
|
|
34
|
-
import { CreateLoaderArgs, CreateLoadersArgs, UpdateLoaderArgs } from '../inputs/create-loader.args.js';
|
|
35
|
-
import { In } from 'typeorm';
|
|
36
|
-
import '../auth/wms-auth.guard.js';
|
|
37
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
38
|
-
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.js';
|
|
39
|
-
import '../events/wms-mutation.interceptor.js';
|
|
40
|
-
|
|
41
|
-
let LoaderMutation = class LoaderMutation {
|
|
42
|
-
loaderService;
|
|
43
|
-
constructor(loaderService) {
|
|
44
|
-
this.loaderService = loaderService;
|
|
45
|
-
}
|
|
46
|
-
async createLoader(args) {
|
|
47
|
-
return this.loaderService.createLoader(args);
|
|
48
|
-
}
|
|
49
|
-
async createBatchLoader(args) {
|
|
50
|
-
const types = await this.loaderService.loaderTypeRepository.find({
|
|
51
|
-
where: {
|
|
52
|
-
key: In(args.map((arg) => arg.typeKey)),
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
const typeMap = new Map(types.map((type) => [type.key, type.id]));
|
|
56
|
-
return this.loaderService.createBatchLoaders({
|
|
57
|
-
options: args.map((arg) => ({
|
|
58
|
-
...arg,
|
|
59
|
-
typeId: typeMap.get(arg.typeKey),
|
|
60
|
-
})),
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
async updateLoader(args) {
|
|
64
|
-
return this.loaderService.updateLoader(args);
|
|
65
|
-
}
|
|
66
|
-
createLoaderType(args) {
|
|
67
|
-
return this.loaderService.createLoaderType(args);
|
|
68
|
-
}
|
|
69
|
-
async updateLoaderType(args) {
|
|
70
|
-
return this.loaderService.updateLoaderType(args);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
__decorate([
|
|
74
|
-
Mutation(() => [LoaderDto]),
|
|
75
|
-
WmsOperation({ resource: 'loader', action: 'create' }),
|
|
76
|
-
WmsMutationEvent({ event: 'loader.created' }),
|
|
77
|
-
__param(0, Args()),
|
|
78
|
-
__metadata("design:type", Function),
|
|
79
|
-
__metadata("design:paramtypes", [CreateLoaderArgs]),
|
|
80
|
-
__metadata("design:returntype", Promise)
|
|
81
|
-
], LoaderMutation.prototype, "createLoader", null);
|
|
82
|
-
__decorate([
|
|
83
|
-
Mutation(() => [LoaderDto]),
|
|
84
|
-
WmsOperation({ resource: 'loader', action: 'create' }),
|
|
85
|
-
WmsMutationEvent({ event: 'loader.batch-created' }),
|
|
86
|
-
__param(0, Args('items', { type: () => [CreateLoadersArgs] })),
|
|
87
|
-
__metadata("design:type", Function),
|
|
88
|
-
__metadata("design:paramtypes", [Array]),
|
|
89
|
-
__metadata("design:returntype", Promise)
|
|
90
|
-
], LoaderMutation.prototype, "createBatchLoader", null);
|
|
91
|
-
__decorate([
|
|
92
|
-
Mutation(() => LoaderDto),
|
|
93
|
-
WmsOperation({ resource: 'loader', action: 'update' }),
|
|
94
|
-
WmsMutationEvent({ event: 'loader.updated' }),
|
|
95
|
-
__param(0, Args()),
|
|
96
|
-
__metadata("design:type", Function),
|
|
97
|
-
__metadata("design:paramtypes", [UpdateLoaderArgs]),
|
|
98
|
-
__metadata("design:returntype", Promise)
|
|
99
|
-
], LoaderMutation.prototype, "updateLoader", null);
|
|
100
|
-
__decorate([
|
|
101
|
-
Mutation(() => LoaderTypeDto),
|
|
102
|
-
WmsOperation({ resource: 'loader', action: 'create' }),
|
|
103
|
-
WmsMutationEvent({ event: 'loader.type-created' }),
|
|
104
|
-
__param(0, Args()),
|
|
105
|
-
__metadata("design:type", Function),
|
|
106
|
-
__metadata("design:paramtypes", [CreateLoaderTypeArgs]),
|
|
107
|
-
__metadata("design:returntype", Promise)
|
|
108
|
-
], LoaderMutation.prototype, "createLoaderType", null);
|
|
109
|
-
__decorate([
|
|
110
|
-
Mutation(() => LoaderTypeDto),
|
|
111
|
-
WmsOperation({ resource: 'loader', action: 'update' }),
|
|
112
|
-
WmsMutationEvent({ event: 'loader.type-updated' }),
|
|
113
|
-
__param(0, Args()),
|
|
114
|
-
__metadata("design:type", Function),
|
|
115
|
-
__metadata("design:paramtypes", [UpdateLoaderTypeArgs]),
|
|
116
|
-
__metadata("design:returntype", Promise)
|
|
117
|
-
], LoaderMutation.prototype, "updateLoaderType", null);
|
|
118
|
-
LoaderMutation = __decorate([
|
|
119
|
-
Injectable(),
|
|
120
|
-
__metadata("design:paramtypes", [LoaderService])
|
|
121
|
-
], LoaderMutation);
|
|
122
|
-
|
|
123
|
-
export { LoaderMutation };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Mutation, Args } from '@nestjs/graphql';
|
|
4
|
-
import { LocationService } from '@rytass/wms-module-core';
|
|
5
|
-
import { LocationDto } from '../dto/location.dto.js';
|
|
6
|
-
import { CreateLocationArgs, UpdateLocationArgs } from '../inputs/create-location.args.js';
|
|
7
|
-
import '../auth/wms-auth.guard.js';
|
|
8
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
9
|
-
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.js';
|
|
10
|
-
import '../events/wms-mutation.interceptor.js';
|
|
11
|
-
|
|
12
|
-
let LocationMutation = class LocationMutation {
|
|
13
|
-
locationService;
|
|
14
|
-
constructor(locationService) {
|
|
15
|
-
this.locationService = locationService;
|
|
16
|
-
}
|
|
17
|
-
async createLocation(args) {
|
|
18
|
-
return this.locationService.createLocation(args);
|
|
19
|
-
}
|
|
20
|
-
async updateLocation(args) {
|
|
21
|
-
return this.locationService.updateLocation(args);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
__decorate([
|
|
25
|
-
Mutation(() => LocationDto),
|
|
26
|
-
WmsOperation({ resource: 'location', action: 'create' }),
|
|
27
|
-
WmsMutationEvent({ event: 'location.created' }),
|
|
28
|
-
__param(0, Args()),
|
|
29
|
-
__metadata("design:type", Function),
|
|
30
|
-
__metadata("design:paramtypes", [CreateLocationArgs]),
|
|
31
|
-
__metadata("design:returntype", Promise)
|
|
32
|
-
], LocationMutation.prototype, "createLocation", null);
|
|
33
|
-
__decorate([
|
|
34
|
-
Mutation(() => LocationDto),
|
|
35
|
-
WmsOperation({ resource: 'location', action: 'update' }),
|
|
36
|
-
WmsMutationEvent({ event: 'location.updated' }),
|
|
37
|
-
__param(0, Args()),
|
|
38
|
-
__metadata("design:type", Function),
|
|
39
|
-
__metadata("design:paramtypes", [UpdateLocationArgs]),
|
|
40
|
-
__metadata("design:returntype", Promise)
|
|
41
|
-
], LocationMutation.prototype, "updateLocation", null);
|
|
42
|
-
LocationMutation = __decorate([
|
|
43
|
-
Injectable(),
|
|
44
|
-
__metadata("design:paramtypes", [LocationService])
|
|
45
|
-
], LocationMutation);
|
|
46
|
-
|
|
47
|
-
export { LocationMutation };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Mutation, Args } from '@nestjs/graphql';
|
|
4
|
-
import '../dto/loader-type.dto.js';
|
|
5
|
-
import '../dto/loader.dto.js';
|
|
6
|
-
import { MaterialDto } 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 { CreateMaterialArgs, UpdateMaterialArgs } from '../inputs/create-material.args.js';
|
|
33
|
-
import { MaterialService } from '@rytass/wms-module-core';
|
|
34
|
-
import '../auth/wms-auth.guard.js';
|
|
35
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
36
|
-
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.js';
|
|
37
|
-
import '../events/wms-mutation.interceptor.js';
|
|
38
|
-
|
|
39
|
-
let MaterialMutation = class MaterialMutation {
|
|
40
|
-
materialService;
|
|
41
|
-
constructor(materialService) {
|
|
42
|
-
this.materialService = materialService;
|
|
43
|
-
}
|
|
44
|
-
async createMaterial(args) {
|
|
45
|
-
return this.materialService.createMaterial(args);
|
|
46
|
-
}
|
|
47
|
-
async updateMaterial(args) {
|
|
48
|
-
return this.materialService.updateMaterial(args);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
__decorate([
|
|
52
|
-
Mutation(() => MaterialDto),
|
|
53
|
-
WmsOperation({ resource: 'material', action: 'create' }),
|
|
54
|
-
WmsMutationEvent({ event: 'material.created' }),
|
|
55
|
-
__param(0, Args()),
|
|
56
|
-
__metadata("design:type", Function),
|
|
57
|
-
__metadata("design:paramtypes", [CreateMaterialArgs]),
|
|
58
|
-
__metadata("design:returntype", Promise)
|
|
59
|
-
], MaterialMutation.prototype, "createMaterial", null);
|
|
60
|
-
__decorate([
|
|
61
|
-
Mutation(() => MaterialDto),
|
|
62
|
-
WmsOperation({ resource: 'material', action: 'update' }),
|
|
63
|
-
WmsMutationEvent({ event: 'material.updated' }),
|
|
64
|
-
__param(0, Args()),
|
|
65
|
-
__metadata("design:type", Function),
|
|
66
|
-
__metadata("design:paramtypes", [UpdateMaterialArgs]),
|
|
67
|
-
__metadata("design:returntype", Promise)
|
|
68
|
-
], MaterialMutation.prototype, "updateMaterial", null);
|
|
69
|
-
MaterialMutation = __decorate([
|
|
70
|
-
Injectable(),
|
|
71
|
-
__metadata("design:paramtypes", [MaterialService])
|
|
72
|
-
], MaterialMutation);
|
|
73
|
-
|
|
74
|
-
export { MaterialMutation };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Mutation, Args, Resolver } from '@nestjs/graphql';
|
|
4
|
-
import { StockService, MergeBatchOrderService } from '@rytass/wms-module-core';
|
|
5
|
-
import { MergeBatchArgs } from '../inputs/merge-batch.args.js';
|
|
6
|
-
import { MergeBatchOrderDto } from '../dto/merge-batch-order.dto.js';
|
|
7
|
-
import '../auth/wms-auth.guard.js';
|
|
8
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
9
|
-
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.js';
|
|
10
|
-
import '../events/wms-mutation.interceptor.js';
|
|
11
|
-
|
|
12
|
-
let MergeBatchMutation = class MergeBatchMutation {
|
|
13
|
-
stockService;
|
|
14
|
-
mergeBatchOrderService;
|
|
15
|
-
constructor(stockService, mergeBatchOrderService) {
|
|
16
|
-
this.stockService = stockService;
|
|
17
|
-
this.mergeBatchOrderService = mergeBatchOrderService;
|
|
18
|
-
}
|
|
19
|
-
async mergeBatch(args) {
|
|
20
|
-
return this.mergeBatchOrderService.merge({
|
|
21
|
-
...args,
|
|
22
|
-
items: args.items.map((item) => {
|
|
23
|
-
const { batchId, locationId, loaderId } = this.stockService.destructAggregateKey(item.aggregatedKey);
|
|
24
|
-
return {
|
|
25
|
-
...item,
|
|
26
|
-
batchId,
|
|
27
|
-
locationId,
|
|
28
|
-
loaderId,
|
|
29
|
-
};
|
|
30
|
-
}),
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
__decorate([
|
|
35
|
-
Mutation(() => MergeBatchOrderDto),
|
|
36
|
-
WmsOperation({ resource: 'batch', action: 'merge' }),
|
|
37
|
-
WmsMutationEvent({ event: 'batch.merged' }),
|
|
38
|
-
__param(0, Args()),
|
|
39
|
-
__metadata("design:type", Function),
|
|
40
|
-
__metadata("design:paramtypes", [MergeBatchArgs]),
|
|
41
|
-
__metadata("design:returntype", Promise)
|
|
42
|
-
], MergeBatchMutation.prototype, "mergeBatch", null);
|
|
43
|
-
MergeBatchMutation = __decorate([
|
|
44
|
-
Injectable(),
|
|
45
|
-
Resolver(),
|
|
46
|
-
__metadata("design:paramtypes", [StockService,
|
|
47
|
-
MergeBatchOrderService])
|
|
48
|
-
], MergeBatchMutation);
|
|
49
|
-
|
|
50
|
-
export { MergeBatchMutation };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Mutation, Args, ID, Resolver } from '@nestjs/graphql';
|
|
4
|
-
import { OrderReferenceService } from '@rytass/wms-module-core';
|
|
5
|
-
import { OrderReferenceDto } from '../dto/order-reference.dto.js';
|
|
6
|
-
import { AttachOrderReferencesArgs } from '../inputs/order-reference.args.js';
|
|
7
|
-
import '../auth/wms-auth.guard.js';
|
|
8
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
9
|
-
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.js';
|
|
10
|
-
import '../events/wms-mutation.interceptor.js';
|
|
11
|
-
|
|
12
|
-
let OrderReferenceMutation = class OrderReferenceMutation {
|
|
13
|
-
orderReferenceService;
|
|
14
|
-
constructor(orderReferenceService) {
|
|
15
|
-
this.orderReferenceService = orderReferenceService;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Additive: attaching twice leaves both sets in place. Detach the ones that
|
|
19
|
-
* no longer apply rather than expecting this to replace them.
|
|
20
|
-
*/
|
|
21
|
-
attachOrderReferences(args) {
|
|
22
|
-
return this.orderReferenceService.attach({
|
|
23
|
-
orderType: args.orderType,
|
|
24
|
-
orderId: args.orderId,
|
|
25
|
-
references: args.references,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
async detachOrderReference(id) {
|
|
29
|
-
await this.orderReferenceService.detach(id);
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
__decorate([
|
|
34
|
-
Mutation(() => [OrderReferenceDto]),
|
|
35
|
-
WmsOperation({ resource: 'order-reference', action: 'attach' }),
|
|
36
|
-
WmsMutationEvent({ event: 'order-reference.attached' }),
|
|
37
|
-
__param(0, Args()),
|
|
38
|
-
__metadata("design:type", Function),
|
|
39
|
-
__metadata("design:paramtypes", [AttachOrderReferencesArgs]),
|
|
40
|
-
__metadata("design:returntype", Promise)
|
|
41
|
-
], OrderReferenceMutation.prototype, "attachOrderReferences", null);
|
|
42
|
-
__decorate([
|
|
43
|
-
Mutation(() => Boolean),
|
|
44
|
-
WmsOperation({ resource: 'order-reference', action: 'detach' }),
|
|
45
|
-
WmsMutationEvent({ event: 'order-reference.detached' }),
|
|
46
|
-
__param(0, Args('id', { type: () => ID })),
|
|
47
|
-
__metadata("design:type", Function),
|
|
48
|
-
__metadata("design:paramtypes", [String]),
|
|
49
|
-
__metadata("design:returntype", Promise)
|
|
50
|
-
], OrderReferenceMutation.prototype, "detachOrderReference", null);
|
|
51
|
-
OrderReferenceMutation = __decorate([
|
|
52
|
-
Injectable(),
|
|
53
|
-
Resolver(),
|
|
54
|
-
__metadata("design:paramtypes", [OrderReferenceService])
|
|
55
|
-
], OrderReferenceMutation);
|
|
56
|
-
|
|
57
|
-
export { OrderReferenceMutation };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Mutation, Args } from '@nestjs/graphql';
|
|
4
|
-
import { QualityInspectionOrderService, StockService } from '@rytass/wms-module-core';
|
|
5
|
-
import { QualityInspectionOrderDto } from '../dto/quality-inspection-order.dto.js';
|
|
6
|
-
import { CreateQualityInspectionOrderArgs } from '../inputs/create-quality-inspection-order.args.js';
|
|
7
|
-
import '../auth/wms-auth.guard.js';
|
|
8
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
9
|
-
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.js';
|
|
10
|
-
import '../events/wms-mutation.interceptor.js';
|
|
11
|
-
|
|
12
|
-
let QualityInspectionOrderMutation = class QualityInspectionOrderMutation {
|
|
13
|
-
qualityInspectionOrderService;
|
|
14
|
-
stockService;
|
|
15
|
-
constructor(qualityInspectionOrderService, stockService) {
|
|
16
|
-
this.qualityInspectionOrderService = qualityInspectionOrderService;
|
|
17
|
-
this.stockService = stockService;
|
|
18
|
-
}
|
|
19
|
-
async inspectMaterials(args) {
|
|
20
|
-
return this.qualityInspectionOrderService.inspect({
|
|
21
|
-
options: {
|
|
22
|
-
key: args.key,
|
|
23
|
-
note: args.note,
|
|
24
|
-
items: args.items.map(({ aggregateKey, ...item }) => {
|
|
25
|
-
const keys = this.stockService.destructAggregateKey(aggregateKey);
|
|
26
|
-
return {
|
|
27
|
-
...item,
|
|
28
|
-
...keys,
|
|
29
|
-
};
|
|
30
|
-
}),
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
__decorate([
|
|
36
|
-
Mutation(() => QualityInspectionOrderDto),
|
|
37
|
-
WmsOperation({ resource: 'quality-inspection-order', action: 'inspect' }),
|
|
38
|
-
WmsMutationEvent({ event: 'quality-inspection-order.inspected' }),
|
|
39
|
-
__param(0, Args()),
|
|
40
|
-
__metadata("design:type", Function),
|
|
41
|
-
__metadata("design:paramtypes", [CreateQualityInspectionOrderArgs]),
|
|
42
|
-
__metadata("design:returntype", Promise)
|
|
43
|
-
], QualityInspectionOrderMutation.prototype, "inspectMaterials", null);
|
|
44
|
-
QualityInspectionOrderMutation = __decorate([
|
|
45
|
-
Injectable(),
|
|
46
|
-
__metadata("design:paramtypes", [QualityInspectionOrderService,
|
|
47
|
-
StockService])
|
|
48
|
-
], QualityInspectionOrderMutation);
|
|
49
|
-
|
|
50
|
-
export { QualityInspectionOrderMutation };
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Mutation, Args } 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 } 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 { CreateReceiveInventoryOrderArgs, UpdateReceiveInventoryOrderArgs } from '../inputs/create-receive-inventory-order.args.js';
|
|
34
|
-
import { DataSource } from 'typeorm';
|
|
35
|
-
import { ReceiveOrderArgs } from '../inputs/receive-order.args.js';
|
|
36
|
-
import '../auth/wms-auth.guard.js';
|
|
37
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
38
|
-
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.js';
|
|
39
|
-
import '../events/wms-mutation.interceptor.js';
|
|
40
|
-
|
|
41
|
-
let ReceiveInventoryOrderMutation = class ReceiveInventoryOrderMutation {
|
|
42
|
-
dataSource;
|
|
43
|
-
receiveInventoryOrderService;
|
|
44
|
-
constructor(dataSource, receiveInventoryOrderService) {
|
|
45
|
-
this.dataSource = dataSource;
|
|
46
|
-
this.receiveInventoryOrderService = receiveInventoryOrderService;
|
|
47
|
-
}
|
|
48
|
-
async createReceiveInventoryOrder(args) {
|
|
49
|
-
const { id } = await this.dataSource.transaction(async (manager) => this.receiveInventoryOrderService.createReceiveInventoryOrder({
|
|
50
|
-
...args,
|
|
51
|
-
manager,
|
|
52
|
-
}));
|
|
53
|
-
return this.receiveInventoryOrderService
|
|
54
|
-
.selectQueryBuilder('orders')
|
|
55
|
-
.where('orders.id = :id', { id })
|
|
56
|
-
.getRawOne();
|
|
57
|
-
}
|
|
58
|
-
async updateReceiveInventoryOrder(args) {
|
|
59
|
-
const { id } = await this.dataSource.transaction(async (manager) => this.receiveInventoryOrderService.updateReceiveInventoryOrder({
|
|
60
|
-
...args,
|
|
61
|
-
manager,
|
|
62
|
-
}));
|
|
63
|
-
return this.receiveInventoryOrderService
|
|
64
|
-
.selectQueryBuilder('orders')
|
|
65
|
-
.where('orders.id = :id', { id })
|
|
66
|
-
.getRawOne();
|
|
67
|
-
}
|
|
68
|
-
async receive(items) {
|
|
69
|
-
await this.receiveInventoryOrderService.receive(items);
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
__decorate([
|
|
74
|
-
Mutation(() => ReceiveInventoryOrderDto),
|
|
75
|
-
WmsOperation({ resource: 'receive-inventory-order', action: 'create' }),
|
|
76
|
-
WmsMutationEvent({ event: 'receive-inventory-order.created' }),
|
|
77
|
-
__param(0, Args()),
|
|
78
|
-
__metadata("design:type", Function),
|
|
79
|
-
__metadata("design:paramtypes", [CreateReceiveInventoryOrderArgs]),
|
|
80
|
-
__metadata("design:returntype", Promise)
|
|
81
|
-
], ReceiveInventoryOrderMutation.prototype, "createReceiveInventoryOrder", null);
|
|
82
|
-
__decorate([
|
|
83
|
-
Mutation(() => ReceiveInventoryOrderDto),
|
|
84
|
-
WmsOperation({ resource: 'receive-inventory-order', action: 'update' }),
|
|
85
|
-
WmsMutationEvent({ event: 'receive-inventory-order.updated' }),
|
|
86
|
-
__param(0, Args()),
|
|
87
|
-
__metadata("design:type", Function),
|
|
88
|
-
__metadata("design:paramtypes", [UpdateReceiveInventoryOrderArgs]),
|
|
89
|
-
__metadata("design:returntype", Promise)
|
|
90
|
-
], ReceiveInventoryOrderMutation.prototype, "updateReceiveInventoryOrder", null);
|
|
91
|
-
__decorate([
|
|
92
|
-
Mutation(() => Boolean),
|
|
93
|
-
WmsOperation({ resource: 'receive-inventory-order', action: 'receive' }),
|
|
94
|
-
WmsMutationEvent({ event: 'receive-inventory-order.received' }),
|
|
95
|
-
__param(0, Args('items', { type: () => [ReceiveOrderArgs] })),
|
|
96
|
-
__metadata("design:type", Function),
|
|
97
|
-
__metadata("design:paramtypes", [Array]),
|
|
98
|
-
__metadata("design:returntype", Promise)
|
|
99
|
-
], ReceiveInventoryOrderMutation.prototype, "receive", null);
|
|
100
|
-
ReceiveInventoryOrderMutation = __decorate([
|
|
101
|
-
Injectable(),
|
|
102
|
-
__metadata("design:paramtypes", [DataSource,
|
|
103
|
-
ReceiveInventoryOrderService])
|
|
104
|
-
], ReceiveInventoryOrderMutation);
|
|
105
|
-
|
|
106
|
-
export { ReceiveInventoryOrderMutation };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Mutation, Args, Resolver } from '@nestjs/graphql';
|
|
4
|
-
import { StockService, ReclassifyInventoryOrderService } from '@rytass/wms-module-core';
|
|
5
|
-
import { ReclassifyInventoryOrderArgs } from '../inputs/reclassify-inventory-order.args.js';
|
|
6
|
-
import { ReclassifyInventoryOrderDto } from '../dto/reclassify-inventory-order.dto.js';
|
|
7
|
-
import '../auth/wms-auth.guard.js';
|
|
8
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
9
|
-
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.js';
|
|
10
|
-
import '../events/wms-mutation.interceptor.js';
|
|
11
|
-
|
|
12
|
-
let ReclassifyInventoryOrderMutation = class ReclassifyInventoryOrderMutation {
|
|
13
|
-
stockService;
|
|
14
|
-
reclassifyInventoryOrderService;
|
|
15
|
-
constructor(stockService, reclassifyInventoryOrderService) {
|
|
16
|
-
this.stockService = stockService;
|
|
17
|
-
this.reclassifyInventoryOrderService = reclassifyInventoryOrderService;
|
|
18
|
-
}
|
|
19
|
-
async reclassifyInventoryOrder(args) {
|
|
20
|
-
return this.reclassifyInventoryOrderService.reclassify({
|
|
21
|
-
materialKey: args.materialKey,
|
|
22
|
-
items: args.items.map((item) => {
|
|
23
|
-
const { materialId, batchId, locationId, loaderId } = this.stockService.destructAggregateKey(item.aggregatedKey);
|
|
24
|
-
return {
|
|
25
|
-
...item,
|
|
26
|
-
materialId,
|
|
27
|
-
batchId,
|
|
28
|
-
locationId,
|
|
29
|
-
loaderId,
|
|
30
|
-
};
|
|
31
|
-
}),
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
__decorate([
|
|
36
|
-
Mutation(() => ReclassifyInventoryOrderDto),
|
|
37
|
-
WmsOperation({ resource: 'reclassify-inventory-order', action: 'reclassify' }),
|
|
38
|
-
WmsMutationEvent({ event: 'reclassify-inventory-order.reclassified' }),
|
|
39
|
-
__param(0, Args()),
|
|
40
|
-
__metadata("design:type", Function),
|
|
41
|
-
__metadata("design:paramtypes", [ReclassifyInventoryOrderArgs]),
|
|
42
|
-
__metadata("design:returntype", Promise)
|
|
43
|
-
], ReclassifyInventoryOrderMutation.prototype, "reclassifyInventoryOrder", null);
|
|
44
|
-
ReclassifyInventoryOrderMutation = __decorate([
|
|
45
|
-
Injectable(),
|
|
46
|
-
Resolver(),
|
|
47
|
-
__metadata("design:paramtypes", [StockService,
|
|
48
|
-
ReclassifyInventoryOrderService])
|
|
49
|
-
], ReclassifyInventoryOrderMutation);
|
|
50
|
-
|
|
51
|
-
export { ReclassifyInventoryOrderMutation };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param, __metadata } from 'tslib';
|
|
2
|
-
import { Injectable } from '@nestjs/common';
|
|
3
|
-
import { Mutation, Args } from '@nestjs/graphql';
|
|
4
|
-
import { ScrapeService, StockService } from '@rytass/wms-module-core';
|
|
5
|
-
import { ScrapeOrderDto } from '../dto/scrape-order.dto.js';
|
|
6
|
-
import { ScrapeOrderArgs } from '../inputs/scrape-order.args.js';
|
|
7
|
-
import '../auth/wms-auth.guard.js';
|
|
8
|
-
import { WmsOperation } from '../auth/wms-operation.decorator.js';
|
|
9
|
-
import { WmsMutationEvent } from '../events/wms-mutation-event.decorator.js';
|
|
10
|
-
import '../events/wms-mutation.interceptor.js';
|
|
11
|
-
|
|
12
|
-
let ScrapeMutation = class ScrapeMutation {
|
|
13
|
-
scrapeService;
|
|
14
|
-
stockService;
|
|
15
|
-
constructor(scrapeService, stockService) {
|
|
16
|
-
this.scrapeService = scrapeService;
|
|
17
|
-
this.stockService = stockService;
|
|
18
|
-
}
|
|
19
|
-
async scrapeMaterials(args) {
|
|
20
|
-
return this.scrapeService.scrape(args.items.map(({ aggregateKey, ...item }) => {
|
|
21
|
-
const keys = this.stockService.destructAggregateKey(aggregateKey);
|
|
22
|
-
return {
|
|
23
|
-
...item,
|
|
24
|
-
...keys,
|
|
25
|
-
};
|
|
26
|
-
}));
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
__decorate([
|
|
30
|
-
Mutation(() => ScrapeOrderDto),
|
|
31
|
-
WmsOperation({ resource: 'scrape-order', action: 'scrape' }),
|
|
32
|
-
WmsMutationEvent({ event: 'scrape-order.scraped' }),
|
|
33
|
-
__param(0, Args()),
|
|
34
|
-
__metadata("design:type", Function),
|
|
35
|
-
__metadata("design:paramtypes", [ScrapeOrderArgs]),
|
|
36
|
-
__metadata("design:returntype", Promise)
|
|
37
|
-
], ScrapeMutation.prototype, "scrapeMaterials", null);
|
|
38
|
-
ScrapeMutation = __decorate([
|
|
39
|
-
Injectable(),
|
|
40
|
-
__metadata("design:paramtypes", [ScrapeService,
|
|
41
|
-
StockService])
|
|
42
|
-
], ScrapeMutation);
|
|
43
|
-
|
|
44
|
-
export { ScrapeMutation };
|