@things-factory/warehouse-base 6.2.127 → 6.2.129

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/warehouse-base",
3
- "version": "6.2.127",
3
+ "version": "6.2.129",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -31,5 +31,5 @@
31
31
  "@things-factory/product-base": "^6.2.126",
32
32
  "@things-factory/setting-base": "^6.2.126"
33
33
  },
34
- "gitHead": "42912d556785333808ccb5db0ee534408a01ea33"
34
+ "gitHead": "6939e013d9a091fb17094d6f988c32f4dab278f4"
35
35
  }
package/server/index.ts CHANGED
@@ -1,14 +1,9 @@
1
1
  export * from './constants'
2
2
  export { createLocation, deleteLocation, deleteLocations, updateLocation } from './service/location/location-mutation'
3
- export {
4
- createWarehouse,
5
- deleteWarehouse,
6
- deleteWarehouses,
7
- updateWarehouse
8
- } from './service/warehouse/warehouse-mutation'
3
+ export { createWarehouse, deleteWarehouse, deleteWarehouses, updateWarehouse } from './service/warehouse/warehouse-mutation'
9
4
  export * from './migrations'
10
5
  export * from './utils'
11
6
  export * from './service'
12
7
  export * from './service/inventory/inventory-query'
13
-
8
+ export { updateMultipleInventory } from './service/inventory/inventory-mutation'
14
9
  export { approveInventoryChanges } from './service/inventory-change/inventory-change-mutation'
@@ -20,7 +20,7 @@ export class PalletQuery {
20
20
  })
21
21
  }
22
22
 
23
- const convertedParams = convertListParams(params, { domain })
23
+ const convertedParams = convertListParams(params, { domain, searchables: ['name'] })
24
24
  const [items, total] = await getRepository(Pallet).findAndCount({
25
25
  ...convertedParams,
26
26
  relations: ['owner', 'holder', 'domain', 'creator', 'updater']
@@ -74,11 +74,7 @@ export class PalletQuery {
74
74
  }
75
75
 
76
76
  @Query(returns => Pallet, { nullable: true })
77
- async palletByStatus(
78
- @Arg('name') name: string,
79
- @Arg('status') status: string,
80
- @Ctx() context: ResolverContext
81
- ): Promise<Pallet | boolean> {
77
+ async palletByStatus(@Arg('name') name: string, @Arg('status') status: string, @Ctx() context: ResolverContext): Promise<Pallet | boolean> {
82
78
  const { domain } = context.state
83
79
 
84
80
  let records = await getRepository(Pallet).findOne({