@planning-inspectorate/data-model 2.51.1 → 2.53.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/.azure/ci.yml +6 -6
- package/.azure/release.yml +2 -2
- package/docs/README.md +6 -2
- package/docs/appeal-document.md +1 -0
- package/docs/appeal-has.md +17 -15
- package/docs/appeal-s78.md +63 -19
- package/docs/applications-notify-email.md +2 -2
- package/docs/applications-representation-defs-contact.md +93 -0
- package/docs/applications-representation-defs-representationdocument.md +152 -0
- package/docs/applications-representation-defs.md +3 -0
- package/docs/applications-representation.md +41 -41
- package/package.json +1 -1
- package/pins_data_model/models/model_appeal_document.py +1 -0
- package/pins_data_model/models/model_appeal_has.py +2 -0
- package/pins_data_model/models/model_appeal_s78.py +118 -4
- package/pins_data_model/models/model_applications_notify_email.py +1 -1
- package/pins_data_model/models/model_applications_representation.py +2 -2
- package/schemas/appeal-document.schema.json +1 -0
- package/schemas/appeal-has.schema.json +3 -1
- package/schemas/appeal-s78.schema.json +43 -1
- package/schemas/applications-notify-email.schema.json +1 -1
- package/schemas/applications-representation.schema.json +6 -6
- package/src/enums.cjs +5 -0
- package/src/enums.d.ts +5 -0
- package/src/enums.js +5 -0
- package/src/index.cjs +5 -0
- package/src/schemas.d.ts +30 -5
- package/tests/appeals/appeal-has.test.js +41 -0
- 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:
|
|
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:
|
|
46
|
+
nodeVersion: 24
|
|
47
47
|
script: npm run commitlint
|
|
48
48
|
- template: ../steps/node_script.yml
|
|
49
49
|
parameters:
|
|
50
|
-
nodeVersion:
|
|
50
|
+
nodeVersion: 24
|
|
51
51
|
script: npm run lint
|
|
52
52
|
- template: ../steps/node_script.yml
|
|
53
53
|
parameters:
|
|
54
|
-
nodeVersion:
|
|
54
|
+
nodeVersion: 24
|
|
55
55
|
script: npm run format-check
|
|
56
56
|
- template: ../steps/node_script.yml
|
|
57
57
|
parameters:
|
|
58
|
-
nodeVersion:
|
|
58
|
+
nodeVersion: 24
|
|
59
59
|
script: npm run gen
|
|
60
60
|
- template: ../steps/node_script.yml
|
|
61
61
|
parameters:
|
|
62
|
-
nodeVersion:
|
|
62
|
+
nodeVersion: 24
|
|
63
63
|
script: node --test
|
|
64
64
|
- script: |
|
|
65
65
|
set -e
|
package/.azure/release.yml
CHANGED
|
@@ -44,11 +44,11 @@ jobs:
|
|
|
44
44
|
- checkout: self
|
|
45
45
|
- template: steps/node_script.yml@templates
|
|
46
46
|
parameters:
|
|
47
|
-
nodeVersion:
|
|
47
|
+
nodeVersion: 24
|
|
48
48
|
script: npm ci
|
|
49
49
|
- template: steps/node_script.yml@templates
|
|
50
50
|
parameters:
|
|
51
|
-
nodeVersion:
|
|
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
|
@@ -80,13 +80,17 @@
|
|
|
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`
|
|
86
90
|
|
|
87
|
-
* [Untitled object in Casework Representation Schema](./applications-representation-
|
|
91
|
+
* [Untitled object in Casework Representation Schema](./applications-representation-defs-contact.md) – `applications-representation.schema.json#/$defs/contact`
|
|
88
92
|
|
|
89
|
-
* [Untitled object in Casework Representation Schema](./applications-representation-
|
|
93
|
+
* [Untitled object in Casework Representation Schema](./applications-representation-defs-representationdocument.md) – `applications-representation.schema.json#/$defs/representationDocument`
|
|
90
94
|
|
|
91
95
|
* [Untitled object in Crown Development Application](./applications-application-defs-organisation.md) – `applications-application.schema.json#/$defs/organisation`
|
|
92
96
|
|
package/docs/appeal-document.md
CHANGED
package/docs/appeal-has.md
CHANGED
|
@@ -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
|
|
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
|
|
package/docs/appeal-s78.md
CHANGED
|
@@ -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
|
|
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
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
| [email](#email) | `string` | Optional | can be null | [Email Notification Record Schema](applications-notify-email-properties-email.md "applications-notify-email.schema.json#/properties/email") |
|
|
19
19
|
| [contact](#contact) | `array` | Optional | can be null | [Email Notification Record Schema](applications-notify-email-properties-contact.md "applications-notify-email.schema.json#/properties/contact") |
|
|
20
20
|
| [lpaCode](#lpacode) | `string` | Required | cannot be null | [Email Notification Record Schema](applications-notify-email-properties-lpacode.md "applications-notify-email.schema.json#/properties/lpaCode") |
|
|
21
|
-
| [emailStatus](#emailstatus) | `string` |
|
|
21
|
+
| [emailStatus](#emailstatus) | `string` | Required | cannot be null | [Email Notification Record Schema](applications-notify-email-properties-emailstatus.md "applications-notify-email.schema.json#/properties/emailStatus") |
|
|
22
22
|
| [templateId](#templateid) | `string` | Optional | can be null | [Email Notification Record Schema](applications-notify-email-properties-templateid.md "applications-notify-email.schema.json#/properties/templateId") |
|
|
23
23
|
| [templateVersion](#templateversion) | `integer` | Optional | can be null | [Email Notification Record Schema](applications-notify-email-properties-templateversion.md "applications-notify-email.schema.json#/properties/templateVersion") |
|
|
24
24
|
| [body](#body) | `string` | Optional | can be null | [Email Notification Record Schema](applications-notify-email-properties-body.md "applications-notify-email.schema.json#/properties/body") |
|
|
@@ -259,7 +259,7 @@ Outcome of the email (status)
|
|
|
259
259
|
|
|
260
260
|
`emailStatus`
|
|
261
261
|
|
|
262
|
-
* is
|
|
262
|
+
* is required
|
|
263
263
|
|
|
264
264
|
* Type: `string`
|
|
265
265
|
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
## contact Type
|
|
2
|
+
|
|
3
|
+
`object` ([Details](applications-representation-defs-contact.md))
|
|
4
|
+
|
|
5
|
+
# contact Properties
|
|
6
|
+
|
|
7
|
+
| Property | Type | Required | Nullable | Defined by |
|
|
8
|
+
| :---------------------------------------------------- | :------- | :------- | :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
9
|
+
| [contactId](#contactid) | `string` | Required | cannot be null | [Casework Representation Schema](applications-representation-defs-contact-properties-contactid.md "applications-representation.schema.json#/$defs/contact/properties/contactId") |
|
|
10
|
+
| [contactPreference](#contactpreference) | `string` | Optional | can be null | [Casework Representation Schema](applications-representation-defs-contact-properties-contactpreference.md "applications-representation.schema.json#/$defs/contact/properties/contactPreference") |
|
|
11
|
+
| [writtenRepOrgName](#writtenreporgname) | `string` | Optional | can be null | [Casework Representation Schema](applications-representation-defs-contact-properties-writtenreporgname.md "applications-representation.schema.json#/$defs/contact/properties/writtenRepOrgName") |
|
|
12
|
+
| [writtenRepJobTitleorRole](#writtenrepjobtitleorrole) | `string` | Optional | can be null | [Casework Representation Schema](applications-representation-defs-contact-properties-writtenrepjobtitleorrole.md "applications-representation.schema.json#/$defs/contact/properties/writtenRepJobTitleorRole") |
|
|
13
|
+
|
|
14
|
+
## contactId
|
|
15
|
+
|
|
16
|
+
Source PK for Contact
|
|
17
|
+
|
|
18
|
+
`contactId`
|
|
19
|
+
|
|
20
|
+
* is required
|
|
21
|
+
|
|
22
|
+
* Type: `string`
|
|
23
|
+
|
|
24
|
+
* cannot be null
|
|
25
|
+
|
|
26
|
+
* defined in: [Casework Representation Schema](applications-representation-defs-contact-properties-contactid.md "applications-representation.schema.json#/$defs/contact/properties/contactId")
|
|
27
|
+
|
|
28
|
+
### contactId Type
|
|
29
|
+
|
|
30
|
+
`string`
|
|
31
|
+
|
|
32
|
+
## contactPreference
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
`contactPreference`
|
|
37
|
+
|
|
38
|
+
* is optional
|
|
39
|
+
|
|
40
|
+
* Type: `string`
|
|
41
|
+
|
|
42
|
+
* can be null
|
|
43
|
+
|
|
44
|
+
* defined in: [Casework Representation Schema](applications-representation-defs-contact-properties-contactpreference.md "applications-representation.schema.json#/$defs/contact/properties/contactPreference")
|
|
45
|
+
|
|
46
|
+
### contactPreference Type
|
|
47
|
+
|
|
48
|
+
`string`
|
|
49
|
+
|
|
50
|
+
### contactPreference Constraints
|
|
51
|
+
|
|
52
|
+
**enum**: the value of this property must be equal to one of the following values:
|
|
53
|
+
|
|
54
|
+
| Value | Explanation |
|
|
55
|
+
| :-------- | :---------- |
|
|
56
|
+
| `"email"` | |
|
|
57
|
+
| `"post"` | |
|
|
58
|
+
|
|
59
|
+
## writtenRepOrgName
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
`writtenRepOrgName`
|
|
64
|
+
|
|
65
|
+
* is optional
|
|
66
|
+
|
|
67
|
+
* Type: `string`
|
|
68
|
+
|
|
69
|
+
* can be null
|
|
70
|
+
|
|
71
|
+
* defined in: [Casework Representation Schema](applications-representation-defs-contact-properties-writtenreporgname.md "applications-representation.schema.json#/$defs/contact/properties/writtenRepOrgName")
|
|
72
|
+
|
|
73
|
+
### writtenRepOrgName Type
|
|
74
|
+
|
|
75
|
+
`string`
|
|
76
|
+
|
|
77
|
+
## writtenRepJobTitleorRole
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
`writtenRepJobTitleorRole`
|
|
82
|
+
|
|
83
|
+
* is optional
|
|
84
|
+
|
|
85
|
+
* Type: `string`
|
|
86
|
+
|
|
87
|
+
* can be null
|
|
88
|
+
|
|
89
|
+
* defined in: [Casework Representation Schema](applications-representation-defs-contact-properties-writtenrepjobtitleorrole.md "applications-representation.schema.json#/$defs/contact/properties/writtenRepJobTitleorRole")
|
|
90
|
+
|
|
91
|
+
### writtenRepJobTitleorRole Type
|
|
92
|
+
|
|
93
|
+
`string`
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
## representationDocument Type
|
|
2
|
+
|
|
3
|
+
`object` ([Details](applications-representation-defs-representationdocument.md))
|
|
4
|
+
|
|
5
|
+
# representationDocument Properties
|
|
6
|
+
|
|
7
|
+
| Property | Type | Required | Nullable | Defined by |
|
|
8
|
+
| :------------------------------------ | :------- | :------- | :------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
9
|
+
| [id](#id) | `string` | Required | cannot be null | [Casework Representation Schema](applications-representation-defs-representationdocument-properties-id.md "applications-representation.schema.json#/$defs/representationDocument/properties/id") |
|
|
10
|
+
| [representationId](#representationid) | `string` | Required | cannot be null | [Casework Representation Schema](applications-representation-defs-representationdocument-properties-representationid.md "applications-representation.schema.json#/$defs/representationDocument/properties/representationId") |
|
|
11
|
+
| [itemId](#itemid) | `string` | Required | cannot be null | [Casework Representation Schema](applications-representation-defs-representationdocument-properties-itemid.md "applications-representation.schema.json#/$defs/representationDocument/properties/itemId") |
|
|
12
|
+
| [fileName](#filename) | `string` | Required | cannot be null | [Casework Representation Schema](applications-representation-defs-representationdocument-properties-filename.md "applications-representation.schema.json#/$defs/representationDocument/properties/fileName") |
|
|
13
|
+
| [redactedItemId](#redacteditemid) | `string` | Optional | can be null | [Casework Representation Schema](applications-representation-defs-representationdocument-properties-redacteditemid.md "applications-representation.schema.json#/$defs/representationDocument/properties/redactedItemId") |
|
|
14
|
+
| [redactedFileName](#redactedfilename) | `string` | Optional | can be null | [Casework Representation Schema](applications-representation-defs-representationdocument-properties-redactedfilename.md "applications-representation.schema.json#/$defs/representationDocument/properties/redactedFileName") |
|
|
15
|
+
| [status](#status) | `string` | Required | cannot be null | [Casework Representation Schema](applications-representation-defs-representationdocument-properties-status.md "applications-representation.schema.json#/$defs/representationDocument/properties/status") |
|
|
16
|
+
|
|
17
|
+
## id
|
|
18
|
+
|
|
19
|
+
Source Key for Representation Document
|
|
20
|
+
|
|
21
|
+
`id`
|
|
22
|
+
|
|
23
|
+
* is required
|
|
24
|
+
|
|
25
|
+
* Type: `string`
|
|
26
|
+
|
|
27
|
+
* cannot be null
|
|
28
|
+
|
|
29
|
+
* defined in: [Casework Representation Schema](applications-representation-defs-representationdocument-properties-id.md "applications-representation.schema.json#/$defs/representationDocument/properties/id")
|
|
30
|
+
|
|
31
|
+
### id Type
|
|
32
|
+
|
|
33
|
+
`string`
|
|
34
|
+
|
|
35
|
+
## representationId
|
|
36
|
+
|
|
37
|
+
The representation this relates to
|
|
38
|
+
|
|
39
|
+
`representationId`
|
|
40
|
+
|
|
41
|
+
* is required
|
|
42
|
+
|
|
43
|
+
* Type: `string`
|
|
44
|
+
|
|
45
|
+
* cannot be null
|
|
46
|
+
|
|
47
|
+
* defined in: [Casework Representation Schema](applications-representation-defs-representationdocument-properties-representationid.md "applications-representation.schema.json#/$defs/representationDocument/properties/representationId")
|
|
48
|
+
|
|
49
|
+
### representationId Type
|
|
50
|
+
|
|
51
|
+
`string`
|
|
52
|
+
|
|
53
|
+
## itemId
|
|
54
|
+
|
|
55
|
+
The id of the item in SharePoint
|
|
56
|
+
|
|
57
|
+
`itemId`
|
|
58
|
+
|
|
59
|
+
* is required
|
|
60
|
+
|
|
61
|
+
* Type: `string`
|
|
62
|
+
|
|
63
|
+
* cannot be null
|
|
64
|
+
|
|
65
|
+
* defined in: [Casework Representation Schema](applications-representation-defs-representationdocument-properties-itemid.md "applications-representation.schema.json#/$defs/representationDocument/properties/itemId")
|
|
66
|
+
|
|
67
|
+
### itemId Type
|
|
68
|
+
|
|
69
|
+
`string`
|
|
70
|
+
|
|
71
|
+
## fileName
|
|
72
|
+
|
|
73
|
+
The name of the file
|
|
74
|
+
|
|
75
|
+
`fileName`
|
|
76
|
+
|
|
77
|
+
* is required
|
|
78
|
+
|
|
79
|
+
* Type: `string`
|
|
80
|
+
|
|
81
|
+
* cannot be null
|
|
82
|
+
|
|
83
|
+
* defined in: [Casework Representation Schema](applications-representation-defs-representationdocument-properties-filename.md "applications-representation.schema.json#/$defs/representationDocument/properties/fileName")
|
|
84
|
+
|
|
85
|
+
### fileName Type
|
|
86
|
+
|
|
87
|
+
`string`
|
|
88
|
+
|
|
89
|
+
## redactedItemId
|
|
90
|
+
|
|
91
|
+
The id of the redacted version of the item in sharepoint
|
|
92
|
+
|
|
93
|
+
`redactedItemId`
|
|
94
|
+
|
|
95
|
+
* is optional
|
|
96
|
+
|
|
97
|
+
* Type: `string`
|
|
98
|
+
|
|
99
|
+
* can be null
|
|
100
|
+
|
|
101
|
+
* defined in: [Casework Representation Schema](applications-representation-defs-representationdocument-properties-redacteditemid.md "applications-representation.schema.json#/$defs/representationDocument/properties/redactedItemId")
|
|
102
|
+
|
|
103
|
+
### redactedItemId Type
|
|
104
|
+
|
|
105
|
+
`string`
|
|
106
|
+
|
|
107
|
+
## redactedFileName
|
|
108
|
+
|
|
109
|
+
the name of the redacted file
|
|
110
|
+
|
|
111
|
+
`redactedFileName`
|
|
112
|
+
|
|
113
|
+
* is optional
|
|
114
|
+
|
|
115
|
+
* Type: `string`
|
|
116
|
+
|
|
117
|
+
* can be null
|
|
118
|
+
|
|
119
|
+
* defined in: [Casework Representation Schema](applications-representation-defs-representationdocument-properties-redactedfilename.md "applications-representation.schema.json#/$defs/representationDocument/properties/redactedFileName")
|
|
120
|
+
|
|
121
|
+
### redactedFileName Type
|
|
122
|
+
|
|
123
|
+
`string`
|
|
124
|
+
|
|
125
|
+
## status
|
|
126
|
+
|
|
127
|
+
The status of the document
|
|
128
|
+
|
|
129
|
+
`status`
|
|
130
|
+
|
|
131
|
+
* is required
|
|
132
|
+
|
|
133
|
+
* Type: `string`
|
|
134
|
+
|
|
135
|
+
* cannot be null
|
|
136
|
+
|
|
137
|
+
* defined in: [Casework Representation Schema](applications-representation-defs-representationdocument-properties-status.md "applications-representation.schema.json#/$defs/representationDocument/properties/status")
|
|
138
|
+
|
|
139
|
+
### status Type
|
|
140
|
+
|
|
141
|
+
`string`
|
|
142
|
+
|
|
143
|
+
### status Constraints
|
|
144
|
+
|
|
145
|
+
**enum**: the value of this property must be equal to one of the following values:
|
|
146
|
+
|
|
147
|
+
| Value | Explanation |
|
|
148
|
+
| :------------------ | :---------- |
|
|
149
|
+
| `"Awaiting review"` | |
|
|
150
|
+
| `"Accepted"` | |
|
|
151
|
+
| `"Rejected"` | |
|
|
152
|
+
| `"Withdrawn"` | |
|