@planning-inspectorate/data-model 2.52.0 → 2.54.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.
Files changed (35) hide show
  1. package/.azure/ci.yml +6 -6
  2. package/.azure/release.yml +2 -2
  3. package/docs/README.md +9 -5
  4. package/docs/appeal-document.md +1 -0
  5. package/docs/appeal-has.md +17 -15
  6. package/docs/appeal-s78.md +63 -19
  7. package/docs/applications-crowndev-application-defs-address.md +108 -0
  8. package/docs/applications-crowndev-application-defs-contact.md +99 -0
  9. package/docs/applications-crowndev-application-defs-organisation.md +117 -0
  10. package/docs/applications-crowndev-application-defs.md +3 -0
  11. package/docs/applications-crowndev-application.md +2257 -0
  12. package/docs/applications-notify-email-defs-contact.md +1 -0
  13. package/docs/applications-notify-email.md +1 -0
  14. package/docs/applications-representation-defs-contact.md +1 -0
  15. package/docs/applications-representation.md +5 -0
  16. package/package.json +1 -1
  17. package/pins_data_model/models/model_appeal_document.py +1 -0
  18. package/pins_data_model/models/model_appeal_has.py +2 -0
  19. package/pins_data_model/models/model_appeal_s78.py +118 -4
  20. package/pins_data_model/models/model_applications_crowndev_application.py +525 -0
  21. package/pins_data_model/models/model_applications_notify_email.py +1 -0
  22. package/pins_data_model/models/model_applications_representation.py +5 -0
  23. package/schemas/appeal-document.schema.json +1 -0
  24. package/schemas/appeal-has.schema.json +3 -1
  25. package/schemas/appeal-s78.schema.json +43 -1
  26. package/schemas/{applications-application.schema.json → applications-crowndev-application.schema.json} +11 -9
  27. package/schemas/applications-notify-email.schema.json +2 -2
  28. package/schemas/applications-representation.schema.json +6 -5
  29. package/src/enums.cjs +5 -0
  30. package/src/enums.d.ts +5 -0
  31. package/src/enums.js +5 -0
  32. package/src/index.cjs +5 -0
  33. package/src/schemas.d.ts +66 -47
  34. package/tests/appeals/appeal-has.test.js +41 -0
  35. package/tests/appeals/appeal-s78.test.js +41 -0
package/.azure/ci.yml CHANGED
@@ -35,7 +35,7 @@ extends:
35
35
  displayName: Cache NPM
36
36
  - template: ../steps/node_script.yml
37
37
  parameters:
38
- nodeVersion: 22
38
+ nodeVersion: 24
39
39
  script: npm ci
40
40
  environmentVariables:
41
41
  npm_config_cache: $(pipeline.workspace)/.npm
@@ -43,23 +43,23 @@ extends:
43
43
  parameters:
44
44
  # only run commitlint on branches, not main
45
45
  condition: ne(variables['Build.SourceBranchName'], 'main')
46
- nodeVersion: 22
46
+ nodeVersion: 24
47
47
  script: npm run commitlint
48
48
  - template: ../steps/node_script.yml
49
49
  parameters:
50
- nodeVersion: 22
50
+ nodeVersion: 24
51
51
  script: npm run lint
52
52
  - template: ../steps/node_script.yml
53
53
  parameters:
54
- nodeVersion: 22
54
+ nodeVersion: 24
55
55
  script: npm run format-check
56
56
  - template: ../steps/node_script.yml
57
57
  parameters:
58
- nodeVersion: 22
58
+ nodeVersion: 24
59
59
  script: npm run gen
60
60
  - template: ../steps/node_script.yml
61
61
  parameters:
62
- nodeVersion: 22
62
+ nodeVersion: 24
63
63
  script: node --test
64
64
  - script: |
65
65
  set -e
@@ -44,11 +44,11 @@ jobs:
44
44
  - checkout: self
