@planning-inspectorate/data-model 2.53.0 → 2.55.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/docs/README.md +5 -5
- package/docs/applications-crowndev-application-defs-address.md +108 -0
- package/docs/applications-crowndev-application-defs-contact.md +99 -0
- package/docs/applications-crowndev-application-defs-organisation.md +117 -0
- package/docs/applications-crowndev-application-defs.md +3 -0
- package/docs/applications-crowndev-application.md +2257 -0
- package/docs/applications-notify-email-defs-contact.md +1 -0
- package/docs/applications-notify-email.md +1 -0
- package/docs/applications-representation-defs-contact.md +1 -0
- package/docs/applications-representation.md +5 -0
- package/docs/nsip-project.md +36 -0
- package/package.json +1 -1
- package/pins_data_model/models/model_applications_crowndev_application.py +525 -0
- package/pins_data_model/models/model_applications_notify_email.py +1 -0
- package/pins_data_model/models/model_applications_representation.py +5 -0
- package/pins_data_model/models/model_nsip_project.py +21 -0
- package/schemas/{applications-application.schema.json → applications-crowndev-application.schema.json} +11 -9
- package/schemas/applications-notify-email.schema.json +2 -2
- package/schemas/applications-representation.schema.json +6 -5
- package/schemas/nsip-project.schema.json +16 -0
- package/src/enums.cjs +13 -0
- package/src/enums.d.ts +12 -0
- package/src/enums.js +12 -0
- package/src/index.cjs +13 -0
- package/src/schemas.d.ts +53 -45
package/docs/README.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
* [Casework Representation Schema](./applications-representation.md "Representations and related document metadata for Casework Projects") – `applications-representation.schema.json`
|
|
20
20
|
|
|
21
|
-
* [Crown Development Application](./applications-application.md "Main application details for Crown Development Project") – `applications-application.schema.json`
|
|
21
|
+
* [Crown Development Application](./applications-crowndev-application.md "Main application details for Crown Development Project") – `applications-crowndev-application.schema.json`
|
|
22
22
|
|
|
23
23
|
* [DaRT API response](./dart-response.md "Schema defining the data returned by the DaRT API") – `dart-response.schema.json`
|
|
24
24
|
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
|
|
93
93
|
* [Untitled object in Casework Representation Schema](./applications-representation-defs-representationdocument.md) – `applications-representation.schema.json#/$defs/representationDocument`
|
|
94
94
|
|
|
95
|
-
* [Untitled object in Crown Development Application](./applications-application-defs-organisation.md) – `applications-application.schema.json#/$defs/organisation`
|
|
95
|
+
* [Untitled object in Crown Development Application](./applications-crowndev-application-defs-organisation.md) – `applications-crowndev-application.schema.json#/$defs/organisation`
|
|
96
96
|
|
|
97
|
-
* [Untitled object in Crown Development Application](./applications-application-defs-contact.md) – `applications-application.schema.json#/$defs/contact`
|
|
97
|
+
* [Untitled object in Crown Development Application](./applications-crowndev-application-defs-contact.md) – `applications-crowndev-application.schema.json#/$defs/contact`
|
|
98
98
|
|
|
99
|
-
* [Untitled object in Crown Development Application](./applications-application-defs-address.md) – `applications-application.schema.json#/$defs/address`
|
|
99
|
+
* [Untitled object in Crown Development Application](./applications-crowndev-application-defs-address.md) – `applications-crowndev-application.schema.json#/$defs/address`
|
|
100
100
|
|
|
101
101
|
* [Untitled object in DaRT API response](./dart-response-properties-neighbouringsiteaddresses-items.md) – `dart-response.schema.json#/properties/neighbouringSiteAddresses/items`
|
|
102
102
|
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
|
|
119
119
|
* [Untitled array in Appeal Representation](./appeal-representation-properties-documentids.md "An array of documentIds") – `appeal-representation.schema.json#/properties/documentIds`
|
|
120
120
|
|
|
121
|
-
* [Untitled array in Crown Development Application](./applications-application-properties-organisations.md "Applications can have one or more organisaitons associated with them") – `applications-application.schema.json#/properties/organisations`
|
|
121
|
+
* [Untitled array in Crown Development Application](./applications-crowndev-application-properties-organisations.md "Applications can have one or more organisaitons associated with them") – `applications-crowndev-application.schema.json#/properties/organisations`
|
|
122
122
|
|
|
123
123
|
* [Untitled array in Examination Timetable](./nsip-exam-timetable-properties-events.md) – `nsip-exam-timetable.schema.json#/properties/events`
|
|
124
124
|
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
## address Type
|
|
2
|
+
|
|
3
|
+
`object` ([Details](applications-crowndev-application-defs-address.md))
|
|
4
|
+
|
|
5
|
+
# address Properties
|
|
6
|
+
|
|
7
|
+
| Property | Type | Required | Nullable | Defined by |
|
|
8
|
+
| :-------------------- | :------- | :------- | :------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
9
|
+
| [line1](#line1) | `string` | Optional | can be null | [Crown Development Application](applications-crowndev-application-defs-address-properties-line1.md "applications-crowndev-application.schema.json#/$defs/address/properties/line1") |
|
|
10
|
+
| [line2](#line2) | `string` | Optional | can be null | [Crown Development Application](applications-crowndev-application-defs-address-properties-line2.md "applications-crowndev-application.schema.json#/$defs/address/properties/line2") |
|
|
11
|
+
| [townCity](#towncity) | `string` | Optional | can be null | [Crown Development Application](applications-crowndev-application-defs-address-properties-towncity.md "applications-crowndev-application.schema.json#/$defs/address/properties/townCity") |
|
|
12
|
+
| [county](#county) | `string` | Optional | can be null | [Crown Development Application](applications-crowndev-application-defs-address-properties-county.md "applications-crowndev-application.schema.json#/$defs/address/properties/county") |
|
|
13
|
+
| [postcode](#postcode) | `string` | Required | cannot be null | [Crown Development Application](applications-crowndev-application-defs-address-properties-postcode.md "applications-crowndev-application.schema.json#/$defs/address/properties/postcode") |
|
|
14
|
+
| Additional Properties | Any | Optional | can be null | |
|
|
15
|
+
|
|
16
|
+
## line1
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
`line1`
|
|
21
|
+
|
|
22
|
+
* is optional
|
|
23
|
+
|
|
24
|
+
* Type: `string`
|
|
25
|
+
|
|
26
|
+
* can be null
|
|
27
|
+
|
|
28
|
+
* defined in: [Crown Development Application](applications-crowndev-application-defs-address-properties-line1.md "applications-crowndev-application.schema.json#/$defs/address/properties/line1")
|
|
29
|
+
|
|
30
|
+
### line1 Type
|
|
31
|
+
|
|
32
|
+
`string`
|
|
33
|
+
|
|
34
|
+
## line2
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
`line2`
|
|
39
|
+
|
|
40
|
+
* is optional
|
|
41
|
+
|
|
42
|
+
* Type: `string`
|
|
43
|
+
|
|
44
|
+
* can be null
|
|
45
|
+
|
|
46
|
+
* defined in: [Crown Development Application](applications-crowndev-application-defs-address-properties-line2.md "applications-crowndev-application.schema.json#/$defs/address/properties/line2")
|
|
47
|
+
|
|
48
|
+
### line2 Type
|
|
49
|
+
|
|
50
|
+
`string`
|
|
51
|
+
|
|
52
|
+
## townCity
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
`townCity`
|
|
57
|
+
|
|
58
|
+
* is optional
|
|
59
|
+
|
|
60
|
+
* Type: `string`
|
|
61
|
+
|
|
62
|
+
* can be null
|
|
63
|
+
|
|
64
|
+
* defined in: [Crown Development Application](applications-crowndev-application-defs-address-properties-towncity.md "applications-crowndev-application.schema.json#/$defs/address/properties/townCity")
|
|
65
|
+
|
|
66
|
+
### townCity Type
|
|
67
|
+
|
|
68
|
+
`string`
|
|
69
|
+
|
|
70
|
+
## county
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
`county`
|
|
75
|
+
|
|
76
|
+
* is optional
|
|
77
|
+
|
|
78
|
+
* Type: `string`
|
|
79
|
+
|
|
80
|
+
* can be null
|
|
81
|
+
|
|
82
|
+
* defined in: [Crown Development Application](applications-crowndev-application-defs-address-properties-county.md "applications-crowndev-application.schema.json#/$defs/address/properties/county")
|
|
83
|
+
|
|
84
|
+
### county Type
|
|
85
|
+
|
|
86
|
+
`string`
|
|
87
|
+
|
|
88
|
+
## postcode
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
`postcode`
|
|
93
|
+
|
|
94
|
+
* is required
|
|
95
|
+
|
|
96
|
+
* Type: `string`
|
|
97
|
+
|
|
98
|
+
* cannot be null
|
|
99
|
+
|
|
100
|
+
* defined in: [Crown Development Application](applications-crowndev-application-defs-address-properties-postcode.md "applications-crowndev-application.schema.json#/$defs/address/properties/postcode")
|
|
101
|
+
|
|
102
|
+
### postcode Type
|
|
103
|
+
|
|
104
|
+
`string`
|
|
105
|
+
|
|
106
|
+
## Additional Properties
|
|
107
|
+
|
|
108
|
+
Additional properties are allowed and do not have to follow a specific schema
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
## contact Type
|
|
2
|
+
|
|
3
|
+
`object` ([Details](applications-crowndev-application-defs-contact.md))
|
|
4
|
+
|
|
5
|
+
# contact Properties
|
|
6
|
+
|
|
7
|
+
| Property | Type | Required | Nullable | Defined by |
|
|
8
|
+
| :---------------------------------------------------- | :------- | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
9
|
+
| [contactId](#contactid) | `string` | Required | cannot be null | [Crown Development Application](applications-crowndev-application-defs-contact-properties-contactid.md "applications-crowndev-application.schema.json#/$defs/contact/properties/contactId") |
|
|
10
|
+
| [contactPreference](#contactpreference) | `string` | Optional | can be null | [Crown Development Application](applications-crowndev-application-defs-contact-properties-contactpreference.md "applications-crowndev-application.schema.json#/$defs/contact/properties/contactPreference") |
|
|
11
|
+
| [writtenRepOrgName](#writtenreporgname) | `string` | Optional | can be null | [Crown Development Application](applications-crowndev-application-defs-contact-properties-writtenreporgname.md "applications-crowndev-application.schema.json#/$defs/contact/properties/writtenRepOrgName") |
|
|
12
|
+
| [writtenRepJobTitleorRole](#writtenrepjobtitleorrole) | `string` | Optional | can be null | [Crown Development Application](applications-crowndev-application-defs-contact-properties-writtenrepjobtitleorrole.md "applications-crowndev-application.schema.json#/$defs/contact/properties/writtenRepJobTitleorRole") |
|
|
13
|
+
| Additional Properties | Any | Optional | can be null | |
|
|
14
|
+
|
|
15
|
+
## contactId
|
|
16
|
+
|
|
17
|
+
Source PK for Contact
|
|
18
|
+
|
|
19
|
+
`contactId`
|
|
20
|
+
|
|
21
|
+
* is required
|
|
22
|
+
|
|
23
|
+
* Type: `string`
|
|
24
|
+
|
|
25
|
+
* cannot be null
|
|
26
|
+
|
|
27
|
+
* defined in: [Crown Development Application](applications-crowndev-application-defs-contact-properties-contactid.md "applications-crowndev-application.schema.json#/$defs/contact/properties/contactId")
|
|
28
|
+
|
|
29
|
+
### contactId Type
|
|
30
|
+
|
|
31
|
+
`string`
|
|
32
|
+
|
|
33
|
+
## contactPreference
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
`contactPreference`
|
|
38
|
+
|
|
39
|
+
* is optional
|
|
40
|
+
|
|
41
|
+
* Type: `string`
|
|
42
|
+
|
|
43
|
+
* can be null
|
|
44
|
+
|
|
45
|
+
* defined in: [Crown Development Application](applications-crowndev-application-defs-contact-properties-contactpreference.md "applications-crowndev-application.schema.json#/$defs/contact/properties/contactPreference")
|
|
46
|
+
|
|
47
|
+
### contactPreference Type
|
|
48
|
+
|
|
49
|
+
`string`
|
|
50
|
+
|
|
51
|
+
### contactPreference Constraints
|
|
52
|
+
|
|
53
|
+
**enum**: the value of this property must be equal to one of the following values:
|
|
54
|
+
|
|
55
|
+
| Value | Explanation |
|
|
56
|
+
| :-------- | :---------- |
|
|
57
|
+
| `"email"` | |
|
|
58
|
+
| `"post"` | |
|
|
59
|
+
| `null` | |
|
|
60
|
+
|
|
61
|
+
## writtenRepOrgName
|
|
62
|
+
|
|
63
|
+
Organisation Name used for written-representation on behalf of an organisation
|
|
64
|
+
|
|
65
|
+
`writtenRepOrgName`
|
|
66
|
+
|
|
67
|
+
* is optional
|
|
68
|
+
|
|
69
|
+
* Type: `string`
|
|
70
|
+
|
|
71
|
+
* can be null
|
|
72
|
+
|
|
73
|
+
* defined in: [Crown Development Application](applications-crowndev-application-defs-contact-properties-writtenreporgname.md "applications-crowndev-application.schema.json#/$defs/contact/properties/writtenRepOrgName")
|
|
74
|
+
|
|
75
|
+
### writtenRepOrgName Type
|
|
76
|
+
|
|
77
|
+
`string`
|
|
78
|
+
|
|
79
|
+
## writtenRepJobTitleorRole
|
|
80
|
+
|
|
81
|
+
Job Title or Role used for written-representation on behalf of an organisation
|
|
82
|
+
|
|
83
|
+
`writtenRepJobTitleorRole`
|
|
84
|
+
|
|
85
|
+
* is optional
|
|
86
|
+
|
|
87
|
+
* Type: `string`
|
|
88
|
+
|
|
89
|
+
* can be null
|
|
90
|
+
|
|
91
|
+
* defined in: [Crown Development Application](applications-crowndev-application-defs-contact-properties-writtenrepjobtitleorrole.md "applications-crowndev-application.schema.json#/$defs/contact/properties/writtenRepJobTitleorRole")
|
|
92
|
+
|
|
93
|
+
### writtenRepJobTitleorRole Type
|
|
94
|
+
|
|
95
|
+
`string`
|
|
96
|
+
|
|
97
|
+
## Additional Properties
|
|
98
|
+
|
|
99
|
+
Additional properties are allowed and do not have to follow a specific schema
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
## organisation Type
|
|
2
|
+
|
|
3
|
+
`object` ([Details](applications-crowndev-application-defs-organisation.md))
|
|
4
|
+
|
|
5
|
+
# organisation Properties
|
|
6
|
+
|
|
7
|
+
| Property | Type | Required | Nullable | Defined by |
|
|
8
|
+
| :------------------------------------------ | :------- | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
9
|
+
| [contactRoleType](#contactroletype) | `string` | Required | cannot be null | [Crown Development Application](applications-crowndev-application-defs-organisation-properties-contactroletype.md "applications-crowndev-application.schema.json#/$defs/organisation/properties/contactRoleType") |
|
|
10
|
+
| [organisationId](#organisationid) | `string` | Required | cannot be null | [Crown Development Application](applications-crowndev-application-defs-organisation-properties-organisationid.md "applications-crowndev-application.schema.json#/$defs/organisation/properties/organisationId") |
|
|
11
|
+
| [organisationName](#organisationname) | `string` | Optional | can be null | [Crown Development Application](applications-crowndev-application-defs-organisation-properties-organisationname.md "applications-crowndev-application.schema.json#/$defs/organisation/properties/organisationName") |
|
|
12
|
+
| [organisationAddress](#organisationaddress) | `array` | Optional | can be null | [Crown Development Application](applications-crowndev-application-defs-organisation-properties-organisationaddress.md "applications-crowndev-application.schema.json#/$defs/organisation/properties/organisationAddress") |
|
|
13
|
+
| [contacts](#contacts) | `array` | Optional | can be null | [Crown Development Application](applications-crowndev-application-defs-organisation-properties-contacts.md "applications-crowndev-application.schema.json#/$defs/organisation/properties/contacts") |
|
|
14
|
+
| Additional Properties | Any | Optional | can be null | |
|
|
15
|
+
|
|
16
|
+
## contactRoleType
|
|
17
|
+
|
|
18
|
+
Agent or Applicant details
|
|
19
|
+
|
|
20
|
+
`contactRoleType`
|
|
21
|
+
|
|
22
|
+
* is required
|
|
23
|
+
|
|
24
|
+
* Type: `string`
|
|
25
|
+
|
|
26
|
+
* cannot be null
|
|
27
|
+
|
|
28
|
+
* defined in: [Crown Development Application](applications-crowndev-application-defs-organisation-properties-contactroletype.md "applications-crowndev-application.schema.json#/$defs/organisation/properties/contactRoleType")
|
|
29
|
+
|
|
30
|
+
### contactRoleType Type
|
|
31
|
+
|
|
32
|
+
`string`
|
|
33
|
+
|
|
34
|
+
### contactRoleType Constraints
|
|
35
|
+
|
|
36
|
+
**enum**: the value of this property must be equal to one of the following values:
|
|
37
|
+
|
|
38
|
+
| Value | Explanation |
|
|
39
|
+
| :------------ | :---------- |
|
|
40
|
+
| `"agent"` | |
|
|
41
|
+
| `"applicant"` | |
|
|
42
|
+
|
|
43
|
+
## organisationId
|
|
44
|
+
|
|
45
|
+
Source PK for Organisation
|
|
46
|
+
|
|
47
|
+
`organisationId`
|
|
48
|
+
|
|
49
|
+
* is required
|
|
50
|
+
|
|
51
|
+
* Type: `string`
|
|
52
|
+
|
|
53
|
+
* cannot be null
|
|
54
|
+
|
|
55
|
+
* defined in: [Crown Development Application](applications-crowndev-application-defs-organisation-properties-organisationid.md "applications-crowndev-application.schema.json#/$defs/organisation/properties/organisationId")
|
|
56
|
+
|
|
57
|
+
### organisationId Type
|
|
58
|
+
|
|
59
|
+
`string`
|
|
60
|
+
|
|
61
|
+
## organisationName
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
`organisationName`
|
|
66
|
+
|
|
67
|
+
* is optional
|
|
68
|
+
|
|
69
|
+
* Type: `string`
|
|
70
|
+
|
|
71
|
+
* can be null
|
|
72
|
+
|
|
73
|
+
* defined in: [Crown Development Application](applications-crowndev-application-defs-organisation-properties-organisationname.md "applications-crowndev-application.schema.json#/$defs/organisation/properties/organisationName")
|
|
74
|
+
|
|
75
|
+
### organisationName Type
|
|
76
|
+
|
|
77
|
+
`string`
|
|
78
|
+
|
|
79
|
+
## organisationAddress
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
`organisationAddress`
|
|
84
|
+
|
|
85
|
+
* is optional
|
|
86
|
+
|
|
87
|
+
* Type: `object[]` ([Details](applications-crowndev-application-defs-address.md))
|
|
88
|
+
|
|
89
|
+
* can be null
|
|
90
|
+
|
|
91
|
+
* defined in: [Crown Development Application](applications-crowndev-application-defs-organisation-properties-organisationaddress.md "applications-crowndev-application.schema.json#/$defs/organisation/properties/organisationAddress")
|
|
92
|
+
|
|
93
|
+
### organisationAddress Type
|
|
94
|
+
|
|
95
|
+
`object[]` ([Details](applications-crowndev-application-defs-address.md))
|
|
96
|
+
|
|
97
|
+
## contacts
|
|
98
|
+
|
|
99
|
+
An Organisation may be linked to one or more Contacts
|
|
100
|
+
|
|
101
|
+
`contacts`
|
|
102
|
+
|
|
103
|
+
* is optional
|
|
104
|
+
|
|
105
|
+
* Type: `object[]` ([Details](applications-crowndev-application-defs-contact.md))
|
|
106
|
+
|
|
107
|
+
* can be null
|
|
108
|
+
|
|
109
|
+
* defined in: [Crown Development Application](applications-crowndev-application-defs-organisation-properties-contacts.md "applications-crowndev-application.schema.json#/$defs/organisation/properties/contacts")
|
|
110
|
+
|
|
111
|
+
### contacts Type
|
|
112
|
+
|
|
113
|
+
`object[]` ([Details](applications-crowndev-application-defs-contact.md))
|
|
114
|
+
|
|
115
|
+
## Additional Properties
|
|
116
|
+
|
|
117
|
+
Additional properties are allowed and do not have to follow a specific schema
|