@defra-fish/dynamics-lib 1.45.0-rc.2 → 1.45.0-rc.4
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.45.0-rc.
|
|
3
|
+
"version": "1.45.0-rc.4",
|
|
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": "
|
|
46
|
+
"gitHead": "7ef4c54a1a09d7b5da8bbb05c65b4c7aae9f1522"
|
|
47
47
|
}
|
|
@@ -15,7 +15,8 @@ describe('Fulfilment Queries', () => {
|
|
|
15
15
|
])
|
|
16
16
|
})
|
|
17
17
|
]),
|
|
18
|
-
filter:
|
|
18
|
+
filter:
|
|
19
|
+
"defra_FulfilmentRequestFileId eq null and defra_notes eq 'Initial fulfilment request created at point of sale' and statecode eq 0",
|
|
19
20
|
select: expect.any(Array),
|
|
20
21
|
orderBy: ['defra_requesttimestamp asc']
|
|
21
22
|
})
|
|
@@ -10,7 +10,7 @@ import { FulfilmentRequestFile } from '../entities/fulfilment-request-file.entit
|
|
|
10
10
|
*/
|
|
11
11
|
export const findUnassociatedFulfilmentRequests = () => {
|
|
12
12
|
const { permission } = FulfilmentRequest.definition.relationships
|
|
13
|
-
const filter = `${FulfilmentRequest.definition.relationships.fulfilmentRequestFile.property} eq null and ${FulfilmentRequest.definition.defaultFilter}`
|
|
13
|
+
const filter = `${FulfilmentRequest.definition.relationships.fulfilmentRequestFile.property} eq null and ${FulfilmentRequest.definition.mappings.notes.field} eq 'Initial fulfilment request created at point of sale' and ${FulfilmentRequest.definition.defaultFilter}`
|
|
14
14
|
return new PredefinedQuery({
|
|
15
15
|
root: FulfilmentRequest,
|
|
16
16
|
filter: filter,
|