45
45
  - template: steps/node_script.yml@templates
46
46
  parameters:
47
- nodeVersion: 22
47
+ nodeVersion: 24
48
48
  script: npm ci
49
49
  - template: steps/node_script.yml@templates
50
50
  parameters:
51
- nodeVersion: 22
51
+ nodeVersion: 24
52
52
  script: npx semantic-release --branches main --tag-format '${version}' ${{ variables.dryRunFlag }}
53
53
  environmentVariables:
54
54
  GH_TOKEN: $(GITHUB_TOKEN)
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
 
@@ -80,6 +80,10 @@
80
80
 
81
81
  * [Untitled object in Appeal S78 Case](./appeal-s78-properties-applicationelbappealgroundsdetails-items.md) – `appeal-s78.schema.json#/properties/applicationElbAppealGroundsDetails/items`
82
82
 
83
+ * [Untitled object in Appeal S78 Case](./appeal-s78-properties-enforcementcasegroundsofappeal-items.md) – `appeal-s78.schema.json#/properties/enforcementCaseGroundsOfAppeal/items`
84
+
85
+ * [Untitled object in Appeal S78 Case](./appeal-s78-properties-elbcasegroundsofappeal-items.md) – `appeal-s78.schema.json#/properties/elbCaseGroundsOfAppeal/items`
86
+
83
87
  * [Untitled object in Appeal S78 Case](./appeal-s78-properties-significantchangesaffectingapplicationappellant-items.md) – `appeal-s78.schema.json#/properties/significantChangesAffectingApplicationAppellant/items`
84
88
 
85
89
  * [Untitled object in Appeal S78 Case](./appeal-s78-properties-significantchangesaffectingapplicationlpa-items.md) – `appeal-s78.schema.json#/properties/significantChangesAffectingApplicationLpa/items`
@@ -88,11 +92,11 @@
88
92
 
89
93
  * [Untitled object in Casework Representation Schema](./applications-representation-defs-representationdocument.md) – `applications-representation.schema.json#/$defs/representationDocument`
90
94
 
