Skip to content

Commit

Permalink
fix: more ProjectTypes and minor adjustments (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak authored Sep 29, 2023
1 parent 8b08ae1 commit d47a46d
Show file tree
Hide file tree
Showing 11 changed files with 602 additions and 64 deletions.
3 changes: 1 addition & 2 deletions examples/data/Applicant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const validApplicant: Schema['data']['applicant'] = {
interest: 'owner.co',
ownership: {
certificate: 'a',
noticeGiven: true,
owners: [
{
name: 'Owner 1',
Expand All @@ -29,13 +30,11 @@ export const validApplicant: Schema['data']['applicant'] = {
town: 'Anywhere',
postcode: 'SE5 0HU',
},
noticeGiven: true,
noticeDate: '2023-10-01',
},
{
name: 'Owner 2',
address: 'Same as Owner 1',
noticeGiven: false,
},
],
},
Expand Down
4 changes: 3 additions & 1 deletion examples/data/Application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export const validApplication: Schema['data']['application'] = {
},
declaration: {
accurate: true,
connection: 'none',
connection: {
value: 'none',
},
},
};
6 changes: 5 additions & 1 deletion examples/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {validResponses} from './data/Responses';

const validMetadata: Schema['metadata'] = {
service: {
publishedFlowId: 'b3320abe-f5bc-4185-b61f-40e9e65f07ad',
flowId: 'b3320abe-f5bc-4185-b61f-40e9e65f07ad',
publishedFlowId: 22,
name: 'Test',
owner: 'Test',
url: 'https://www.planx.uk/',
Expand All @@ -18,6 +19,9 @@ const validMetadata: Schema['metadata'] = {
createdAt: '2018-11-13T20:20:39+00:00',
submittedAt: '2018-11-13T20:20:39+00:00',
},
schema: {
url: 'https://theopensystemslab.github.io/digital-planning-data-schemas/v0.0.1/schema.json',
},
};

const validFiles: Schema['files'] = [
Expand Down
10 changes: 8 additions & 2 deletions examples/validExampleAgent.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@
},
"declaration": {
"accurate": true,
"connection": "none"
"connection": {
"value": "none"
}
}
},
"property": {
Expand Down Expand Up @@ -222,7 +224,8 @@
],
"metadata": {
"service": {
"publishedFlowId": "b3320abe-f5bc-4185-b61f-40e9e65f07ad",
"flowId": "b3320abe-f5bc-4185-b61f-40e9e65f07ad",
"publishedFlowId": 22,
"name": "Test",
"owner": "Test",
"url": "https://www.planx.uk/"
Expand All @@ -232,6 +235,9 @@
"id": "b3320abe-f5bc-4185-b61f-40e9e65f07ad",
"createdAt": "2018-11-13T20:20:39+00:00",
"submittedAt": "2018-11-13T20:20:39+00:00"
},
"schema": {
"url": "https://theopensystemslab.github.io/digital-planning-data-schemas/v0.0.1/schema.json"
}
},
"responses": [
Expand Down
15 changes: 10 additions & 5 deletions examples/validExampleApplicant.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"interest": "owner.co",
"ownership": {
"certificate": "a",
"noticeGiven": true,
"owners": [
{
"name": "Owner 1",
Expand All @@ -32,13 +33,11 @@
"town": "Anywhere",
"postcode": "SE5 0HU"
},
"noticeGiven": true,
"noticeDate": "2023-10-01"
},
{
"name": "Owner 2",
"address": "Same as Owner 1",
"noticeGiven": false
"address": "Same as Owner 1"
}
]
}
Expand Down Expand Up @@ -66,7 +65,9 @@
},
"declaration": {
"accurate": true,
"connection": "none"
"connection": {
"value": "none"
}
}
},
"property": {
Expand Down Expand Up @@ -217,7 +218,8 @@
],
"metadata": {
"service": {
"publishedFlowId": "b3320abe-f5bc-4185-b61f-40e9e65f07ad",
"flowId": "b3320abe-f5bc-4185-b61f-40e9e65f07ad",
"publishedFlowId": 22,
"name": "Test",
"owner": "Test",
"url": "https://www.planx.uk/"
Expand All @@ -227,6 +229,9 @@
"id": "b3320abe-f5bc-4185-b61f-40e9e65f07ad",
"createdAt": "2018-11-13T20:20:39+00:00",
"submittedAt": "2018-11-13T20:20:39+00:00"
},
"schema": {
"url": "https://theopensystemslab.github.io/digital-planning-data-schemas/v0.0.1/schema.json"
}
},
"responses": [
Expand Down
Loading

0 comments on commit d47a46d

Please sign in to comment.