@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.
Files changed (131) hide show
  1. package/.azure/ci.yml +60 -0
  2. package/.azure/release.yml +57 -0
  3. package/.github/dependabot.yml +11 -0
  4. package/.husky/install.mjs +7 -0
  5. package/.husky/pre-commit +1 -0
  6. package/.prettierignore +11 -0
  7. package/.prettierrc +19 -0
  8. package/LICENSE +21 -0
  9. package/README.md +237 -0
  10. package/commitlint.config.js +8 -0
  11. package/docs/README.md +85 -0
  12. package/docs/appeal-document.md +776 -0
  13. package/docs/appeal-event-estimate.md +108 -0
  14. package/docs/appeal-event.md +404 -0
  15. package/docs/appeal-has.md +1960 -0
  16. package/docs/appeal-representation.md +375 -0
  17. package/docs/appeal-s78.md +3607 -0
  18. package/docs/appeal.md +1879 -0
  19. package/docs/case-schedule.md +8 -0
  20. package/docs/dart-response.md +1413 -0
  21. package/docs/employee.md +70 -0
  22. package/docs/entraid.md +108 -0
  23. package/docs/folder.md +147 -0
  24. package/docs/gettimesheets-response.md +188 -0
  25. package/docs/interested-party.md +284 -0
  26. package/docs/listed-building.md +113 -0
  27. package/docs/listed-buildings.md +113 -0
  28. package/docs/nsip-document.md +966 -0
  29. package/docs/nsip-exam-timetable-defs-event.md +223 -0
  30. package/docs/nsip-exam-timetable-defs-line-item.md +51 -0
  31. package/docs/nsip-exam-timetable-defs.md +3 -0
  32. package/docs/nsip-exam-timetable-submission.md +113 -0
  33. package/docs/nsip-exam-timetable.md +352 -0
  34. package/docs/nsip-project-update.md +163 -0
  35. package/docs/nsip-project.md +2098 -0
  36. package/docs/nsip-representation-defs-attachment.md +133 -0
  37. package/docs/nsip-representation-defs.md +3 -0
  38. package/docs/nsip-representation.md +448 -0
  39. package/docs/nsip-subscription.md +193 -0
  40. package/docs/pins-inspector.md +184 -0
  41. package/docs/pins-lpa.md +260 -0
  42. package/docs/s51-advice.md +460 -0
  43. package/docs/service-user.md +575 -0
  44. package/eslint.config.js +21 -0
  45. package/jsconfig.json +12 -0
  46. package/package.json +55 -0
  47. package/pins_data_model/__init__.py +0 -0
  48. package/pins_data_model/gen_models.py +51 -0
  49. package/pins_data_model/load_schemas.py +51 -0
  50. package/pins_data_model/models/__init__.py +0 -0
  51. package/pins_data_model/models/model_appeal_document.py +294 -0
  52. package/pins_data_model/models/model_appeal_event.py +117 -0
  53. package/pins_data_model/models/model_appeal_event_estimate.py +37 -0
  54. package/pins_data_model/models/model_appeal_has.py +585 -0
  55. package/pins_data_model/models/model_appeal_representation.py +132 -0
  56. package/pins_data_model/models/model_appeal_s78.py +864 -0
  57. package/pins_data_model/models/model_case_schedule.py +11 -0
  58. package/pins_data_model/models/model_dart_response.py +292 -0
  59. package/pins_data_model/models/model_entraid.py +37 -0
  60. package/pins_data_model/models/model_folder.py +56 -0
  61. package/pins_data_model/models/model_gettimesheets_response.py +45 -0
  62. package/pins_data_model/models/model_listed_building.py +33 -0
  63. package/pins_data_model/models/model_listed_buildings.py +33 -0
  64. package/pins_data_model/models/model_nsip_document.py +199 -0
  65. package/pins_data_model/models/model_nsip_exam_timetable.py +90 -0
  66. package/pins_data_model/models/model_nsip_project.py +488 -0
  67. package/pins_data_model/models/model_nsip_project_update.py +60 -0
  68. package/pins_data_model/models/model_nsip_representation.py +83 -0
  69. package/pins_data_model/models/model_nsip_subscription.py +60 -0
  70. package/pins_data_model/models/model_pins_inspector.py +53 -0
  71. package/pins_data_model/models/model_pins_lpa.py +69 -0
  72. package/pins_data_model/models/model_s51_advice.py +109 -0
  73. package/pins_data_model/models/model_service_user.py +121 -0
  74. package/requirements.txt +2 -0
  75. package/schemas/__init__.py +0 -0
  76. package/schemas/appeal-document.schema.json +250 -0
  77. package/schemas/appeal-event-estimate.schema.json +31 -0
  78. package/schemas/appeal-event.schema.json +123 -0
  79. package/schemas/appeal-has.schema.json +576 -0
  80. package/schemas/appeal-representation.schema.json +131 -0
  81. package/schemas/appeal-s78.schema.json +1060 -0
  82. package/schemas/commands/__init__.py +0 -0
  83. package/schemas/commands/appeal-common-submission.schema.json +202 -0
  84. package/schemas/commands/appeal-has-submission.schema.json +82 -0
  85. package/schemas/commands/appeal-representation-submission.schema.json +192 -0
  86. package/schemas/commands/appeal-s78-submission.schema.json +100 -0
  87. package/schemas/commands/appellant-submission.schema.json +164 -0
  88. package/schemas/commands/interested-party.schema.json +80 -0
  89. package/schemas/commands/lpa-questionnaire-common.schema.json +110 -0
  90. package/schemas/commands/lpa-questionnaire-has.schema.json +69 -0
  91. package/schemas/commands/lpa-questionnaire-s78.schema.json +218 -0
  92. package/schemas/commands/lpa-questionnaire.schema.json +125 -0
  93. package/schemas/commands/new-deadline-submission.schema.json +59 -0
  94. package/schemas/commands/nsip-exam-timetable-submission.schema.json +27 -0
  95. package/schemas/commands/register-nsip-subscription.schema.json +32 -0
  96. package/schemas/commands/register-representation.schema.json +51 -0
  97. package/schemas/dart-response.schema.json +350 -0
  98. package/schemas/entraid.schema.json +31 -0
  99. package/schemas/folder.schema.json +49 -0
  100. package/schemas/gettimesheets-response.schema.json +46 -0
  101. package/schemas/listed-building.schema.json +31 -0
  102. package/schemas/listed-buildings.schema.json +31 -0
  103. package/schemas/nsip-document.schema.json +235 -0
  104. package/schemas/nsip-exam-timetable.schema.json +101 -0
  105. package/schemas/nsip-project-update.schema.json +49 -0
  106. package/schemas/nsip-project.schema.json +539 -0
  107. package/schemas/nsip-representation.schema.json +110 -0
  108. package/schemas/nsip-subscription.schema.json +52 -0
  109. package/schemas/pins-inspector.schema.json +47 -0
  110. package/schemas/pins-lpa.schema.json +63 -0
  111. package/schemas/s51-advice.schema.json +113 -0
  112. package/schemas/service-user.schema.json +152 -0
  113. package/setup.py +15 -0
  114. package/src/enums.cjs +632 -0
  115. package/src/enums.d.ts +573 -0
  116. package/src/enums.js +573 -0
  117. package/src/gen-docs.js +34 -0
  118. package/src/gen-enums.js +119 -0
  119. package/src/gen-types.js +70 -0
  120. package/src/index.cjs +746 -0
  121. package/src/index.d.ts +18 -0
  122. package/src/index.js +34 -0
  123. package/src/lib/load.js +78 -0
  124. package/src/schemas.d.ts +4570 -0
  125. package/tests/appeals/appeal-event.test.js +62 -0
  126. package/tests/appeals/commands/appeal-representation-submission.test.js +107 -0
  127. package/tests/appeals/commands/has-questionnaire.test.js +92 -0
  128. package/tests/appeals/commands/has-submission.test.js +113 -0
  129. package/tests/appeals/commands/s78-questionnaire.test.js +96 -0
  130. package/tests/appeals/commands/s78-submission.test.js +119 -0
  131. package/tests/schemas.test.js +97 -0