91
- * [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`
92
96
 
93
- * [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`
94
98
 
95
- * [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`
96
100
 
97
101
  * [Untitled object in DaRT API response](./dart-response-properties-neighbouringsiteaddresses-items.md) – `dart-response.schema.json#/properties/neighbouringSiteAddresses/items`
98
102
 
@@ -114,7 +118,7 @@
114
118
 
115
119
  * [Untitled array in Appeal Representation](./appeal-representation-properties-documentids.md "An array of documentIds") – `appeal-representation.schema.json#/properties/documentIds`
116
120
 
117
- * [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`
118
122
 
119
123
  * [Untitled array in Examination Timetable](./nsip-exam-timetable-properties-events.md) – `nsip-exam-timetable.schema.json#/properties/events`
120
124
 
@@ -636,6 +636,7 @@ The type of document, used for exchange, migrations and consumption from the app
636
636
  | `"hearingProcess"` | |
637
637
  | `"inquiryCore"` | |
638
638
  | `"inquiryPostEvent"` | |
639
+ | `"noticeWithdrawal"` | |
639
640
  | `null` | |
640
641
 
641
642
  ## sourceSystem
@@ -221,21 +221,23 @@ The processing status for the appeal
221
221
 
222
222
  **enum**: the value of this property must be equal to one of the following values:
223
223
 
224
- | Value | Explanation |
225
- | :---------------------- | :---------- |
226
- | `"assign_case_officer"` | |
227
- | `"validation"` | |
228
- | `"ready_to_start"` | |
229
- | `"lpa_questionnaire"` | |
230
- | `"issue_determination"` | |
231
- | `"complete"` | |
232
- | `"invalid"` | |
233
- | `"closed"` | |
234
- | `"withdrawn"` | |
235
- | `"awaiting_transfer"` | |
236
- | `"transferred"` | |
237
- | `"event"` | |
238
- | `"awaiting_event"` | |
224
+ | Value | Explanation |
225
+ | :------------------------- | :---------- |
226
+ | `"assign_case_officer"` | |
227
+ | `"validation"` | |
228
+ | `"ready_to_start"` | |
229
+ | `"lpa_questionnaire"` | |
230
+ | `"issue_determination"` | |
231
+ | `"complete"` | |
232
+ | `"invalid"` | |
233
+ | `"closed"` | |
234
+ | `"withdrawn"` | |
235
+ | `"awaiting_transfer"` | |
236
+ | `"transferred"` | |
237
+ | `"event"` | |
238
+ | `"awaiting_event"` | |
239
+ | `"notice_withdrawn"` | |
240
+ | `"closed_opened_in_error"` | |
239
241
 
240
242
  ## caseType
241
243
 
@@ -167,6 +167,8 @@ any of
167
167
  | [occupancyConditionsMet](#occupancyconditionsmet) | `boolean` | Optional | can be null | [Appeal S78 Case](appeal-s78-properties-occupancyconditionsmet.md "appeal-s78.schema.json#/properties/occupancyConditionsMet") |
168
168
  | [enforcementAppealGroundsDetails](#enforcementappealgroundsdetails) | `array` | Optional | can be null | [Appeal S78 Case](appeal-s78-properties-enforcementappealgroundsdetails.md "appeal-s78.schema.json#/properties/enforcementAppealGroundsDetails") |
169
169
  | [applicationElbAppealGroundsDetails](#applicationelbappealgroundsdetails) | `array` | Optional | can be null | [Appeal S78 Case](appeal-s78-properties-applicationelbappealgroundsdetails.md "appeal-s78.schema.json#/properties/applicationElbAppealGroundsDetails") |
170
+ | [enforcementCaseGroundsOfAppeal](#enforcementcasegroundsofappeal) | `array` | Optional | can be null | [Appeal S78 Case](appeal-s78-properties-enforcementcasegroundsofappeal.md "appeal-s78.schema.json#/properties/enforcementCaseGroundsOfAppeal") |
171
+ | [elbCaseGroundsOfAppeal](#elbcasegroundsofappeal) | `array` | Optional | can be null | [Appeal S78 Case](appeal-s78-properties-elbcasegroundsofappeal.md "appeal-s78.schema.json#/properties/elbCaseGroundsOfAppeal") |
170
172
  | [applicationMadeAndFeePaid](#applicationmadeandfeepaid) | `boolean` | Optional | can be null | [Appeal S78 Case](appeal-s78-properties-applicationmadeandfeepaid.md "appeal-s78.schema.json#/properties/applicationMadeAndFeePaid") |
171
173
  | [noticeRelatesToBuildingEngineeringMiningOther](#noticerelatestobuildingengineeringminingother) | `boolean` | Optional | can be null | [Appeal S78 Case](appeal-s78-properties-noticerelatestobuildingengineeringminingother.md "appeal-s78.schema.json#/properties/noticeRelatesToBuildingEngineeringMiningOther") |
172
174
  | [changeOfUseRefuseOrWaste](#changeofuserefuseorwaste) | `boolean` | Optional | can be null | [Appeal S78 Case](appeal-s78-properties-changeofuserefuseorwaste.md "appeal-s78.schema.json#/properties/changeOfUseRefuseOrWaste") |
@@ -316,25 +318,27 @@ The processing status for the appeal
316
318
 
317
319
  **enum**: the value of this property must be equal to one of the following values:
318
320
 
319
- | Value | Explanation |
320
- | :---------------------- | :---------- |
321
- | `"assign_case_officer"` | |
322
- | `"validation"` | |
323
- | `"ready_to_start"` | |
324
- | `"lpa_questionnaire"` | |
325
- | `"issue_determination"` | |
326
- | `"statements"` | |
327
- | `"evidence"` | |
328
- | `"witnesses"` | |
329
- | `"final_comments"` | |
330
- | `"complete"` | |
331
- | `"invalid"` | |
332
- | `"closed"` | |
333
- | `"withdrawn"` | |
334
- | `"awaiting_transfer"` | |
335
- | `"transferred"` | |
336
- | `"event"` | |
337
- | `"awaiting_event"` | |
321
+ | Value | Explanation |
322
+ | :------------------------- | :---------- |
323
+ | `"assign_case_officer"` | |
324
+ | `"validation"` | |
325
+ | `"ready_to_start"` | |
326
+ | `"lpa_questionnaire"` | |
327
+ | `"issue_determination"` | |
328
+ | `"statements"` | |
329
+ | `"evidence"` | |
330
+ | `"witnesses"` | |
331
+ | `"final_comments"` | |
332
+ | `"complete"` | |
333
+ | `"invalid"` | |
334
+ | `"closed"` | |
335
+ | `"withdrawn"` | |
336
+ | `"awaiting_transfer"` | |
337
+ | `"transferred"` | |
338
+ | `"event"` | |
339
+ | `"awaiting_event"` | |
340
+ | `"notice_withdrawn"` | |
341
+ | `"closed_opened_in_error"` | |
338
342
 
339
343
  ## caseType
340
344
 
@@ -4070,6 +4074,46 @@ A list of grounds for the appeal, supporting facts & start dates. Enforcement ca
4070
4074
 
4071
4075
  `object[]` ([Details](appeal-s78-properties-applicationelbappealgroundsdetails-items.md))
4072
4076
 
4077
+ ## enforcementCaseGroundsOfAppeal
4078
+
4079
+ Case Officer list of grounds for the appeal & start dates. Enforcement cases (C) can have grounds (a) to (g)
4080
+
4081
+ > Enforcement Listed Building cases (F) have a separate list of grounds (a) to (k)
4082
+
4083
+ `enforcementCaseGroundsOfAppeal`
4084
+
4085
+ * is optional
4086
+
4087
+ * Type: `object[]` ([Details](appeal-s78-properties-enforcementcasegroundsofappeal-items.md))
4088
+
4089
+ * can be null
4090
+
4091
+ * defined in: [Appeal S78 Case](appeal-s78-properties-enforcementcasegroundsofappeal.md "appeal-s78.schema.json#/properties/enforcementCaseGroundsOfAppeal")
4092
+
4093
+ ### enforcementCaseGroundsOfAppeal Type
4094
+
4095
+ `object[]` ([Details](appeal-s78-properties-enforcementcasegroundsofappeal-items.md))
4096
+
4097
+ ## elbCaseGroundsOfAppeal
4098
+
4099
+ Case Officer list of grounds for the appeal & start dates. Enforcement cases (C) can have grounds (a) to (g)
4100
+
4101
+ > Enforcement Listed Building cases (F) have a separate list of grounds (a) to (k)
4102
+
4103
+ `elbCaseGroundsOfAppeal`
4104
+
4105
+ * is optional
4106
+
4107
+ * Type: `object[]` ([Details](appeal-s78-properties-elbcasegroundsofappeal-items.md))
4108
+
4109
+ * can be null
4110
+
4111
+ * defined in: [Appeal S78 Case](appeal-s78-properties-elbcasegroundsofappeal.md "appeal-s78.schema.json#/properties/elbCaseGroundsOfAppeal")
4112
+
4113
+ ### elbCaseGroundsOfAppeal Type
4114
+
4115
+ `object[]` ([Details](appeal-s78-properties-elbcasegroundsofappeal-items.md))
4116
+
4073
4117
  ## applicationMadeAndFeePaid
4074
4118
 
4075
4119
  Was an application made and paid for
@@ -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
@@ -0,0 +1,3 @@
1
+ ## $defs Type
2
+
3
+ unknown