@defra-fish/dynamics-lib 1.49.0-rc.7 → 1.49.0-rc.9

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": "@defra-fish/dynamics-lib",
3
- "version": "1.49.0-rc.7",
3
+ "version": "1.49.0-rc.9",
4
4
  "description": "Framework to support integration with dynamics",
5
5
  "type": "module",
6
6
  "engines": {
@@ -43,5 +43,5 @@
43
43
  "simple-oauth2": "^4.3.0",
44
44
  "uuid": "^8.3.2"
45
45
  },
46
- "gitHead": "a933cacf4f8f557e16ff0d0ee9d8b001723e292c"
46
+ "gitHead": "1e15ad727b21fcf5bae53fbc6a7f06059a42289d"
47
47
  }
@@ -1,6 +1,7 @@
1
1
  import { PredefinedQuery } from './predefined-query.js'
2
2
  import { Permission } from '../entities/permission.entity.js'
3
3
  import { escapeODataStringValue } from '../client/util.js'
4
+ import { ConcessionProof } from '../entities/concession-proof.entity.js'
4
5
 
5
6
  /**
6
7
  * Builds a query to retrieve a permission and related entities for a given reference number and related contact information
@@ -32,6 +33,6 @@ export const permissionForFullReferenceNumber = permissionReferenceNumber => {
32
33
  return new PredefinedQuery({
33
34
  root: Permission,
34
35
  filter: filter,
35
- expand: [licensee, permit, concessionProofs]
36
+ expand: [licensee, permit, { ...concessionProofs, expand: [ConcessionProof.definition.relationships.concession] }]
36
37
  })
37
38
  }