@@ -0,0 +1,776 @@
1
+ ## Appeal Document Type
2
+
3
+ `object` ([Appeal Document](appeal-document.md))
4
+
5
+ # Appeal Document Properties
6
+
7
+ | Property | Type | Required | Nullable | Defined by |
8
+ | :-------------------------------------------- | :-------- | :------- | :------------- | :----------------------------------------------------------------------------------------------------------------------------------- |
9
+ | [documentId](#documentid) | `string` | Required | cannot be null | [Appeal Document](appeal-document-properties-documentid.md "appeal-document.schema.json#/properties/documentId") |
10
+ | [caseId](#caseid) | `integer` | Required | can be null | [Appeal Document](appeal-document-properties-caseid.md "appeal-document.schema.json#/properties/caseId") |
11
+ | [caseReference](#casereference) | `string` | Required | cannot be null | [Appeal Document](appeal-document-properties-casereference.md "appeal-document.schema.json#/properties/caseReference") |
12
+ | [version](#version) | `integer` | Required | cannot be null | [Appeal Document](appeal-document-properties-version.md "appeal-document.schema.json#/properties/version") |
13
+ | [filename](#filename) | `string` | Required | cannot be null | [Appeal Document](appeal-document-properties-filename.md "appeal-document.schema.json#/properties/filename") |
14
+ | [originalFilename](#originalfilename) | `string` | Required | cannot be null | [Appeal Document](appeal-document-properties-originalfilename.md "appeal-document.schema.json#/properties/originalFilename") |
15
+ | [size](#size) | `integer` | Required | cannot be null | [Appeal Document](appeal-document-properties-size.md "appeal-document.schema.json#/properties/size") |
16
+ | [mime](#mime) | `string` | Required | cannot be null | [Appeal Document](appeal-document-properties-mime.md "appeal-document.schema.json#/properties/mime") |
17
+ | [documentURI](#documenturi) | `string` | Required | cannot be null | [Appeal Document](appeal-document-properties-documenturi.md "appeal-document.schema.json#/properties/documentURI") |
18
+ | [publishedDocumentURI](#publisheddocumenturi) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-publisheddocumenturi.md "appeal-document.schema.json#/properties/publishedDocumentURI") |
19
+ | [virusCheckStatus](#viruscheckstatus) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-viruscheckstatus.md "appeal-document.schema.json#/properties/virusCheckStatus") |
20
+ | [fileMD5](#filemd5) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-filemd5.md "appeal-document.schema.json#/properties/fileMD5") |
21
+ | [dateCreated](#datecreated) | `string` | Required | cannot be null | [Appeal Document](appeal-document-properties-datecreated.md "appeal-document.schema.json#/properties/dateCreated") |
22
+ | [dateReceived](#datereceived) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-datereceived.md "appeal-document.schema.json#/properties/dateReceived") |
23
+ | [datePublished](#datepublished) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-datepublished.md "appeal-document.schema.json#/properties/datePublished") |
24
+ | [lastModified](#lastmodified) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-lastmodified.md "appeal-document.schema.json#/properties/lastModified") |
25
+ | [caseType](#casetype) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-casetype.md "appeal-document.schema.json#/properties/caseType") |
26
+ | [redactedStatus](#redactedstatus) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-redactedstatus.md "appeal-document.schema.json#/properties/redactedStatus") |
27
+ | [documentType](#documenttype) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-documenttype.md "appeal-document.schema.json#/properties/documentType") |
28
+ | [sourceSystem](#sourcesystem) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-sourcesystem.md "appeal-document.schema.json#/properties/sourceSystem") |
29
+ | [origin](#origin) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-origin.md "appeal-document.schema.json#/properties/origin") |
30
+ | [owner](#owner) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-owner.md "appeal-document.schema.json#/properties/owner") |
31
+ | [author](#author) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-author.md "appeal-document.schema.json#/properties/author") |
32
+ | [description](#description) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-description.md "appeal-document.schema.json#/properties/description") |
33
+ | [caseStage](#casestage) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-casestage.md "appeal-document.schema.json#/properties/caseStage") |
34
+ | [horizonFolderId](#horizonfolderid) | `string` | Required | can be null | [Appeal Document](appeal-document-properties-horizonfolderid.md "appeal-document.schema.json#/properties/horizonFolderId") |
35
+ | Additional Properties | Any | Optional | can be null | |
36
+
37
+ ## documentId
38
+
39
+ The unique identifier for the document
40
+
41
+ `documentId`
42
+
43
+ * is required
44
+
45
+ * Type: `string`
46
+
47
+ * cannot be null
48
+
49
+ * defined in: [Appeal Document](appeal-document-properties-documentid.md "appeal-document.schema.json#/properties/documentId")
50
+
51
+ ### documentId Type
52
+
53
+ `string`
54
+
55
+ ### documentId Examples
56
+
57
+ ```json
58
+ "4547fec8-16b2-47bb-836d-4d0baac04079"
59
+ ```
60
+
61
+ ## caseId
62
+
63
+ Internal case identifier
64
+
65
+ `caseId`
66
+
67
+ * is required
68
+
69
+ * Type: `integer`
70
+
71
+ * can be null
72
+
73
+ * defined in: [Appeal Document](appeal-document-properties-caseid.md "appeal-document.schema.json#/properties/caseId")
74
+
75
+ ### caseId Type
76
+
77
+ `integer`
78
+
79
+ ### caseId Examples
80
+
81
+ ```json
82
+ 1200
83
+ ```
84
+
85
+ ## caseReference
86
+
87
+ External case identifier
88
+
89
+ `caseReference`
90
+
91
+ * is required
92
+
93
+ * Type: `string`
94
+
95
+ * cannot be null
96
+
97
+ * defined in: [Appeal Document](appeal-document-properties-casereference.md "appeal-document.schema.json#/properties/caseReference")
98
+
99
+ ### caseReference Type
100
+
101
+ `string`
102
+
103
+ ### caseReference Examples
104
+
105
+ ```json
106
+ "7002471"
107
+ ```
108
+
109
+ ## version
110
+
111
+ A document can have multiple versions, and this indicates the latest version
112
+
113
+ `version`
114
+
115
+ * is required
116
+
117
+ * Type: `integer`
118
+
119
+ * cannot be null
120
+
121
+ * defined in: [Appeal Document](appeal-document-properties-version.md "appeal-document.schema.json#/properties/version")
122
+
123
+ ### version Type
124
+
125
+ `integer`
126
+
127
+ ### version Examples
128
+
129
+ ```json
130
+ 1
131
+ ```
132
+
133
+ ## filename
134
+
135
+ Current stored name of the document
136
+
137
+ `filename`
138
+
139
+ * is required
140
+
141
+ * Type: `string`
142
+
143
+ * cannot be null
144
+
145
+ * defined in: [Appeal Document](appeal-document-properties-filename.md "appeal-document.schema.json#/properties/filename")
146
+
147
+ ### filename Type
148
+
149
+ `string`
150
+
151
+ ### filename Examples
152
+
153
+ ```json
154
+ "filename.pdf"
155
+ ```
156
+
157
+ ## originalFilename
158
+
159
+ Original name of document
160
+
161
+ `originalFilename`
162
+
163
+ * is required
164
+
165
+ * Type: `string`
166
+
167
+ * cannot be null
168
+
169
+ * defined in: [Appeal Document](appeal-document-properties-originalfilename.md "appeal-document.schema.json#/properties/originalFilename")
170
+
171
+ ### originalFilename Type
172
+
173
+ `string`
174
+
175
+ ### originalFilename Examples
176
+
177
+ ```json
178
+ "original_filename.pdf"
179
+ ```
180
+
181
+ ## size
182
+
183
+ The file size, in bytes
184
+
185
+ `size`
186
+
187
+ * is required
188
+
189
+ * Type: `integer`
190
+
191
+ * cannot be null
192
+
193
+ * defined in: [Appeal Document](appeal-document-properties-size.md "appeal-document.schema.json#/properties/size")
194
+
195
+ ### size Type
196
+
197
+ `integer`
198
+
199
+ ### size Examples
200
+
201
+ ```json
202
+ 23452
203
+ ```
204
+
205
+ ## mime
206
+
207
+ The mime type for the current version of the file
208
+
209
+ `mime`
210
+
211
+ * is required
212
+
213
+ * Type: `string`
214
+
215
+ * cannot be null
216
+
217
+ * defined in: [Appeal Document](appeal-document-properties-mime.md "appeal-document.schema.json#/properties/mime")
218
+
219
+ ### mime Type
220
+
221
+ `string`
222
+
223
+ ### mime Examples
224
+
225
+ ```json
226
+ "application/pdf"
227
+ ```
228
+
229
+ ## documentURI
230
+
231
+ The internal location of the document
232
+
233
+ > This property contains blob storage info (domain, container), caseReference, version and filename
234
+
235
+ `documentURI`
236
+
237
+ * is required
238
+
239
+ * Type: `string`
240
+
241
+ * cannot be null
242
+
243
+ * defined in: [Appeal Document](appeal-document-properties-documenturi.md "appeal-document.schema.json#/properties/documentURI")
244
+
245
+ ### documentURI Type
246
+
247
+ `string`
248
+
249
+ ### documentURI Examples
250
+
251
+ ```json
252
+ "https://custom-domain.gov.uk/container-name/appeal/7002471/4547fec8-16b2-47bb-836d-4d0baac04079/v1/filename.pdf"
253
+ ```
254
+
255
+ ## publishedDocumentURI
256
+
257
+ The location of the published document, will be null if the datePublished is not set
258
+
259
+ `publishedDocumentURI`
260
+
261
+ * is required
262
+
263
+ * Type: `string`
264
+
265
+ * can be null
266
+
267
+ * defined in: [Appeal Document](appeal-document-properties-publisheddocumenturi.md "appeal-document.schema.json#/properties/publishedDocumentURI")
268
+
269
+ ### publishedDocumentURI Type
270
+
271
+ `string`
272
+
273
+ ### publishedDocumentURI Examples
274
+
275
+ ```json
276
+ "https://custom-domain.gov.uk/container-name/appeal/7002471/4547fec8-16b2-47bb-836d-4d0baac04079/v1/filename.pdf"
277
+ ```
278
+
279
+ ## virusCheckStatus
280
+
281
+ Indicates the virus check status for the current document
282
+
283
+ `virusCheckStatus`
284
+
285
+ * is required
286
+
287
+ * Type: `string`
288
+
289
+ * can be null
290
+
291
+ * defined in: [Appeal Document](appeal-document-properties-viruscheckstatus.md "appeal-document.schema.json#/properties/virusCheckStatus")
292
+
293
+ ### virusCheckStatus Type
294
+
295
+ `string`
296
+
297
+ ### virusCheckStatus Constraints
298
+
299
+ **enum**: the value of this property must be equal to one of the following values:
300
+
301
+ | Value | Explanation |
302
+ | :-------------- | :---------- |
303
+ | `"not_scanned"` | |
304
+ | `"scanned"` | |
305
+ | `"affected"` | |
306
+ | `null` | |
307
+
308
+ ## fileMD5
309
+
310
+ A MD5 hash to check the validity of the file
311
+
312
+ `fileMD5`
313
+
314
+ * is required
315
+
316
+ * Type: `string`
317
+
318
+ * can be null
319
+
320
+ * defined in: [Appeal Document](appeal-document-properties-filemd5.md "appeal-document.schema.json#/properties/fileMD5")
321
+
322
+ ### fileMD5 Type
323
+
324
+ `string`
325
+
326
+ ### fileMD5 Examples
327
+
328
+ ```json
329
+ "b1946ac92492d2347c6235b4d2611184"
330
+ ```
331
+
332
+ ## dateCreated
333
+
334
+ The creation date for the document
335
+
336
+ `dateCreated`
337
+
338
+ * is required
339
+
340
+ * Type: `string`
341
+
342
+ * cannot be null
343
+
344
+ * defined in: [Appeal Document](appeal-document-properties-datecreated.md "appeal-document.schema.json#/properties/dateCreated")
345
+
346
+ ### dateCreated Type
347
+
348
+ `string`
349
+
350
+ ### dateCreated Constraints
351
+
352
+ **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")
353
+
354
+ ### dateCreated Examples
355
+
356
+ ```json
357
+ "2023-07-27T20:30:00.000Z"
358
+ ```
359
+
360
+ ## dateReceived
361
+
362
+ The date the document was received
363
+
364
+ > This is a manually entered date to indicate documents exchanged manually
365
+
366
+ `dateReceived`
367
+
368
+ * is required
369
+
370
+ * Type: `string`
371
+
372
+ * can be null
373
+
374
+ * defined in: [Appeal Document](appeal-document-properties-datereceived.md "appeal-document.schema.json#/properties/dateReceived")
375
+
376
+ ### dateReceived Type
377
+
378
+ `string`
379
+
380
+ ### dateReceived Constraints
381
+
382
+ **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")
383
+
384
+ ### dateReceived Examples
385
+
386
+ ```json
387
+ "2023-07-27T20:30:00.000Z"
388
+ ```
389
+
390
+ ## datePublished
391
+
392
+ The date the document was published
393
+
394
+ `datePublished`
395
+
396
+ * is required
397
+
398
+ * Type: `string`
399
+
400
+ * can be null
401
+
402
+ * defined in: [Appeal Document](appeal-document-properties-datepublished.md "appeal-document.schema.json#/properties/datePublished")
403
+
404
+ ### datePublished Type
405
+
406
+ `string`
407
+
408
+ ### datePublished Constraints
409
+
410
+ **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")
411
+
412
+ ### datePublished Examples
413
+
414
+ ```json
415
+ "2023-07-27T20:30:00.000Z"
416
+ ```
417
+
418
+ ## lastModified
419
+
420
+ The last update date for the document
421
+
422
+ `lastModified`
423
+
424
+ * is required
425
+
426
+ * Type: `string`
427
+
428
+ * can be null
429
+
430
+ * defined in: [Appeal Document](appeal-document-properties-lastmodified.md "appeal-document.schema.json#/properties/lastModified")
431
+
432
+ ### lastModified Type
433
+
434
+ `string`
435
+
436
+ ### lastModified Constraints
437
+
438
+ **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")
439
+
440
+ ### lastModified Examples
441
+
442
+ ```json
443
+ "2023-07-27T20:30:00.000Z"
444
+ ```
445
+
446
+ ## caseType
447
+
448
+ The internal code for an appeal type, e.g. Householder (D)
449
+
450
+ `caseType`
451
+
452
+ * is required
453
+
454
+ * Type: `string`
455
+
456
+ * can be null
457
+
458
+ * defined in: [Appeal Document](appeal-document-properties-casetype.md "appeal-document.schema.json#/properties/caseType")
459
+
460
+ ### caseType Type
461
+
462
+ `string`
463
+
464
+ ### caseType Constraints
465
+
466
+ **enum**: the value of this property must be equal to one of the following values:
467
+
468
+ | Value | Explanation |
469
+ | :----- | :---------- |
470
+ | `"C"` | |
471
+ | `"D"` | |
472
+ | `"F"` | |
473
+ | `"G"` | |
474
+ | `"H"` | |
475
+ | `"L"` | |
476
+ | `"Q"` | |
477
+ | `"S"` | |
478
+ | `"V"` | |
479
+ | `"W"` | |
480
+ | `"X"` | |
481
+ | `"Y"` | |
482
+ | `"Z"` | |
483
+ | `"ZA"` | |
484
+ | `"ZP"` | |
485
+ | `null` | |
486
+
487
+ ## redactedStatus
488
+
489
+ Indicates the redaction status for the document
490
+
491
+ `redactedStatus`
492
+
493
+ * is required
494
+
495
+ * Type: `string`
496
+
497
+ * can be null
498
+
499
+ * defined in: [Appeal Document](appeal-document-properties-redactedstatus.md "appeal-document.schema.json#/properties/redactedStatus")
500
+
501
+ ### redactedStatus Type
502
+
503
+ `string`
504
+
505
+ ### redactedStatus Constraints
506
+
507
+ **enum**: the value of this property must be equal to one of the following values:
508
+
509
+ | Value | Explanation |
510
+ | :------------------------ | :---------- |
511
+ | `"not_redacted"` | |
512
+ | `"redacted"` | |
513
+ | `"no_redaction_required"` | |
514
+ | `null` | |
515
+
516
+ ## documentType
517
+
518
+ The type of document, used for exchange, migrations and consumption from the appeal back-office system
519
+
520
+ `documentType`
521
+
522
+ * is required
523
+
524
+ * Type: `string`
525
+
526
+ * can be null
527
+
528
+ * defined in: [Appeal Document](appeal-document-properties-documenttype.md "appeal-document.schema.json#/properties/documentType")
529
+
530
+ ### documentType Type
531
+
532
+ `string`
533
+
534
+ ### documentType Constraints
535
+
536
+ **enum**: the value of this property must be equal to one of the following values:
537
+
538
+ | Value | Explanation |
539
+ | :-------------------------------- | :---------- |
540
+ | `"appellantCaseCorrespondence"` | |
541
+ | `"appellantCaseWithdrawalLetter"` | |
542
+ | `"appellantCostsApplication"` | |
543
+ | `"appellantCostsCorrespondence"` | |
544
+ | `"appellantCostsWithdrawal"` | |
545
+ | `"appellantStatement"` | |
546
+ | `"applicationDecisionLetter"` | |
547
+ | `"changedDescription"` | |
548
+ | `"originalApplicationForm"` | |
549
+ | `"whoNotified"` | |
550
+ | `"whoNotifiedSiteNotice"` | |
551
+ | `"whoNotifiedLetterToNeighbours"` | |
552
+ | `"whoNotifiedPressAdvert"` | |
553
+ | `"conservationMap"` | |
554
+ | `"lpaCaseCorrespondence"` | |
555
+ | `"lpaCostsApplication"` | |
556
+ | `"lpaCostsCorrespondence"` | |
557
+ | `"lpaCostsWithdrawal"` | |
558
+ | `"otherPartyRepresentations"` | |
559
+ | `"planningOfficerReport"` | |
560
+ | `"appellantCostsDecisionLetter"` | |
561
+ | `"lpaCostsDecisionLetter"` | |
562
+ | `"caseDecisionLetter"` | |
563
+ | `"crossTeamCorrespondence"` | |
564
+ | `"inspectorCorrespondence"` | |
565
+ | `"mainPartyCorrespondence"` | |
566
+ | `"uncategorised"` | |
567
+ | `"designAccessStatement"` | |
568
+ | `"plansDrawings"` | |
569
+ | `"newPlansDrawings"` | |
570
+ | `"planningObligation"` | |
571
+ | `"ownershipCertificate"` | |
572
+ | `"otherNewDocuments"` | |
573
+ | `"statementCommonGround"` | |
574
+ | `"communityInfrastructureLevy"` | |
575
+ | `"supplementaryPlanning"` | |
576
+ | `"otherRelevantPolicies"` | |
577
+ | `"emergingPlan"` | |
578
+ | `"developmentPlanPolicies"` | |
579
+ | `"consultationResponses"` | |
580
+ | `"eiaEnvironmentalStatement"` | |
581
+ | `"eiaScreeningDirection"` | |
582
+ | `"eiaScreeningOpinion"` | |
583
+ | `"eiaScopingOpinion"` | |
584
+ | `"definitiveMapStatement"` | |
585
+ | `"treePreservationPlan"` | |
586
+ | `"interestedPartyComment"` | |
587
+ | `"lpaStatement"` | |
588
+ | `"rule6Statement"` | |
589
+ | `"appellantFinalComment"` | |
590
+ | `"lpaFinalComment"` | |
591
+ | `"appellantProofOfEvidence"` | |
592
+ | `"appellantWitnessesEvidence"` | |
593
+ | `"lpaProofOfEvidence"` | |
594
+ | `"lpaWitnessesEvidence"` | |
595
+ | `"rule6ProofOfEvidence"` | |
596
+ | `"rule6WitnessesEvidence"` | |
597
+ | `"environmentalAssessment"` | |
598
+ | `"appealNotification"` | |
599
+ | `"historicEnglandConsultation"` | |
600
+ | `null` | |
601
+
602
+ ## sourceSystem
603
+
604
+ The system mastering the metadata for the current document
605
+
606
+ `sourceSystem`
607
+
608
+ * is required
609
+
610
+ * Type: `string`
611
+
612
+ * can be null
613
+
614
+ * defined in: [Appeal Document](appeal-document-properties-sourcesystem.md "appeal-document.schema.json#/properties/sourceSystem")
615
+
616
+ ### sourceSystem Type
617
+
618
+ `string`
619
+
620
+ ### sourceSystem Constraints
621
+
622
+ **enum**: the value of this property must be equal to one of the following values:
623
+
624
+ | Value | Explanation |
625
+ | :---------------------- | :---------- |
626
+ | `"back-office-appeals"` | |
627
+ | `"horizon"` | |
628
+ | `"acp"` | |
629
+ | `"sharepoint"` | |
630
+ | `null` | |
631
+
632
+ ## origin
633
+
634
+ Indicates where the documents originates from
635
+
636
+ `origin`
637
+
638
+ * is required
639
+
640
+ * Type: `string`
641
+
642
+ * can be null
643
+
644
+ * defined in: [Appeal Document](appeal-document-properties-origin.md "appeal-document.schema.json#/properties/origin")
645
+
646
+ ### origin Type
647
+
648
+ `string`
649
+
650
+ ### origin Constraints
651
+
652
+ **enum**: the value of this property must be equal to one of the following values:
653
+
654
+ | Value | Explanation |
655
+ | :---------- | :---------- |
656
+ | `"pins"` | |
657
+ | `"citizen"` | |
658
+ | `"lpa"` | |
659
+ | `"ogd"` | |
660
+ | `null` | |
661
+
662
+ ## owner
663
+
664
+ Owner of the current document
665
+
666
+ `owner`
667
+
668
+ * is required
669
+
670
+ * Type: `string`
671
+
672
+ * can be null
673
+
674
+ * defined in: [Appeal Document](appeal-document-properties-owner.md "appeal-document.schema.json#/properties/owner")
675
+
676
+ ### owner Type
677
+
678
+ `string`
679
+
680
+ ## author
681
+
682
+ Name of person who authored document
683
+
684
+ `author`
685
+
686
+ * is required
687
+
688
+ * Type: `string`
689
+
690
+ * can be null
691
+
692
+ * defined in: [Appeal Document](appeal-document-properties-author.md "appeal-document.schema.json#/properties/author")
693
+
694
+ ### author Type
695
+
696
+ `string`
697
+
698
+ ## description
699
+
700
+ A custom description for the document
701
+
702
+ `description`
703
+
704
+ * is required
705
+
706
+ * Type: `string`
707
+
708
+ * can be null
709
+
710
+ * defined in: [Appeal Document](appeal-document-properties-description.md "appeal-document.schema.json#/properties/description")
711
+
712
+ ### description Type
713
+
714
+ `string`
715
+
716
+ ## caseStage
717
+
718
+ The stage in the appeal process that has created the document
719
+
720
+ > This could be useful to reduce the number of document types, allowing the same type to be reused across stages
721
+
722
+ `caseStage`
723
+
724
+ * is required
725
+
726
+ * Type: `string`
727
+
728
+ * can be null
729
+
730
+ * defined in: [Appeal Document](appeal-document-properties-casestage.md "appeal-document.schema.json#/properties/caseStage")
731
+
732
+ ### caseStage Type
733
+
734
+ `string`
735
+
736
+ ### caseStage Constraints
737
+
738
+ **enum**: the value of this property must be equal to one of the following values:
739
+
740
+ | Value | Explanation |
741
+ | :----------------------- | :---------- |
742
+ | `"appellant-case"` | |
743
+ | `"lpa-questionnaire"` | |
744
+ | `"statements"` | |
745
+ | `"third-party-comments"` | |
746
+ | `"evidence"` | |
747
+ | `"witnesses"` | |
748
+ | `"final-comments"` | |
749
+ | `"appeal-decision"` | |
750
+ | `"costs"` | |
751
+ | `"internal"` | |
752
+ | `null` | |
753
+
754
+ ## horizonFolderId
755
+
756
+ The folder ID containing the document in Horizon
757
+
758
+ > Used for legacy / migrations
759
+
760
+ `horizonFolderId`
761
+
762
+ * is required
763
+
764
+ * Type: `string`
765
+
766
+ * can be null
767
+
768
+ * defined in: [Appeal Document](appeal-document-properties-horizonfolderid.md "appeal-document.schema.json#/properties/horizonFolderId")
769
+
770
+ ### horizonFolderId Type
771
+
772
+ `string`
773
+
774
+ ## Additional Properties
775
+
776
+ Additional properties are allowed and do not have to follow a specific schema