@planning-inspectorate/data-model 2.22.0 → 2.23.0
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 +1 -1
- package/schemas/commands/appeals-components/appeal-planning-obligation.submission.schema.json +20 -0
- package/schemas/commands/appeals-components/appeal-s78-submission.schema.json +0 -10
- package/schemas/commands/appellant-submission.schema.json +2 -0
- package/src/schemas.d.ts +16 -8
- package/tests/appeals/commands/ldc-submission.test.js +2 -0
- package/tests/appeals/commands/s78-submission.test.js +2 -2
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "commands/appeals-components/appeal-planning-obligation.submission.schema.json",
|
|
4
|
+
"title": "Planning obligation specific properties",
|
|
5
|
+
"description": "Schema defining any properties for planning obligation",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": ["planningObligation", "statusPlanningObligation"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"planningObligation": {
|
|
11
|
+
"type": ["boolean", "null"],
|
|
12
|
+
"description": "Indicates the existence of a planning obligation"
|
|
13
|
+
},
|
|
14
|
+
"statusPlanningObligation": {
|
|
15
|
+
"type": ["string", "null"],
|
|
16
|
+
"enum": ["finalised", "not_started", null],
|
|
17
|
+
"description": "The planning obligation information, if available"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
"appellantProcedurePreferenceDetails",
|
|
15
15
|
"appellantProcedurePreferenceDuration",
|
|
16
16
|
"appellantProcedurePreferenceWitnessCount",
|
|
17
|
-
"planningObligation",
|
|
18
|
-
"statusPlanningObligation",
|
|
19
17
|
"developmentType"
|
|
20
18
|
],
|
|
21
19
|
"allOf": [
|
|
@@ -54,14 +52,6 @@
|
|
|
54
52
|
"type": ["number", "null"],
|
|
55
53
|
"description": "The number of witnesses in inquiries"
|
|
56
54
|
},
|
|
57
|
-
"planningObligation": {
|
|
58
|
-
"type": ["boolean", "null"],
|
|
59
|
-
"description": "Indicates the existence of a planning obligation"
|
|
60
|
-
},
|
|
61
|
-
"statusPlanningObligation": {
|
|
62
|
-
"type": ["string", "null"],
|
|
63
|
-
"description": "The planning obligation information, if available"
|
|
64
|
-
},
|
|
65
55
|
"developmentType": {
|
|
66
56
|
"type": ["string", "null"],
|
|
67
57
|
"enum": [
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
{ "$ref": "appeals-components/appeal-site-area.schema.json" },
|
|
33
33
|
{ "$ref": "appeals-components/appeal-land-ownership.schema.json" },
|
|
34
34
|
{ "$ref": "appeals-components/appeal-s78-submission.schema.json" },
|
|
35
|
+
{ "$ref": "appeals-components/appeal-planning-obligation.submission.schema.json" },
|
|
35
36
|
{ "$ref": "appeals-components/appellant-procedure-preference.schema.json" }
|
|
36
37
|
]
|
|
37
38
|
},
|
|
@@ -72,6 +73,7 @@
|
|
|
72
73
|
{ "$ref": "appeals-components/appeal-common-submission.schema.json" },
|
|
73
74
|
{ "$ref": "appeals-components/appeal-common-planning.schema.json" },
|
|
74
75
|
{ "$ref": "appeals-components/appellant-procedure-preference.schema.json" },
|
|
76
|
+
{ "$ref": "appeals-components/appeal-planning-obligation.submission.schema.json" },
|
|
75
77
|
{ "$ref": "appeals-components/appeal-ldc.submission.schema.json" }
|
|
76
78
|
]
|
|
77
79
|
},
|
package/src/schemas.d.ts
CHANGED
|
@@ -3706,14 +3706,6 @@ export type AppellantS78SubmissionProperties = {
|
|
|
3706
3706
|
* The number of witnesses in inquiries
|
|
3707
3707
|
*/
|
|
3708
3708
|
appellantProcedurePreferenceWitnessCount?: number | null;
|
|
3709
|
-
/**
|
|
3710
|
-
* Indicates the existence of a planning obligation
|
|
3711
|
-
*/
|
|
3712
|
-
planningObligation?: boolean | null;
|
|
3713
|
-
/**
|
|
3714
|
-
* The planning obligation information, if available
|
|
3715
|
-
*/
|
|
3716
|
-
statusPlanningObligation?: string | null;
|
|
3717
3709
|
developmentType?:
|
|
3718
3710
|
| 'householder'
|
|
3719
3711
|
| 'change-of-use'
|
|
@@ -3772,6 +3764,7 @@ export interface AppellantSubmissionCommand {
|
|
|
3772
3764
|
SiteAreaProperties &
|
|
3773
3765
|
AppealLandOwnershipProperties &
|
|
3774
3766
|
AppellantS78SubmissionProperties &
|
|
3767
|
+
PlanningObligationSpecificProperties &
|
|
3775
3768
|
AppellantProcedurePreferenceProperties)
|
|
3776
3769
|
| ({
|
|
3777
3770
|
caseType?: 'ZA';
|
|
@@ -3796,6 +3789,7 @@ export interface AppellantSubmissionCommand {
|
|
|
3796
3789
|
} & AppellantCommonSubmissionProperties &
|
|
3797
3790
|
AppellantCommonPlanningProperties &
|
|
3798
3791
|
AppellantProcedurePreferenceProperties &
|
|
3792
|
+
PlanningObligationSpecificProperties &
|
|
3799
3793
|
LDCSpecificProperties)
|
|
3800
3794
|
| ({
|
|
3801
3795
|
caseType?: 'F';
|
|
@@ -3987,6 +3981,20 @@ export interface SiteAreaProperties {
|
|
|
3987
3981
|
floorSpaceSquareMetres: number | null;
|
|
3988
3982
|
[k: string]: unknown;
|
|
3989
3983
|
}
|
|
3984
|
+
/**
|
|
3985
|
+
* Schema defining any properties for planning obligation
|
|
3986
|
+
*/
|
|
3987
|
+
export interface PlanningObligationSpecificProperties {
|
|
3988
|
+
/**
|
|
3989
|
+
* Indicates the existence of a planning obligation
|
|
3990
|
+
*/
|
|
3991
|
+
planningObligation: boolean | null;
|
|
3992
|
+
/**
|
|
3993
|
+
* The planning obligation information, if available
|
|
3994
|
+
*/
|
|
3995
|
+
statusPlanningObligation: 'finalised' | 'not_started' | null;
|
|
3996
|
+
[k: string]: unknown;
|
|
3997
|
+
}
|
|
3990
3998
|
/**
|
|
3991
3999
|
* Schema defining any properties for advertisement appeals
|
|
3992
4000
|
*/
|
|
@@ -63,6 +63,8 @@ const exampleLDCSubmissionSchema = {
|
|
|
63
63
|
appellantProcedurePreferenceDetails: 'eiusmod ex exercitation',
|
|
64
64
|
appellantProcedurePreferenceDuration: 10816414.941069126,
|
|
65
65
|
appellantProcedurePreferenceWitnessCount: -91300569.36444478,
|
|
66
|
+
planningObligation: true,
|
|
67
|
+
statusPlanningObligation: 'finalised',
|
|
66
68
|
siteUseAtTimeOfApplication: 'residential',
|
|
67
69
|
applicationMadeUnderActSection: 'existing-development'
|
|
68
70
|
},
|
|
@@ -71,8 +71,8 @@ const exampleS78SubmissionSchema = {
|
|
|
71
71
|
appellantProcedurePreferenceDetails: 'eiusmod ex exercitation',
|
|
72
72
|
appellantProcedurePreferenceDuration: 10816414.941069126,
|
|
73
73
|
appellantProcedurePreferenceWitnessCount: -91300569.36444478,
|
|
74
|
-
planningObligation:
|
|
75
|
-
statusPlanningObligation: '
|
|
74
|
+
planningObligation: true,
|
|
75
|
+
statusPlanningObligation: 'finalised',
|
|
76
76
|
developmentType: 'change-of-use'
|
|
77
77
|
},
|
|
78
78
|
documents: [document],
|