@defra-fish/dynamics-lib 1.35.0-rc.4 → 1.35.0-rc.6
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.35.0-rc.
|
|
3
|
+
"version": "1.35.0-rc.6",
|
|
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": "61d0b24f9d4ca37f0e3cc15b0d358f13d3e08d22"
|
|
47
47
|
}
|
|
@@ -6,7 +6,11 @@ Object {
|
|
|
6
6
|
"birthDate": "1989-07-01",
|
|
7
7
|
"channelId": "948594",
|
|
8
8
|
"concessions": "[{\\"type\\":\\"Blue Badge\\",\\"referenceNumber\\":123456789}]",
|
|
9
|
-
"country":
|
|
9
|
+
"country": Object {
|
|
10
|
+
"description": "GB-ENG",
|
|
11
|
+
"id": 910400195,
|
|
12
|
+
"label": "England",
|
|
13
|
+
},
|
|
10
14
|
"dataSource": Object {
|
|
11
15
|
"description": "Post Office Sales",
|
|
12
16
|
"id": 910400000,
|
|
@@ -72,7 +76,7 @@ Object {
|
|
|
72
76
|
"defra_birthdate": "1989-07-01",
|
|
73
77
|
"defra_channelid": "948594",
|
|
74
78
|
"defra_concessions": "[{\\"type\\":\\"Blue Badge\\",\\"referenceNumber\\":123456789}]",
|
|
75
|
-
"
|
|
79
|
+
"defra_countrylist": 910400195,
|
|
76
80
|
"defra_datasource": 910400000,
|
|
77
81
|
"defra_emailaddress": "daniel-ricc@example.couk",
|
|
78
82
|
"defra_errormessage": "\\"permissions[0].licensee.email\\" must be a valid email",
|
|
@@ -21,7 +21,7 @@ describe('pocl staging exception entity', () => {
|
|
|
21
21
|
defra_locality: 'Stoke Bishop',
|
|
22
22
|
defra_town: 'Bristol',
|
|
23
23
|
defra_postcode: 'BS9 1HJ',
|
|
24
|
-
|
|
24
|
+
defra_countrylist: 910400195,
|
|
25
25
|
defra_birthdate: '1989-07-01',
|
|
26
26
|
defra_emailaddress: 'daniel-ricc@example.couk',
|
|
27
27
|
defra_mobilenumber: '07722 123456',
|
|
@@ -68,7 +68,7 @@ describe('pocl staging exception entity', () => {
|
|
|
68
68
|
locality: 'Stoke Bishop',
|
|
69
69
|
town: 'Bristol',
|
|
70
70
|
postcode: 'BS9 1HJ',
|
|
71
|
-
country: 'GB',
|
|
71
|
+
country: expect.objectContaining({ id: 910400195, label: 'England', description: 'GB-ENG' }),
|
|
72
72
|
birthDate: '1989-07-01',
|
|
73
73
|
email: 'daniel-ricc@example.couk',
|
|
74
74
|
mobilePhone: '07722 123456',
|
|
@@ -116,7 +116,7 @@ describe('pocl staging exception entity', () => {
|
|
|
116
116
|
validationError.locality = 'Stoke Bishop'
|
|
117
117
|
validationError.town = 'Bristol'
|
|
118
118
|
validationError.postcode = 'BS9 1HJ'
|
|
119
|
-
validationError.country = '
|
|
119
|
+
validationError.country = optionSetData.defra_country.options['910400195']
|
|
120
120
|
validationError.birthDate = '1989-07-01'
|
|
121
121
|
validationError.email = 'daniel-ricc@example.couk'
|
|
122
122
|
validationError.mobilePhone = '07722 123456'
|
|
@@ -15,7 +15,7 @@ export class PoclValidationError extends BaseEntity {
|
|
|
15
15
|
firstName: { field: 'defra_firstname', type: 'string' },
|
|
16
16
|
lastName: { field: 'defra_name', type: 'string' },
|
|
17
17
|
birthDate: { field: 'defra_birthdate', type: 'string' },
|
|
18
|
-
country: { field: '
|
|
18
|
+
country: { field: 'defra_countrylist', type: 'optionset', ref: 'defra_country' },
|
|
19
19
|
postcode: { field: 'defra_postcode', type: 'string' },
|
|
20
20
|
town: { field: 'defra_town', type: 'string' },
|
|
21
21
|
locality: { field: 'defra_locality', type: 'string' },
|