@planning-inspectorate/data-model 1.11.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 +60 -0
- package/.azure/release.yml +57 -0
- package/.github/dependabot.yml +11 -0
- package/.husky/install.mjs +7 -0
- package/.husky/pre-commit +1 -0
- package/.prettierignore +11 -0
- package/.prettierrc +19 -0
- package/LICENSE +21 -0
- package/README.md +237 -0
- package/commitlint.config.js +8 -0
- package/docs/README.md +85 -0
- package/docs/appeal-document.md +776 -0
- package/docs/appeal-event-estimate.md +108 -0
- package/docs/appeal-event.md +404 -0
- package/docs/appeal-has.md +1960 -0
- package/docs/appeal-representation.md +375 -0
- package/docs/appeal-s78.md +3607 -0
- package/docs/appeal.md +1879 -0
- package/docs/case-schedule.md +8 -0
- package/docs/dart-response.md +1413 -0
- package/docs/employee.md +70 -0
- package/docs/entraid.md +108 -0
- package/docs/folder.md +147 -0
- package/docs/gettimesheets-response.md +188 -0
- package/docs/interested-party.md +284 -0
- package/docs/listed-building.md +113 -0
- package/docs/listed-buildings.md +113 -0
- package/docs/nsip-document.md +966 -0
- package/docs/nsip-exam-timetable-defs-event.md +223 -0
- package/docs/nsip-exam-timetable-defs-line-item.md +51 -0
- package/docs/nsip-exam-timetable-defs.md +3 -0
- package/docs/nsip-exam-timetable-submission.md +113 -0
- package/docs/nsip-exam-timetable.md +352 -0
- package/docs/nsip-project-update.md +163 -0
- package/docs/nsip-project.md +2098 -0
- package/docs/nsip-representation-defs-attachment.md +133 -0
- package/docs/nsip-representation-defs.md +3 -0
- package/docs/nsip-representation.md +448 -0
- package/docs/nsip-subscription.md +193 -0
- package/docs/pins-inspector.md +184 -0
- package/docs/pins-lpa.md +260 -0
- package/docs/s51-advice.md +460 -0
- package/docs/service-user.md +575 -0
- package/eslint.config.js +21 -0
- package/jsconfig.json +12 -0
- package/package.json +55 -0
- package/pins_data_model/__init__.py +0 -0
- package/pins_data_model/gen_models.py +51 -0
- package/pins_data_model/load_schemas.py +51 -0
- package/pins_data_model/models/__init__.py +0 -0
- package/pins_data_model/models/model_appeal_document.py +294 -0
- package/pins_data_model/models/model_appeal_event.py +117 -0
- package/pins_data_model/models/model_appeal_event_estimate.py +37 -0
- package/pins_data_model/models/model_appeal_has.py +585 -0
- package/pins_data_model/models/model_appeal_representation.py +132 -0
- package/pins_data_model/models/model_appeal_s78.py +864 -0
- package/pins_data_model/models/model_case_schedule.py +11 -0
- package/pins_data_model/models/model_dart_response.py +292 -0
- package/pins_data_model/models/model_entraid.py +37 -0
- package/pins_data_model/models/model_folder.py +56 -0
- package/pins_data_model/models/model_gettimesheets_response.py +45 -0
- package/pins_data_model/models/model_listed_building.py +33 -0
- package/pins_data_model/models/model_listed_buildings.py +33 -0
- package/pins_data_model/models/model_nsip_document.py +199 -0
- package/pins_data_model/models/model_nsip_exam_timetable.py +90 -0
- package/pins_data_model/models/model_nsip_project.py +488 -0
- package/pins_data_model/models/model_nsip_project_update.py +60 -0
- package/pins_data_model/models/model_nsip_representation.py +83 -0
- package/pins_data_model/models/model_nsip_subscription.py +60 -0
- package/pins_data_model/models/model_pins_inspector.py +53 -0
- package/pins_data_model/models/model_pins_lpa.py +69 -0
- package/pins_data_model/models/model_s51_advice.py +109 -0
- package/pins_data_model/models/model_service_user.py +121 -0
- package/requirements.txt +2 -0
- package/schemas/__init__.py +0 -0
- package/schemas/appeal-document.schema.json +250 -0
- package/schemas/appeal-event-estimate.schema.json +31 -0
- package/schemas/appeal-event.schema.json +123 -0
- package/schemas/appeal-has.schema.json +576 -0
- package/schemas/appeal-representation.schema.json +131 -0
- package/schemas/appeal-s78.schema.json +1060 -0
- package/schemas/commands/__init__.py +0 -0
- package/schemas/commands/appeal-common-submission.schema.json +202 -0
- package/schemas/commands/appeal-has-submission.schema.json +82 -0
- package/schemas/commands/appeal-representation-submission.schema.json +192 -0
- package/schemas/commands/appeal-s78-submission.schema.json +100 -0
- package/schemas/commands/appellant-submission.schema.json +164 -0
- package/schemas/commands/interested-party.schema.json +80 -0
- package/schemas/commands/lpa-questionnaire-common.schema.json +110 -0
- package/schemas/commands/lpa-questionnaire-has.schema.json +69 -0
- package/schemas/commands/lpa-questionnaire-s78.schema.json +218 -0
- package/schemas/commands/lpa-questionnaire.schema.json +125 -0
- package/schemas/commands/new-deadline-submission.schema.json +59 -0
- package/schemas/commands/nsip-exam-timetable-submission.schema.json +27 -0
- package/schemas/commands/register-nsip-subscription.schema.json +32 -0
- package/schemas/commands/register-representation.schema.json +51 -0
- package/schemas/dart-response.schema.json +350 -0
- package/schemas/entraid.schema.json +31 -0
- package/schemas/folder.schema.json +49 -0
- package/schemas/gettimesheets-response.schema.json +46 -0
- package/schemas/listed-building.schema.json +31 -0
- package/schemas/listed-buildings.schema.json +31 -0
- package/schemas/nsip-document.schema.json +235 -0
- package/schemas/nsip-exam-timetable.schema.json +101 -0
- package/schemas/nsip-project-update.schema.json +49 -0
- package/schemas/nsip-project.schema.json +539 -0
- package/schemas/nsip-representation.schema.json +110 -0
- package/schemas/nsip-subscription.schema.json +52 -0
- package/schemas/pins-inspector.schema.json +47 -0
- package/schemas/pins-lpa.schema.json +63 -0
- package/schemas/s51-advice.schema.json +113 -0
- package/schemas/service-user.schema.json +152 -0
- package/setup.py +15 -0
- package/src/enums.cjs +632 -0
- package/src/enums.d.ts +573 -0
- package/src/enums.js +573 -0
- package/src/gen-docs.js +34 -0
- package/src/gen-enums.js +119 -0
- package/src/gen-types.js +70 -0
- package/src/index.cjs +746 -0
- package/src/index.d.ts +18 -0
- package/src/index.js +34 -0
- package/src/lib/load.js +78 -0
- package/src/schemas.d.ts +4570 -0
- package/tests/appeals/appeal-event.test.js +62 -0
- package/tests/appeals/commands/appeal-representation-submission.test.js +107 -0
- package/tests/appeals/commands/has-questionnaire.test.js +92 -0
- package/tests/appeals/commands/has-submission.test.js +113 -0
- package/tests/appeals/commands/s78-questionnaire.test.js +96 -0
- package/tests/appeals/commands/s78-submission.test.js +119 -0
- package/tests/schemas.test.js +97 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
## attachment Type
|
|
2
|
+
|
|
3
|
+
`object` ([Details](nsip-representation-defs-attachment.md))
|
|
4
|
+
|
|
5
|
+
# attachment Properties
|
|
6
|
+
|
|
7
|
+
| Property | Type | Required | Nullable | Defined by |
|
|
8
|
+
| :-------------------------- | :------- | :------- | :------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
9
|
+
| [documentId](#documentid) | `string` | Required | cannot be null | [Representation](nsip-representation-defs-attachment-properties-documentid.md "nsip-representation.schema.json#/$defs/attachment/properties/documentId") |
|
|
10
|
+
| [filename](#filename) | `string` | Required | cannot be null | [Representation](nsip-representation-defs-attachment-properties-filename.md "nsip-representation.schema.json#/$defs/attachment/properties/filename") |
|
|
11
|
+
| [size](#size) | `number` | Required | cannot be null | [Representation](nsip-representation-defs-attachment-properties-size.md "nsip-representation.schema.json#/$defs/attachment/properties/size") |
|
|
12
|
+
| [mime](#mime) | `string` | Optional | cannot be null | [Representation](nsip-representation-defs-attachment-properties-mime.md "nsip-representation.schema.json#/$defs/attachment/properties/mime") |
|
|
13
|
+
| [documentURI](#documenturi) | `string` | Required | cannot be null | [Representation](nsip-representation-defs-attachment-properties-documenturi.md "nsip-representation.schema.json#/$defs/attachment/properties/documentURI") |
|
|
14
|
+
|
|
15
|
+
## documentId
|
|
16
|
+
|
|
17
|
+
The unique identifier for the file
|
|
18
|
+
|
|
19
|
+
`documentId`
|
|
20
|
+
|
|
21
|
+
* is required
|
|
22
|
+
|
|
23
|
+
* Type: `string`
|
|
24
|
+
|
|
25
|
+
* cannot be null
|
|
26
|
+
|
|
27
|
+
* defined in: [Representation](nsip-representation-defs-attachment-properties-documentid.md "nsip-representation.schema.json#/$defs/attachment/properties/documentId")
|
|
28
|
+
|
|
29
|
+
### documentId Type
|
|
30
|
+
|
|
31
|
+
`string`
|
|
32
|
+
|
|
33
|
+
### documentId Examples
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
"ID23343453"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## filename
|
|
40
|
+
|
|
41
|
+
Current stored filename of the file
|
|
42
|
+
|
|
43
|
+
`filename`
|
|
44
|
+
|
|
45
|
+
* is required
|
|
46
|
+
|
|
47
|
+
* Type: `string`
|
|
48
|
+
|
|
49
|
+
* cannot be null
|
|
50
|
+
|
|
51
|
+
* defined in: [Representation](nsip-representation-defs-attachment-properties-filename.md "nsip-representation.schema.json#/$defs/attachment/properties/filename")
|
|
52
|
+
|
|
53
|
+
### filename Type
|
|
54
|
+
|
|
55
|
+
`string`
|
|
56
|
+
|
|
57
|
+
### filename Examples
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
"filename.pdf"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## size
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
`size`
|
|
68
|
+
|
|
69
|
+
* is required
|
|
70
|
+
|
|
71
|
+
* Type: `number`
|
|
72
|
+
|
|
73
|
+
* cannot be null
|
|
74
|
+
|
|
75
|
+
* defined in: [Representation](nsip-representation-defs-attachment-properties-size.md "nsip-representation.schema.json#/$defs/attachment/properties/size")
|
|
76
|
+
|
|
77
|
+
### size Type
|
|
78
|
+
|
|
79
|
+
`number`
|
|
80
|
+
|
|
81
|
+
### size Examples
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
23452
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## mime
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
`mime`
|
|
92
|
+
|
|
93
|
+
* is optional
|
|
94
|
+
|
|
95
|
+
* Type: `string`
|
|
96
|
+
|
|
97
|
+
* cannot be null
|
|
98
|
+
|
|
99
|
+
* defined in: [Representation](nsip-representation-defs-attachment-properties-mime.md "nsip-representation.schema.json#/$defs/attachment/properties/mime")
|
|
100
|
+
|
|
101
|
+
### mime Type
|
|
102
|
+
|
|
103
|
+
`string`
|
|
104
|
+
|
|
105
|
+
### mime Examples
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
"application/pdf"
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## documentURI
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
`documentURI`
|
|
116
|
+
|
|
117
|
+
* is required
|
|
118
|
+
|
|
119
|
+
* Type: `string`
|
|
120
|
+
|
|
121
|
+
* cannot be null
|
|
122
|
+
|
|
123
|
+
* defined in: [Representation](nsip-representation-defs-attachment-properties-documenturi.md "nsip-representation.schema.json#/$defs/attachment/properties/documentURI")
|
|
124
|
+
|
|
125
|
+
### documentURI Type
|
|
126
|
+
|
|
127
|
+
`string`
|
|
128
|
+
|
|
129
|
+
### documentURI Examples
|
|
130
|
+
|
|
131
|
+
```json
|
|
132
|
+
"blob:https://published/en010120/filename.pdf"
|
|
133
|
+
```
|
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
## Representation Type
|
|
2
|
+
|
|
3
|
+
`object` ([Representation](nsip-representation.md))
|
|
4
|
+
|
|
5
|
+
# Representation Properties
|
|
6
|
+
|
|
7
|
+
| Property | Type | Required | Nullable | Defined by |
|
|
8
|
+
| :------------------------------------------------ | :-------- | :------- | :------------- | :---------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
9
|
+
| [representationId](#representationid) | `integer` | Required | cannot be null | [Representation](nsip-representation-properties-representationid.md "nsip-representation.schema.json#/properties/representationId") |
|
|
10
|
+
| [referenceId](#referenceid) | `string` | Required | can be null | [Representation](nsip-representation-properties-referenceid.md "nsip-representation.schema.json#/properties/referenceId") |
|
|
11
|
+
| [examinationLibraryRef](#examinationlibraryref) | `string` | Required | can be null | [Representation](nsip-representation-properties-examinationlibraryref.md "nsip-representation.schema.json#/properties/examinationLibraryRef") |
|
|
12
|
+
| [caseRef](#caseref) | `string` | Required | cannot be null | [Representation](nsip-representation-properties-caseref.md "nsip-representation.schema.json#/properties/caseRef") |
|
|
13
|
+
| [caseId](#caseid) | `integer` | Required | can be null | [Representation](nsip-representation-properties-caseid.md "nsip-representation.schema.json#/properties/caseId") |
|
|
14
|
+
| [status](#status) | `string` | Required | can be null | [Representation](nsip-representation-properties-status.md "nsip-representation.schema.json#/properties/status") |
|
|
15
|
+
| [originalRepresentation](#originalrepresentation) | `string` | Required | cannot be null | [Representation](nsip-representation-properties-originalrepresentation.md "nsip-representation.schema.json#/properties/originalRepresentation") |
|
|
16
|
+
| [redacted](#redacted) | `boolean` | Required | can be null | [Representation](nsip-representation-properties-redacted.md "nsip-representation.schema.json#/properties/redacted") |
|
|
17
|
+
| [redactedRepresentation](#redactedrepresentation) | `string` | Required | can be null | [Representation](nsip-representation-properties-redactedrepresentation.md "nsip-representation.schema.json#/properties/redactedRepresentation") |
|
|
18
|
+
| [redactedBy](#redactedby) | `string` | Required | can be null | [Representation](nsip-representation-properties-redactedby.md "nsip-representation.schema.json#/properties/redactedBy") |
|
|
19
|
+
| [redactedNotes](#redactednotes) | `string` | Required | can be null | [Representation](nsip-representation-properties-redactednotes.md "nsip-representation.schema.json#/properties/redactedNotes") |
|
|
20
|
+
| [representationFrom](#representationfrom) | `string` | Required | can be null | [Representation](nsip-representation-properties-representationfrom.md "nsip-representation.schema.json#/properties/representationFrom") |
|
|
21
|
+
| [representedId](#representedid) | `string` | Required | cannot be null | [Representation](nsip-representation-properties-representedid.md "nsip-representation.schema.json#/properties/representedId") |
|
|
22
|
+
| [representativeId](#representativeid) | `string` | Required | can be null | [Representation](nsip-representation-properties-representativeid.md "nsip-representation.schema.json#/properties/representativeId") |
|
|
23
|
+
| [registerFor](#registerfor) | `string` | Required | can be null | [Representation](nsip-representation-properties-registerfor.md "nsip-representation.schema.json#/properties/registerFor") |
|
|
24
|
+
| [representationType](#representationtype) | `string` | Required | can be null | [Representation](nsip-representation-properties-representationtype.md "nsip-representation.schema.json#/properties/representationType") |
|
|
25
|
+
| [dateReceived](#datereceived) | `string` | Required | cannot be null | [Representation](nsip-representation-properties-datereceived.md "nsip-representation.schema.json#/properties/dateReceived") |
|
|
26
|
+
| [attachmentIds](#attachmentids) | `array` | Required | cannot be null | [Representation](nsip-representation-properties-attachmentids.md "nsip-representation.schema.json#/properties/attachmentIds") |
|
|
27
|
+
| Additional Properties | Any | Optional | can be null | |
|
|
28
|
+
|
|
29
|
+
## representationId
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
`representationId`
|
|
34
|
+
|
|
35
|
+
* is required
|
|
36
|
+
|
|
37
|
+
* Type: `integer`
|
|
38
|
+
|
|
39
|
+
* cannot be null
|
|
40
|
+
|
|
41
|
+
* defined in: [Representation](nsip-representation-properties-representationid.md "nsip-representation.schema.json#/properties/representationId")
|
|
42
|
+
|
|
43
|
+
### representationId Type
|
|
44
|
+
|
|
45
|
+
`integer`
|
|
46
|
+
|
|
47
|
+
## referenceId
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
`referenceId`
|
|
52
|
+
|
|
53
|
+
* is required
|
|
54
|
+
|
|
55
|
+
* Type: `string`
|
|
56
|
+
|
|
57
|
+
* can be null
|
|
58
|
+
|
|
59
|
+
* defined in: [Representation](nsip-representation-properties-referenceid.md "nsip-representation.schema.json#/properties/referenceId")
|
|
60
|
+
|
|
61
|
+
### referenceId Type
|
|
62
|
+
|
|
63
|
+
`string`
|
|
64
|
+
|
|
65
|
+
### referenceId Examples
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
"TR043003-000010"
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## examinationLibraryRef
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
`examinationLibraryRef`
|
|
76
|
+
|
|
77
|
+
* is required
|
|
78
|
+
|
|
79
|
+
* Type: `string`
|
|
80
|
+
|
|
81
|
+
* can be null
|
|
82
|
+
|
|
83
|
+
* defined in: [Representation](nsip-representation-properties-examinationlibraryref.md "nsip-representation.schema.json#/properties/examinationLibraryRef")
|
|
84
|
+
|
|
85
|
+
### examinationLibraryRef Type
|
|
86
|
+
|
|
87
|
+
`string`
|
|
88
|
+
|
|
89
|
+
### examinationLibraryRef Examples
|
|
90
|
+
|
|
91
|
+
```json
|
|
92
|
+
"RR-0001"
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## caseRef
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
`caseRef`
|
|
100
|
+
|
|
101
|
+
* is required
|
|
102
|
+
|
|
103
|
+
* Type: `string`
|
|
104
|
+
|
|
105
|
+
* cannot be null
|
|
106
|
+
|
|
107
|
+
* defined in: [Representation](nsip-representation-properties-caseref.md "nsip-representation.schema.json#/properties/caseRef")
|
|
108
|
+
|
|
109
|
+
### caseRef Type
|
|
110
|
+
|
|
111
|
+
`string`
|
|
112
|
+
|
|
113
|
+
## caseId
|
|
114
|
+
|
|
115
|
+
The unique identifier within the Back Office. This is not the same as the case reference
|
|
116
|
+
|
|
117
|
+
`caseId`
|
|
118
|
+
|
|
119
|
+
* is required
|
|
120
|
+
|
|
121
|
+
* Type: `integer`
|
|
122
|
+
|
|
123
|
+
* can be null
|
|
124
|
+
|
|
125
|
+
* defined in: [Representation](nsip-representation-properties-caseid.md "nsip-representation.schema.json#/properties/caseId")
|
|
126
|
+
|
|
127
|
+
### caseId Type
|
|
128
|
+
|
|
129
|
+
`integer`
|
|
130
|
+
|
|
131
|
+
### caseId Examples
|
|
132
|
+
|
|
133
|
+
```json
|
|
134
|
+
1242
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## status
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
`status`
|
|
142
|
+
|
|
143
|
+
* is required
|
|
144
|
+
|
|
145
|
+
* Type: `string`
|
|
146
|
+
|
|
147
|
+
* can be null
|
|
148
|
+
|
|
149
|
+
* defined in: [Representation](nsip-representation-properties-status.md "nsip-representation.schema.json#/properties/status")
|
|
150
|
+
|
|
151
|
+
### status Type
|
|
152
|
+
|
|
153
|
+
`string`
|
|
154
|
+
|
|
155
|
+
### status Constraints
|
|
156
|
+
|
|
157
|
+
**enum**: the value of this property must be equal to one of the following values:
|
|
158
|
+
|
|
159
|
+
| Value | Explanation |
|
|
160
|
+
| :------------------ | :---------- |
|
|
161
|
+
| `"awaiting_review"` | |
|
|
162
|
+
| `"referred"` | |
|
|
163
|
+
| `"valid"` | |
|
|
164
|
+
| `"invalid"` | |
|
|
165
|
+
| `"published"` | |
|
|
166
|
+
| `"archived"` | |
|
|
167
|
+
| `"draft"` | |
|
|
168
|
+
| `"withdrawn"` | |
|
|
169
|
+
| `null` | |
|
|
170
|
+
|
|
171
|
+
## originalRepresentation
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
`originalRepresentation`
|
|
176
|
+
|
|
177
|
+
* is required
|
|
178
|
+
|
|
179
|
+
* Type: `string`
|
|
180
|
+
|
|
181
|
+
* cannot be null
|
|
182
|
+
|
|
183
|
+
* defined in: [Representation](nsip-representation-properties-originalrepresentation.md "nsip-representation.schema.json#/properties/originalRepresentation")
|
|
184
|
+
|
|
185
|
+
### originalRepresentation Type
|
|
186
|
+
|
|
187
|
+
`string`
|
|
188
|
+
|
|
189
|
+
## redacted
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
`redacted`
|
|
194
|
+
|
|
195
|
+
* is required
|
|
196
|
+
|
|
197
|
+
* Type: `boolean`
|
|
198
|
+
|
|
199
|
+
* can be null
|
|
200
|
+
|
|
201
|
+
* defined in: [Representation](nsip-representation-properties-redacted.md "nsip-representation.schema.json#/properties/redacted")
|
|
202
|
+
|
|
203
|
+
### redacted Type
|
|
204
|
+
|
|
205
|
+
`boolean`
|
|
206
|
+
|
|
207
|
+
## redactedRepresentation
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
`redactedRepresentation`
|
|
212
|
+
|
|
213
|
+
* is required
|
|
214
|
+
|
|
215
|
+
* Type: `string`
|
|
216
|
+
|
|
217
|
+
* can be null
|
|
218
|
+
|
|
219
|
+
* defined in: [Representation](nsip-representation-properties-redactedrepresentation.md "nsip-representation.schema.json#/properties/redactedRepresentation")
|
|
220
|
+
|
|
221
|
+
### redactedRepresentation Type
|
|
222
|
+
|
|
223
|
+
`string`
|
|
224
|
+
|
|
225
|
+
## redactedBy
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
`redactedBy`
|
|
230
|
+
|
|
231
|
+
* is required
|
|
232
|
+
|
|
233
|
+
* Type: `string`
|
|
234
|
+
|
|
235
|
+
* can be null
|
|
236
|
+
|
|
237
|
+
* defined in: [Representation](nsip-representation-properties-redactedby.md "nsip-representation.schema.json#/properties/redactedBy")
|
|
238
|
+
|
|
239
|
+
### redactedBy Type
|
|
240
|
+
|
|
241
|
+
`string`
|
|
242
|
+
|
|
243
|
+
### redactedBy Examples
|
|
244
|
+
|
|
245
|
+
```json
|
|
246
|
+
"Joe Blogs"
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
## redactedNotes
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
`redactedNotes`
|
|
254
|
+
|
|
255
|
+
* is required
|
|
256
|
+
|
|
257
|
+
* Type: `string`
|
|
258
|
+
|
|
259
|
+
* can be null
|
|
260
|
+
|
|
261
|
+
* defined in: [Representation](nsip-representation-properties-redactednotes.md "nsip-representation.schema.json#/properties/redactedNotes")
|
|
262
|
+
|
|
263
|
+
### redactedNotes Type
|
|
264
|
+
|
|
265
|
+
`string`
|
|
266
|
+
|
|
267
|
+
### redactedNotes Examples
|
|
268
|
+
|
|
269
|
+
```json
|
|
270
|
+
"Removed names of family members"
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
## representationFrom
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
`representationFrom`
|
|
278
|
+
|
|
279
|
+
* is required
|
|
280
|
+
|
|
281
|
+
* Type: `string`
|
|
282
|
+
|
|
283
|
+
* can be null
|
|
284
|
+
|
|
285
|
+
* defined in: [Representation](nsip-representation-properties-representationfrom.md "nsip-representation.schema.json#/properties/representationFrom")
|
|
286
|
+
|
|
287
|
+
### representationFrom Type
|
|
288
|
+
|
|
289
|
+
`string`
|
|
290
|
+
|
|
291
|
+
### representationFrom Constraints
|
|
292
|
+
|
|
293
|
+
**enum**: the value of this property must be equal to one of the following values:
|
|
294
|
+
|
|
295
|
+
| Value | Explanation |
|
|
296
|
+
| :--------------- | :---------- |
|
|
297
|
+
| `"PERSON"` | |
|
|
298
|
+
| `"ORGANISATION"` | |
|
|
299
|
+
| `"AGENT"` | |
|
|
300
|
+
| `null` | |
|
|
301
|
+
|
|
302
|
+
## representedId
|
|
303
|
+
|
|
304
|
+
ServiceUser Id of the person or organisation being represented
|
|
305
|
+
|
|
306
|
+
`representedId`
|
|
307
|
+
|
|
308
|
+
* is required
|
|
309
|
+
|
|
310
|
+
* Type: `string`
|
|
311
|
+
|
|
312
|
+
* cannot be null
|
|
313
|
+
|
|
314
|
+
* defined in: [Representation](nsip-representation-properties-representedid.md "nsip-representation.schema.json#/properties/representedId")
|
|
315
|
+
|
|
316
|
+
### representedId Type
|
|
317
|
+
|
|
318
|
+
`string`
|
|
319
|
+
|
|
320
|
+
## representativeId
|
|
321
|
+
|
|
322
|
+
ServiceUser Id of the person or organisation submitting representation in the case of Agent representationFrom
|
|
323
|
+
|
|
324
|
+
`representativeId`
|
|
325
|
+
|
|
326
|
+
* is required
|
|
327
|
+
|
|
328
|
+
* Type: `string`
|
|
329
|
+
|
|
330
|
+
* can be null
|
|
331
|
+
|
|
332
|
+
* defined in: [Representation](nsip-representation-properties-representativeid.md "nsip-representation.schema.json#/properties/representativeId")
|
|
333
|
+
|
|
334
|
+
### representativeId Type
|
|
335
|
+
|
|
336
|
+
`string`
|
|
337
|
+
|
|
338
|
+
## registerFor
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
`registerFor`
|
|
343
|
+
|
|
344
|
+
* is required
|
|
345
|
+
|
|
346
|
+
* Type: `string`
|
|
347
|
+
|
|
348
|
+
* can be null
|
|
349
|
+
|
|
350
|
+
* defined in: [Representation](nsip-representation-properties-registerfor.md "nsip-representation.schema.json#/properties/registerFor")
|
|
351
|
+
|
|
352
|
+
### registerFor Type
|
|
353
|
+
|
|
354
|
+
`string`
|
|
355
|
+
|
|
356
|
+
### registerFor Constraints
|
|
357
|
+
|
|
358
|
+
**enum**: the value of this property must be equal to one of the following values:
|
|
359
|
+
|
|
360
|
+
| Value | Explanation |
|
|
361
|
+
| :--------------- | :---------- |
|
|
362
|
+
| `"PERSON"` | |
|
|
363
|
+
| `"ORGANISATION"` | |
|
|
364
|
+
| `"FAMILY_GROUP"` | |
|
|
365
|
+
| `null` | |
|
|
366
|
+
|
|
367
|
+
## representationType
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
`representationType`
|
|
372
|
+
|
|
373
|
+
* is required
|
|
374
|
+
|
|
375
|
+
* Type: `string`
|
|
376
|
+
|
|
377
|
+
* can be null
|
|
378
|
+
|
|
379
|
+
* defined in: [Representation](nsip-representation-properties-representationtype.md "nsip-representation.schema.json#/properties/representationType")
|
|
380
|
+
|
|
381
|
+
### representationType Type
|
|
382
|
+
|
|
383
|
+
`string`
|
|
384
|
+
|
|
385
|
+
### representationType Constraints
|
|
386
|
+
|
|
387
|
+
**enum**: the value of this property must be equal to one of the following values:
|
|
388
|
+
|
|
389
|
+
| Value | Explanation |
|
|
390
|
+
| :----------------------------------- | :---------- |
|
|
391
|
+
| `"Local Authorities"` | |
|
|
392
|
+
| `"Parish Councils"` | |
|
|
393
|
+
| `"Members of the Public/Businesses"` | |
|
|
394
|
+
| `"Public & Businesses"` | |
|
|
395
|
+
| `"Statutory Consultees"` | |
|
|
396
|
+
| `"Non-Statutory Organisations"` | |
|
|
397
|
+
| `"Another Individual"` | |
|
|
398
|
+
| `null` | |
|
|
399
|
+
|
|
400
|
+
## dateReceived
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
`dateReceived`
|
|
405
|
+
|
|
406
|
+
* is required
|
|
407
|
+
|
|
408
|
+
* Type: `string`
|
|
409
|
+
|
|
410
|
+
* cannot be null
|
|
411
|
+
|
|
412
|
+
* defined in: [Representation](nsip-representation-properties-datereceived.md "nsip-representation.schema.json#/properties/dateReceived")
|
|
413
|
+
|
|
414
|
+
### dateReceived Type
|
|
415
|
+
|
|
416
|
+
`string`
|
|
417
|
+
|
|
418
|
+
### dateReceived Constraints
|
|
419
|
+
|
|
420
|
+
**date time**: the string must be a date time string, according to [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339 "check the specification")
|
|
421
|
+
|
|
422
|
+
### dateReceived Examples
|
|
423
|
+
|
|
424
|
+
```json
|
|
425
|
+
"2023-07-27T20:30:00.000Z"
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
## attachmentIds
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
`attachmentIds`
|
|
433
|
+
|
|
434
|
+
* is required
|
|
435
|
+
|
|
436
|
+
* Type: `string[]`
|
|
437
|
+
|
|
438
|
+
* cannot be null
|
|
439
|
+
|
|
440
|
+
* defined in: [Representation](nsip-representation-properties-attachmentids.md "nsip-representation.schema.json#/properties/attachmentIds")
|
|
441
|
+
|
|
442
|
+
### attachmentIds Type
|
|
443
|
+
|
|
444
|
+
`string[]`
|
|
445
|
+
|
|
446
|
+
## Additional Properties
|
|
447
|
+
|
|
448
|
+
Additional properties are allowed and do not have to follow a specific schema
|