@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,539 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "nsip-project.schema.json",
|
|
4
|
+
"title": "NSIP Project",
|
|
5
|
+
"description": "Subset of Pins Data Model [Case]",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": [
|
|
9
|
+
"caseId",
|
|
10
|
+
"caseReference",
|
|
11
|
+
"projectName",
|
|
12
|
+
"projectDescription",
|
|
13
|
+
"decision",
|
|
14
|
+
"publishStatus",
|
|
15
|
+
"sector",
|
|
16
|
+
"projectType",
|
|
17
|
+
"sourceSystem",
|
|
18
|
+
"stage",
|
|
19
|
+
"projectLocation",
|
|
20
|
+
"projectEmailAddress",
|
|
21
|
+
"regions",
|
|
22
|
+
"transboundary",
|
|
23
|
+
"easting",
|
|
24
|
+
"northing",
|
|
25
|
+
"datePINSFirstNotifiedOfProject",
|
|
26
|
+
"dateProjectAppearsOnWebsite",
|
|
27
|
+
"anticipatedSubmissionDateNonSpecific",
|
|
28
|
+
"anticipatedDateOfSubmission",
|
|
29
|
+
"screeningOpinionSought",
|
|
30
|
+
"screeningOpinionIssued",
|
|
31
|
+
"scopingOpinionSought",
|
|
32
|
+
"scopingOpinionIssued",
|
|
33
|
+
"section46Notification",
|
|
34
|
+
"dateOfDCOSubmission",
|
|
35
|
+
"deadlineForAcceptanceDecision",
|
|
36
|
+
"dateOfDCOAcceptance",
|
|
37
|
+
"dateOfNonAcceptance",
|
|
38
|
+
"dateOfRepresentationPeriodOpen",
|
|
39
|
+
"dateOfRelevantRepresentationClose",
|
|
40
|
+
"extensionToDateRelevantRepresentationsClose",
|
|
41
|
+
"dateRRepAppearOnWebsite",
|
|
42
|
+
"dateIAPIDue",
|
|
43
|
+
"rule6LetterPublishDate",
|
|
44
|
+
"preliminaryMeetingStartDate",
|
|
45
|
+
"notificationDateForPMAndEventsDirectlyFollowingPM",
|
|
46
|
+
"notificationDateForEventsDeveloper",
|
|
47
|
+
"dateSection58NoticeReceived",
|
|
48
|
+
"confirmedStartOfExamination",
|
|
49
|
+
"rule8LetterPublishDate",
|
|
50
|
+
"deadlineForCloseOfExamination",
|
|
51
|
+
"dateTimeExaminationEnds",
|
|
52
|
+
"stage4ExtensionToExamCloseDate",
|
|
53
|
+
"deadlineForSubmissionOfRecommendation",
|
|
54
|
+
"dateOfRecommendations",
|
|
55
|
+
"stage5ExtensionToRecommendationDeadline",
|
|
56
|
+
"deadlineForDecision",
|
|
57
|
+
"confirmedDateOfDecision",
|
|
58
|
+
"stage5ExtensionToDecisionDeadline",
|
|
59
|
+
"jRPeriodEndDate",
|
|
60
|
+
"dateProjectWithdrawn",
|
|
61
|
+
"operationsLeadId",
|
|
62
|
+
"operationsManagerId",
|
|
63
|
+
"caseManagerId",
|
|
64
|
+
"nsipOfficerIds",
|
|
65
|
+
"nsipAdministrationOfficerIds",
|
|
66
|
+
"leadInspectorId",
|
|
67
|
+
"inspectorIds",
|
|
68
|
+
"environmentalServicesOfficerId",
|
|
69
|
+
"legalOfficerId",
|
|
70
|
+
"applicantId",
|
|
71
|
+
"welshLanguage",
|
|
72
|
+
"mapZoomLevel",
|
|
73
|
+
"secretaryOfState",
|
|
74
|
+
"migrationStatus",
|
|
75
|
+
"dateOfReOpenRelevantRepresentationStart",
|
|
76
|
+
"dateOfReOpenRelevantRepresentationClose"
|
|
77
|
+
],
|
|
78
|
+
"properties": {
|
|
79
|
+
"caseId": {
|
|
80
|
+
"type": "integer",
|
|
81
|
+
"examples": [1242],
|
|
82
|
+
"description": "The unique identifier within the Back Office. This is not the same as the case reference"
|
|
83
|
+
},
|
|
84
|
+
"caseReference": {
|
|
85
|
+
"type": ["string", "null"],
|
|
86
|
+
"examples": ["BC0510001"]
|
|
87
|
+
},
|
|
88
|
+
"projectName": {
|
|
89
|
+
"type": ["string", "null"],
|
|
90
|
+
"description": "Name of project",
|
|
91
|
+
"examples": ["A1 Birtley to Coal House Improvement Scheme"]
|
|
92
|
+
},
|
|
93
|
+
"projectNameWelsh": {
|
|
94
|
+
"type": ["string", "null"],
|
|
95
|
+
"description": "Name of project in Welsh"
|
|
96
|
+
},
|
|
97
|
+
"projectDescription": {
|
|
98
|
+
"type": ["string", "null"],
|
|
99
|
+
"examples": [
|
|
100
|
+
"The scheme is 6.5 km in length and will consist of online widening of the A1 south of Gateshead to four lanes between junction 65"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"projectDescriptionWelsh": {
|
|
104
|
+
"type": ["string", "null"]
|
|
105
|
+
},
|
|
106
|
+
"decision": {
|
|
107
|
+
"type": ["string", "null"],
|
|
108
|
+
"description": "Decision: approved/refused/split-decision",
|
|
109
|
+
"enum": ["approved", "refused", "split-decision", null]
|
|
110
|
+
},
|
|
111
|
+
"publishStatus": {
|
|
112
|
+
"type": ["string", "null"],
|
|
113
|
+
"enum": ["published", "unpublished", null]
|
|
114
|
+
},
|
|
115
|
+
"sector": {
|
|
116
|
+
"type": ["string", "null"],
|
|
117
|
+
"description": "{Sector Abbreviation} - {Sector Display Name}",
|
|
118
|
+
"enum": [
|
|
119
|
+
"BC - Business and Commercial",
|
|
120
|
+
"EN - Energy",
|
|
121
|
+
"TR - Transport",
|
|
122
|
+
"WA - Water",
|
|
123
|
+
"WS - Waste",
|
|
124
|
+
"WW - Waste Water",
|
|
125
|
+
null
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"projectType": {
|
|
129
|
+
"type": ["string", "null"],
|
|
130
|
+
"description": "{SubSector Abbreviation} - {SubSector Display Name}",
|
|
131
|
+
"enum": [
|
|
132
|
+
"BC01 - Office Use",
|
|
133
|
+
"BC02 - Research and Development of Products or Processes",
|
|
134
|
+
"BC03 - An Industrial Process or Processes",
|
|
135
|
+
"BC04 - Storage or Distribution of Goods",
|
|
136
|
+
"BC05 - Conferences",
|
|
137
|
+
"BC06 - Exhibitions",
|
|
138
|
+
"BC07 - Sport",
|
|
139
|
+
"BC08 - Leisure",
|
|
140
|
+
"BC09 - Tourism",
|
|
141
|
+
"EN01 - Generating Stations",
|
|
142
|
+
"EN02 - Electric Lines",
|
|
143
|
+
"EN03 - Underground Gas Storage Facilities",
|
|
144
|
+
"EN04 - LNG Facilities",
|
|
145
|
+
"EN05 - Gas Reception Facilities",
|
|
146
|
+
"EN06 - Gas Transporter Pipe-lines",
|
|
147
|
+
"EN07 - Other Pipe-lines",
|
|
148
|
+
"TR01 - Highways",
|
|
149
|
+
"TR02 - Airports",
|
|
150
|
+
"TR03 - Harbour Facilities",
|
|
151
|
+
"TR04 - Railways",
|
|
152
|
+
"TR05 - Rail Freight Interchanges",
|
|
153
|
+
"WS01 - Hazardous Waste Facilities",
|
|
154
|
+
"WW01 - Waste Water Treatment Plants",
|
|
155
|
+
"WA01 - Dams and Reservoirs",
|
|
156
|
+
"WA02 - Transfer of Water Resources",
|
|
157
|
+
null
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"sourceSystem": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"enum": ["back-office-applications", "horizon"]
|
|
163
|
+
},
|
|
164
|
+
"stage": {
|
|
165
|
+
"type": ["string", "null"],
|
|
166
|
+
"description": "Process stage identifier",
|
|
167
|
+
"enum": [
|
|
168
|
+
"draft",
|
|
169
|
+
"pre_application",
|
|
170
|
+
"acceptance",
|
|
171
|
+
"pre_examination",
|
|
172
|
+
"examination",
|
|
173
|
+
"recommendation",
|
|
174
|
+
"decision",
|
|
175
|
+
"post_decision",
|
|
176
|
+
"withdrawn",
|
|
177
|
+
null
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
"projectLocation": {
|
|
181
|
+
"type": ["string", "null"],
|
|
182
|
+
"description": "Description of site location",
|
|
183
|
+
"examples": ["The scheme is located on the A1 Newcastle Gateshead Western Bypass, between junctions 65 and 67."]
|
|
184
|
+
},
|
|
185
|
+
"projectLocationWelsh": {
|
|
186
|
+
"type": ["string", "null"],
|
|
187
|
+
"description": "Description of site location in Welsh"
|
|
188
|
+
},
|
|
189
|
+
"projectEmailAddress": {
|
|
190
|
+
"type": ["string", "null"],
|
|
191
|
+
"description": "PINS Project email address pubished on website",
|
|
192
|
+
"examples": ["NIEnquiries@planninginspectorate.gsi.gov.uk"]
|
|
193
|
+
},
|
|
194
|
+
"regions": {
|
|
195
|
+
"type": "array",
|
|
196
|
+
"items": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"description": "Geographical region of UK. Applications can cover multiple regions.",
|
|
199
|
+
"enum": [
|
|
200
|
+
"east_midlands",
|
|
201
|
+
"eastern",
|
|
202
|
+
"london",
|
|
203
|
+
"north_east",
|
|
204
|
+
"north_west",
|
|
205
|
+
"south_east",
|
|
206
|
+
"south_west",
|
|
207
|
+
"wales",
|
|
208
|
+
"west_midlands",
|
|
209
|
+
"yorkshire_and_the_humber"
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"transboundary": {
|
|
214
|
+
"type": ["boolean", "null"],
|
|
215
|
+
"description": "Drives addition of Transboundary tab on website. [TODO]",
|
|
216
|
+
"examples": [true, false]
|
|
217
|
+
},
|
|
218
|
+
"easting": {
|
|
219
|
+
"type": ["integer", "null"],
|
|
220
|
+
"description": "Project site Easting co-ordinate.",
|
|
221
|
+
"examples": [345678]
|
|
222
|
+
},
|
|
223
|
+
"northing": {
|
|
224
|
+
"type": ["integer", "null"],
|
|
225
|
+
"description": "Project site Northing co-ordinate.",
|
|
226
|
+
"examples": [345678]
|
|
227
|
+
},
|
|
228
|
+
"welshLanguage": {
|
|
229
|
+
"type": ["boolean", "null"],
|
|
230
|
+
"description": "Welsh Language translation required.",
|
|
231
|
+
"examples": [true, false]
|
|
232
|
+
},
|
|
233
|
+
"mapZoomLevel": {
|
|
234
|
+
"type": ["string", "null"],
|
|
235
|
+
"description": "Resolution of pinned map. Set when co-ordinates are created.",
|
|
236
|
+
"enum": ["country", "region", "county", "borough", "district", "city", "town", "junction", "none", null]
|
|
237
|
+
},
|
|
238
|
+
"secretaryOfState": {
|
|
239
|
+
"type": ["string", "null"],
|
|
240
|
+
"description": "Relevant Government Department. [TODO]"
|
|
241
|
+
},
|
|
242
|
+
|
|
243
|
+
"_preApplicationDates": {},
|
|
244
|
+
"datePINSFirstNotifiedOfProject": {
|
|
245
|
+
"type": ["string", "null"],
|
|
246
|
+
"description": "Date at which applicant notify PINS of a project (pre-publishing)",
|
|
247
|
+
"format": "date-time",
|
|
248
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
249
|
+
},
|
|
250
|
+
"dateProjectAppearsOnWebsite": {
|
|
251
|
+
"type": ["string", "null"],
|
|
252
|
+
"description": "Date Project Appears On Website",
|
|
253
|
+
"format": "date-time",
|
|
254
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
255
|
+
},
|
|
256
|
+
"anticipatedSubmissionDateNonSpecific": {
|
|
257
|
+
"type": ["string", "null"],
|
|
258
|
+
"description": "Approximate Anticipated Submission Date Of Application, e.g. Q3 2023",
|
|
259
|
+
"examples": ["Q3 2023"]
|
|
260
|
+
},
|
|
261
|
+
"anticipatedDateOfSubmission": {
|
|
262
|
+
"type": ["string", "null"],
|
|
263
|
+
"description": "Anticipated Submission Date Of Application",
|
|
264
|
+
"format": "date-time",
|
|
265
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
266
|
+
},
|
|
267
|
+
"screeningOpinionSought": {
|
|
268
|
+
"type": ["string", "null"],
|
|
269
|
+
"description": "(TBC by Env. Services Team)",
|
|
270
|
+
"format": "date-time",
|
|
271
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
272
|
+
},
|
|
273
|
+
"screeningOpinionIssued": {
|
|
274
|
+
"type": ["string", "null"],
|
|
275
|
+
"description": "(TBC by Env. Services Team)",
|
|
276
|
+
"format": "date-time",
|
|
277
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
278
|
+
},
|
|
279
|
+
"scopingOpinionSought": {
|
|
280
|
+
"type": ["string", "null"],
|
|
281
|
+
"description": "(TBC by Env. Services Team)",
|
|
282
|
+
"format": "date-time",
|
|
283
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
284
|
+
},
|
|
285
|
+
"scopingOpinionIssued": {
|
|
286
|
+
"type": ["string", "null"],
|
|
287
|
+
"description": "(TBC by Env. Services Team)",
|
|
288
|
+
"format": "date-time",
|
|
289
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
290
|
+
},
|
|
291
|
+
"section46Notification": {
|
|
292
|
+
"type": ["string", "null"],
|
|
293
|
+
"description": "Applicant must notify PINS of statutory consultation",
|
|
294
|
+
"format": "date-time",
|
|
295
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
296
|
+
},
|
|
297
|
+
|
|
298
|
+
"_acceptanceDates": {},
|
|
299
|
+
"dateOfDCOSubmission": {
|
|
300
|
+
"type": ["string", "null"],
|
|
301
|
+
"description": "Date Applcation is submitted",
|
|
302
|
+
"format": "date-time",
|
|
303
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
304
|
+
},
|
|
305
|
+
"deadlineForAcceptanceDecision": {
|
|
306
|
+
"type": ["string", "null"],
|
|
307
|
+
"description": "DeadlineForAcceptanceDecision",
|
|
308
|
+
"format": "date-time",
|
|
309
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
310
|
+
},
|
|
311
|
+
"dateOfDCOAcceptance": {
|
|
312
|
+
"type": ["string", "null"],
|
|
313
|
+
"description": "Date Application is Formerly Accepted by PINS",
|
|
314
|
+
"format": "date-time",
|
|
315
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
316
|
+
},
|
|
317
|
+
"dateOfNonAcceptance": {
|
|
318
|
+
"type": ["string", "null"],
|
|
319
|
+
"description": "Date of Non Acceptance",
|
|
320
|
+
"format": "date-time",
|
|
321
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
322
|
+
},
|
|
323
|
+
"_preExaminationDates": {},
|
|
324
|
+
"dateOfRepresentationPeriodOpen": {
|
|
325
|
+
"type": ["string", "null"],
|
|
326
|
+
"description": "Date at which point publish can submit relevant reps",
|
|
327
|
+
"format": "date-time",
|
|
328
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
329
|
+
},
|
|
330
|
+
"dateOfRelevantRepresentationClose": {
|
|
331
|
+
"type": ["string", "null"],
|
|
332
|
+
"description": "Date at which point publish can no longer submit relevant reps",
|
|
333
|
+
"format": "date-time",
|
|
334
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
335
|
+
},
|
|
336
|
+
"extensionToDateRelevantRepresentationsClose": {
|
|
337
|
+
"type": ["string", "null"],
|
|
338
|
+
"description": "ExtensionToDateRelevantRepresentationsClose",
|
|
339
|
+
"format": "date-time",
|
|
340
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
341
|
+
},
|
|
342
|
+
"dateRRepAppearOnWebsite": {
|
|
343
|
+
"type": ["string", "null"],
|
|
344
|
+
"description": "Date at which relevant reps appear on the website",
|
|
345
|
+
"format": "date-time",
|
|
346
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
347
|
+
},
|
|
348
|
+
"dateIAPIDue": {
|
|
349
|
+
"type": ["string", "null"],
|
|
350
|
+
"format": "date-time",
|
|
351
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
352
|
+
},
|
|
353
|
+
"rule6LetterPublishDate": {
|
|
354
|
+
"type": ["string", "null"],
|
|
355
|
+
"format": "date-time",
|
|
356
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
357
|
+
},
|
|
358
|
+
"preliminaryMeetingStartDate": {
|
|
359
|
+
"type": ["string", "null"],
|
|
360
|
+
"description": "Meeting between all parties inc public",
|
|
361
|
+
"format": "date-time",
|
|
362
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
363
|
+
},
|
|
364
|
+
"notificationDateForPMAndEventsDirectlyFollowingPM": {
|
|
365
|
+
"type": ["string", "null"],
|
|
366
|
+
"format": "date-time",
|
|
367
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
368
|
+
},
|
|
369
|
+
"notificationDateForEventsDeveloper": {
|
|
370
|
+
"type": ["string", "null"],
|
|
371
|
+
"format": "date-time",
|
|
372
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
373
|
+
},
|
|
374
|
+
|
|
375
|
+
"_examinationDates": {},
|
|
376
|
+
"dateSection58NoticeReceived": {
|
|
377
|
+
"type": ["string", "null"],
|
|
378
|
+
"description": "Applicant has notified all parties of application",
|
|
379
|
+
"format": "date-time",
|
|
380
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
381
|
+
},
|
|
382
|
+
"confirmedStartOfExamination": {
|
|
383
|
+
"type": ["string", "null"],
|
|
384
|
+
"description": "ConfirmedStartOfExamination by panel",
|
|
385
|
+
"format": "date-time",
|
|
386
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
387
|
+
},
|
|
388
|
+
"rule8LetterPublishDate": {
|
|
389
|
+
"type": ["string", "null"],
|
|
390
|
+
"format": "date-time",
|
|
391
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
392
|
+
},
|
|
393
|
+
"deadlineForCloseOfExamination": {
|
|
394
|
+
"type": ["string", "null"],
|
|
395
|
+
"description": "DeadlineForCloseOfExamination",
|
|
396
|
+
"format": "date-time",
|
|
397
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
398
|
+
},
|
|
399
|
+
"dateTimeExaminationEnds": {
|
|
400
|
+
"type": ["string", "null"],
|
|
401
|
+
"description": "ConfirmedSEndOfExamination by panel",
|
|
402
|
+
"format": "date-time",
|
|
403
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
404
|
+
},
|
|
405
|
+
"stage4ExtensionToExamCloseDate": {
|
|
406
|
+
"type": ["string", "null"],
|
|
407
|
+
"description": "Examination Period extended to this date",
|
|
408
|
+
"format": "date-time",
|
|
409
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
410
|
+
},
|
|
411
|
+
|
|
412
|
+
"_recommendationDates": {},
|
|
413
|
+
"deadlineForSubmissionOfRecommendation": {
|
|
414
|
+
"type": ["string", "null"],
|
|
415
|
+
"description": "DeadlineForSubmissionOfRecommendation",
|
|
416
|
+
"format": "date-time",
|
|
417
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
418
|
+
},
|
|
419
|
+
"dateOfRecommendations": {
|
|
420
|
+
"type": ["string", "null"],
|
|
421
|
+
"description": "Date recomm report sent to SoS",
|
|
422
|
+
"format": "date-time",
|
|
423
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
424
|
+
},
|
|
425
|
+
"stage5ExtensionToRecommendationDeadline": {
|
|
426
|
+
"type": ["string", "null"],
|
|
427
|
+
"description": "Recommendation period extended to this date",
|
|
428
|
+
"format": "date-time",
|
|
429
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
430
|
+
},
|
|
431
|
+
|
|
432
|
+
"_decisionDates": {},
|
|
433
|
+
"deadlineForDecision": {
|
|
434
|
+
"type": ["string", "null"],
|
|
435
|
+
"description": "DeadlineForDecision",
|
|
436
|
+
"format": "date-time",
|
|
437
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
438
|
+
},
|
|
439
|
+
"confirmedDateOfDecision": {
|
|
440
|
+
"type": ["string", "null"],
|
|
441
|
+
"description": "Decision by SoS",
|
|
442
|
+
"format": "date-time",
|
|
443
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
444
|
+
},
|
|
445
|
+
"stage5ExtensionToDecisionDeadline": {
|
|
446
|
+
"type": ["string", "null"],
|
|
447
|
+
"description": "Decision period extended to this date",
|
|
448
|
+
"format": "date-time",
|
|
449
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
450
|
+
},
|
|
451
|
+
|
|
452
|
+
"_postDecisionDates": {},
|
|
453
|
+
"jRPeriodEndDate": {
|
|
454
|
+
"type": ["string", "null"],
|
|
455
|
+
"description": "Judicial Review",
|
|
456
|
+
"format": "date-time",
|
|
457
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
458
|
+
},
|
|
459
|
+
|
|
460
|
+
"_withdrawalDates": {},
|
|
461
|
+
"dateProjectWithdrawn": {
|
|
462
|
+
"type": ["string", "null"],
|
|
463
|
+
"description": "DateProjectWithdrawn by applicant",
|
|
464
|
+
"format": "date-time",
|
|
465
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
466
|
+
},
|
|
467
|
+
|
|
468
|
+
"operationsLeadId": {
|
|
469
|
+
"type": ["string", "null"],
|
|
470
|
+
"description": "Maps to [Employee].[EmployeeID]."
|
|
471
|
+
},
|
|
472
|
+
"operationsManagerId": {
|
|
473
|
+
"type": ["string", "null"],
|
|
474
|
+
"description": "New NSIP role, Maps to [Employee].[EmployeeID]"
|
|
475
|
+
},
|
|
476
|
+
"caseManagerId": {
|
|
477
|
+
"type": ["string", "null"],
|
|
478
|
+
"description": "Maps to [Employee].[EmployeeID]"
|
|
479
|
+
},
|
|
480
|
+
"nsipOfficerIds": {
|
|
481
|
+
"type": "array",
|
|
482
|
+
"items": {
|
|
483
|
+
"type": "string",
|
|
484
|
+
"description": "Maps to [Employee].[EmployeeID]."
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
"nsipAdministrationOfficerIds": {
|
|
488
|
+
"type": "array",
|
|
489
|
+
"items": {
|
|
490
|
+
"type": "string",
|
|
491
|
+
"description": "Maps to [Employee].[EmployeeID]."
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"leadInspectorId": {
|
|
495
|
+
"type": ["string", "null"],
|
|
496
|
+
"description": "Maps to [Employee].[EmployeeID]"
|
|
497
|
+
},
|
|
498
|
+
"inspectorIds": {
|
|
499
|
+
"type": "array",
|
|
500
|
+
"items": {
|
|
501
|
+
"type": "string",
|
|
502
|
+
"description": "Maps to [Employee].[EmployeeID]"
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"environmentalServicesOfficerId": {
|
|
506
|
+
"type": ["string", "null"],
|
|
507
|
+
"description": "Maps to [Employee].[EmployeeID]"
|
|
508
|
+
},
|
|
509
|
+
"legalOfficerId": {
|
|
510
|
+
"type": ["string", "null"],
|
|
511
|
+
"description": "Maps to [Employee].[EmployeeID]"
|
|
512
|
+
},
|
|
513
|
+
"applicantId": {
|
|
514
|
+
"type": ["string", "null"],
|
|
515
|
+
"description": "Maps to [ServiceUser].[id] where the serviceUserType is Applicant"
|
|
516
|
+
},
|
|
517
|
+
"migrationStatus": {
|
|
518
|
+
"type": ["boolean", "null"],
|
|
519
|
+
"description": "Has this case been migrated from the legacy system? True if so."
|
|
520
|
+
},
|
|
521
|
+
"dateOfReOpenRelevantRepresentationStart": {
|
|
522
|
+
"type": ["string", "null"],
|
|
523
|
+
"description": "Date at which relevant reps can be reopened",
|
|
524
|
+
"format": "date-time",
|
|
525
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
526
|
+
},
|
|
527
|
+
"dateOfReOpenRelevantRepresentationClose": {
|
|
528
|
+
"type": ["string", "null"],
|
|
529
|
+
"description": "Date at which relevant reps can no longer be reopened",
|
|
530
|
+
"format": "date-time",
|
|
531
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
532
|
+
},
|
|
533
|
+
"isMaterialChange": {
|
|
534
|
+
"type": ["boolean", "null"],
|
|
535
|
+
"description": "Is this an application for a material change?",
|
|
536
|
+
"examples": [true, false]
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "nsip-representation.schema.json",
|
|
4
|
+
"title": "Representation",
|
|
5
|
+
"description": "NSIP Representation schema",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": [
|
|
9
|
+
"representationId",
|
|
10
|
+
"referenceId",
|
|
11
|
+
"examinationLibraryRef",
|
|
12
|
+
"caseRef",
|
|
13
|
+
"caseId",
|
|
14
|
+
"status",
|
|
15
|
+
"originalRepresentation",
|
|
16
|
+
"redacted",
|
|
17
|
+
"redactedRepresentation",
|
|
18
|
+
"redactedBy",
|
|
19
|
+
"redactedNotes",
|
|
20
|
+
"representationFrom",
|
|
21
|
+
"representedId",
|
|
22
|
+
"representativeId",
|
|
23
|
+
"registerFor",
|
|
24
|
+
"representationType",
|
|
25
|
+
"dateReceived",
|
|
26
|
+
"attachmentIds"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"representationId": {
|
|
30
|
+
"type": "integer"
|
|
31
|
+
},
|
|
32
|
+
"referenceId": {
|
|
33
|
+
"examples": ["TR043003-000010"],
|
|
34
|
+
"type": ["string", "null"]
|
|
35
|
+
},
|
|
36
|
+
"examinationLibraryRef": {
|
|
37
|
+
"examples": ["RR-0001"],
|
|
38
|
+
"type": ["string", "null"]
|
|
39
|
+
},
|
|
40
|
+
"caseRef": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"caseId": {
|
|
44
|
+
"type": ["integer", "null"],
|
|
45
|
+
"examples": [1242],
|
|
46
|
+
"description": "The unique identifier within the Back Office. This is not the same as the case reference"
|
|
47
|
+
},
|
|
48
|
+
"status": {
|
|
49
|
+
"type": ["string", "null"],
|
|
50
|
+
"enum": ["awaiting_review", "referred", "valid", "invalid", "published", "archived", "draft", "withdrawn", null]
|
|
51
|
+
},
|
|
52
|
+
"originalRepresentation": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"redacted": {
|
|
56
|
+
"type": ["boolean", "null"]
|
|
57
|
+
},
|
|
58
|
+
"redactedRepresentation": {
|
|
59
|
+
"type": ["string", "null"]
|
|
60
|
+
},
|
|
61
|
+
"redactedBy": {
|
|
62
|
+
"type": ["string", "null"],
|
|
63
|
+
"examples": ["Joe Blogs"]
|
|
64
|
+
},
|
|
65
|
+
"redactedNotes": {
|
|
66
|
+
"type": ["string", "null"],
|
|
67
|
+
"examples": ["Removed names of family members"]
|
|
68
|
+
},
|
|
69
|
+
"representationFrom": {
|
|
70
|
+
"type": ["string", "null"],
|
|
71
|
+
"enum": ["PERSON", "ORGANISATION", "AGENT", null]
|
|
72
|
+
},
|
|
73
|
+
"representedId": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "ServiceUser Id of the person or organisation being represented"
|
|
76
|
+
},
|
|
77
|
+
"representativeId": {
|
|
78
|
+
"type": ["string", "null"],
|
|
79
|
+
"description": "ServiceUser Id of the person or organisation submitting representation in the case of Agent representationFrom"
|
|
80
|
+
},
|
|
81
|
+
"registerFor": {
|
|
82
|
+
"type": ["string", "null"],
|
|
83
|
+
"enum": ["PERSON", "ORGANISATION", "FAMILY_GROUP", null]
|
|
84
|
+
},
|
|
85
|
+
"representationType": {
|
|
86
|
+
"type": ["string", "null"],
|
|
87
|
+
"enum": [
|
|
88
|
+
"Local Authorities",
|
|
89
|
+
"Parish Councils",
|
|
90
|
+
"Members of the Public/Businesses",
|
|
91
|
+
"Public & Businesses",
|
|
92
|
+
"Statutory Consultees",
|
|
93
|
+
"Non-Statutory Organisations",
|
|
94
|
+
"Another Individual",
|
|
95
|
+
null
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"dateReceived": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"format": "date-time",
|
|
101
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
102
|
+
},
|
|
103
|
+
"attachmentIds": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"items": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|