@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,966 @@
1
+ ## NSIP Document Type
2
+
3
+ `object` ([NSIP Document](nsip-document.md))
4
+
5
+ # NSIP Document Properties
6
+
7
+ | Property | Type | Required | Nullable | Defined by |
8
+ | :------------------------------------------------ | :-------- | :------- | :------------- | :--------------------------------------------------------------------------------------------------------------------------------- |
9
+ | [documentId](#documentid) | `string` | Required | cannot be null | [NSIP Document](nsip-document-properties-documentid.md "nsip-document.schema.json#/properties/documentId") |
10
+ | [caseId](#caseid) | `integer` | Required | can be null | [NSIP Document](nsip-document-properties-caseid.md "nsip-document.schema.json#/properties/caseId") |
11
+ | [caseRef](#caseref) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-caseref.md "nsip-document.schema.json#/properties/caseRef") |
12
+ | [documentReference](#documentreference) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-documentreference.md "nsip-document.schema.json#/properties/documentReference") |
13
+ | [version](#version) | `integer` | Required | cannot be null | [NSIP Document](nsip-document-properties-version.md "nsip-document.schema.json#/properties/version") |
14
+ | [examinationRefNo](#examinationrefno) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-examinationrefno.md "nsip-document.schema.json#/properties/examinationRefNo") |
15
+ | [filename](#filename) | `string` | Required | cannot be null | [NSIP Document](nsip-document-properties-filename.md "nsip-document.schema.json#/properties/filename") |
16
+ | [originalFilename](#originalfilename) | `string` | Required | cannot be null | [NSIP Document](nsip-document-properties-originalfilename.md "nsip-document.schema.json#/properties/originalFilename") |
17
+ | [size](#size) | `integer` | Required | cannot be null | [NSIP Document](nsip-document-properties-size.md "nsip-document.schema.json#/properties/size") |
18
+ | [mime](#mime) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-mime.md "nsip-document.schema.json#/properties/mime") |
19
+ | [documentURI](#documenturi) | `string` | Required | cannot be null | [NSIP Document](nsip-document-properties-documenturi.md "nsip-document.schema.json#/properties/documentURI") |
20
+ | [publishedDocumentURI](#publisheddocumenturi) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-publisheddocumenturi.md "nsip-document.schema.json#/properties/publishedDocumentURI") |
21
+ | [path](#path) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-path.md "nsip-document.schema.json#/properties/path") |
22
+ | [virusCheckStatus](#viruscheckstatus) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-viruscheckstatus.md "nsip-document.schema.json#/properties/virusCheckStatus") |
23
+ | [fileMD5](#filemd5) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-filemd5.md "nsip-document.schema.json#/properties/fileMD5") |
24
+ | [dateCreated](#datecreated) | `string` | Required | cannot be null | [NSIP Document](nsip-document-properties-datecreated.md "nsip-document.schema.json#/properties/dateCreated") |
25
+ | [lastModified](#lastmodified) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-lastmodified.md "nsip-document.schema.json#/properties/lastModified") |
26
+ | [caseType](#casetype) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-casetype.md "nsip-document.schema.json#/properties/caseType") |
27
+ | [redactedStatus](#redactedstatus) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-redactedstatus.md "nsip-document.schema.json#/properties/redactedStatus") |
28
+ | [publishedStatus](#publishedstatus) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-publishedstatus.md "nsip-document.schema.json#/properties/publishedStatus") |
29
+ | [datePublished](#datepublished) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-datepublished.md "nsip-document.schema.json#/properties/datePublished") |
30
+ | [documentType](#documenttype) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-documenttype.md "nsip-document.schema.json#/properties/documentType") |
31
+ | [securityClassification](#securityclassification) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-securityclassification.md "nsip-document.schema.json#/properties/securityClassification") |
32
+ | [sourceSystem](#sourcesystem) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-sourcesystem.md "nsip-document.schema.json#/properties/sourceSystem") |
33
+ | [origin](#origin) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-origin.md "nsip-document.schema.json#/properties/origin") |
34
+ | [owner](#owner) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-owner.md "nsip-document.schema.json#/properties/owner") |
35
+ | [author](#author) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-author.md "nsip-document.schema.json#/properties/author") |
36
+ | [authorWelsh](#authorwelsh) | `string` | Optional | can be null | [NSIP Document](nsip-document-properties-authorwelsh.md "nsip-document.schema.json#/properties/authorWelsh") |
37
+ | [representative](#representative) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-representative.md "nsip-document.schema.json#/properties/representative") |
38
+ | [description](#description) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-description.md "nsip-document.schema.json#/properties/description") |
39
+ | [descriptionWelsh](#descriptionwelsh) | `string` | Optional | can be null | [NSIP Document](nsip-document-properties-descriptionwelsh.md "nsip-document.schema.json#/properties/descriptionWelsh") |
40
+ | [documentCaseStage](#documentcasestage) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-documentcasestage.md "nsip-document.schema.json#/properties/documentCaseStage") |
41
+ | [filter1](#filter1) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-filter1.md "nsip-document.schema.json#/properties/filter1") |
42
+ | [filter1Welsh](#filter1welsh) | `string` | Optional | can be null | [NSIP Document](nsip-document-properties-filter1welsh.md "nsip-document.schema.json#/properties/filter1Welsh") |
43
+ | [filter2](#filter2) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-filter2.md "nsip-document.schema.json#/properties/filter2") |
44
+ | [horizonFolderId](#horizonfolderid) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-horizonfolderid.md "nsip-document.schema.json#/properties/horizonFolderId") |
45
+ | [transcriptId](#transcriptid) | `string` | Required | can be null | [NSIP Document](nsip-document-properties-transcriptid.md "nsip-document.schema.json#/properties/transcriptId") |
46
+ | Additional Properties | Any | Optional | can be null | |
47
+
48
+ ## documentId
49
+
50
+ The unique identifier for the file. This will be different to documentReference
51
+
52
+ `documentId`
53
+
54
+ * is required
55
+
56
+ * Type: `string`
57
+
58
+ * cannot be null
59
+
60
+ * defined in: [NSIP Document](nsip-document-properties-documentid.md "nsip-document.schema.json#/properties/documentId")
61
+
62
+ ### documentId Type
63
+
64
+ `string`
65
+
66
+ ### documentId Examples
67
+
68
+ ```json
69
+ "01c958f2-4e9f-4ce2-adf9-81038702cafa"
70
+ ```
71
+
72
+ ## caseId
73
+
74
+ Internal case identifier
75
+
76
+ `caseId`
77
+
78
+ * is required
79
+
80
+ * Type: `integer`
81
+
82
+ * can be null
83
+
84
+ * defined in: [NSIP Document](nsip-document-properties-caseid.md "nsip-document.schema.json#/properties/caseId")
85
+
86
+ ### caseId Type
87
+
88
+ `integer`
89
+
90
+ ### caseId Examples
91
+
92
+ ```json
93
+ 1
94
+ ```
95
+
96
+ ## caseRef
97
+
98
+
99
+
100
+ `caseRef`
101
+
102
+ * is required
103
+
104
+ * Type: `string`
105
+
106
+ * can be null
107
+
108
+ * defined in: [NSIP Document](nsip-document-properties-caseref.md "nsip-document.schema.json#/properties/caseRef")
109
+
110
+ ### caseRef Type
111
+
112
+ `string`
113
+
114
+ ### caseRef Examples
115
+
116
+ ```json
117
+ "EN010120"
118
+ ```
119
+
120
+ ## documentReference
121
+
122
+ Reference used throughout ODT <CaseRef>-<SequenceNo>
123
+
124
+ `documentReference`
125
+
126
+ * is required
127
+
128
+ * Type: `string`
129
+
130
+ * can be null
131
+
132
+ * defined in: [NSIP Document](nsip-document-properties-documentreference.md "nsip-document.schema.json#/properties/documentReference")
133
+
134
+ ### documentReference Type
135
+
136
+ `string`
137
+
138
+ ### documentReference Examples
139
+
140
+ ```json
141
+ "WA0110015-000002"
142
+ ```
143
+
144
+ ## version
145
+
146
+
147
+
148
+ `version`
149
+
150
+ * is required
151
+
152
+ * Type: `integer`
153
+
154
+ * cannot be null
155
+
156
+ * defined in: [NSIP Document](nsip-document-properties-version.md "nsip-document.schema.json#/properties/version")
157
+
158
+ ### version Type
159
+
160
+ `integer`
161
+
162
+ ### version Examples
163
+
164
+ ```json
165
+ 1
166
+ ```
167
+
168
+ ## examinationRefNo
169
+
170
+
171
+
172
+ `examinationRefNo`
173
+
174
+ * is required
175
+
176
+ * Type: `string`
177
+
178
+ * can be null
179
+
180
+ * defined in: [NSIP Document](nsip-document-properties-examinationrefno.md "nsip-document.schema.json#/properties/examinationRefNo")
181
+
182
+ ### examinationRefNo Type
183
+
184
+ `string`
185
+
186
+ ### examinationRefNo Examples
187
+
188
+ ```json
189
+ "XXX-0000"
190
+ ```
191
+
192
+ ## filename
193
+
194
+ Current stored filename of the file
195
+
196
+ `filename`
197
+
198
+ * is required
199
+
200
+ * Type: `string`
201
+
202
+ * cannot be null
203
+
204
+ * defined in: [NSIP Document](nsip-document-properties-filename.md "nsip-document.schema.json#/properties/filename")
205
+
206
+ ### filename Type
207
+
208
+ `string`
209
+
210
+ ### filename Examples
211
+
212
+ ```json
213
+ "filename.pdf"
214
+ ```
215
+
216
+ ## originalFilename
217
+
218
+ Original filename of file
219
+
220
+ `originalFilename`
221
+
222
+ * is required
223
+
224
+ * Type: `string`
225
+
226
+ * cannot be null
227
+
228
+ * defined in: [NSIP Document](nsip-document-properties-originalfilename.md "nsip-document.schema.json#/properties/originalFilename")
229
+
230
+ ### originalFilename Type
231
+
232
+ `string`
233
+
234
+ ### originalFilename Examples
235
+
236
+ ```json
237
+ "original_filename.pdf"
238
+ ```
239
+
240
+ ## size
241
+
242
+
243
+
244
+ `size`
245
+
246
+ * is required
247
+
248
+ * Type: `integer`
249
+
250
+ * cannot be null
251
+
252
+ * defined in: [NSIP Document](nsip-document-properties-size.md "nsip-document.schema.json#/properties/size")
253
+
254
+ ### size Type
255
+
256
+ `integer`
257
+
258
+ ### size Examples
259
+
260
+ ```json
261
+ 23452
262
+ ```
263
+
264
+ ## mime
265
+
266
+
267
+
268
+ `mime`
269
+
270
+ * is required
271
+
272
+ * Type: `string`
273
+
274
+ * can be null
275
+
276
+ * defined in: [NSIP Document](nsip-document-properties-mime.md "nsip-document.schema.json#/properties/mime")
277
+
278
+ ### mime Type
279
+
280
+ `string`
281
+
282
+ ### mime Examples
283
+
284
+ ```json
285
+ "application/pdf"
286
+ ```
287
+
288
+ ## documentURI
289
+
290
+ The internal location of the document
291
+
292
+ `documentURI`
293
+
294
+ * is required
295
+
296
+ * Type: `string`
297
+
298
+ * cannot be null
299
+
300
+ * defined in: [NSIP Document](nsip-document-properties-documenturi.md "nsip-document.schema.json#/properties/documentURI")
301
+
302
+ ### documentURI Type
303
+
304
+ `string`
305
+
306
+ ### documentURI Examples
307
+
308
+ ```json
309
+ "https://pinsstdocsboprodukw001.blob.core.windows.net/document-service-uploads/application/BC0110001/01adeade-791a-483a-a51d-99df2122b5cc/1"
310
+ ```
311
+
312
+ ## publishedDocumentURI
313
+
314
+ The location of the published document. Only applicable to documents which are published.
315
+
316
+ `publishedDocumentURI`
317
+
318
+ * is required
319
+
320
+ * Type: `string`
321
+
322
+ * can be null
323
+
324
+ * defined in: [NSIP Document](nsip-document-properties-publisheddocumenturi.md "nsip-document.schema.json#/properties/publishedDocumentURI")
325
+
326
+ ### publishedDocumentURI Type
327
+
328
+ `string`
329
+
330
+ ### publishedDocumentURI Examples
331
+
332
+ ```json
333
+ "https://pinsstdocsboprodukw001.blob.core.windows.net/published-documents/BC0110003-001-olive-oil.pdf"
334
+ ```
335
+
336
+ ## path
337
+
338
+
339
+
340
+ `path`
341
+
342
+ * is required
343
+
344
+ * Type: `string`
345
+
346
+ * can be null
347
+
348
+ * defined in: [NSIP Document](nsip-document-properties-path.md "nsip-document.schema.json#/properties/path")
349
+
350
+ ### path Type
351
+
352
+ `string`
353
+
354
+ ### path Examples
355
+
356
+ ```json
357
+ "EN010011/2. Post-Submission/Application Documents/Application Form/Letter.PDF"
358
+ ```
359
+
360
+ ## virusCheckStatus
361
+
362
+
363
+
364
+ `virusCheckStatus`
365
+
366
+ * is required
367
+
368
+ * Type: `string`
369
+
370
+ * can be null
371
+
372
+ * defined in: [NSIP Document](nsip-document-properties-viruscheckstatus.md "nsip-document.schema.json#/properties/virusCheckStatus")
373
+
374
+ ### virusCheckStatus Type
375
+
376
+ `string`
377
+
378
+ ### virusCheckStatus Constraints
379
+
380
+ **enum**: the value of this property must be equal to one of the following values:
381
+
382
+ | Value | Explanation |
383
+ | :-------------- | :---------- |
384
+ | `"not_scanned"` | |
385
+ | `"scanned"` | |
386
+ | `"affected"` | |
387
+ | `null` | |
388
+
389
+ ## fileMD5
390
+
391
+
392
+
393
+ `fileMD5`
394
+
395
+ * is required
396
+
397
+ * Type: `string`
398
+
399
+ * can be null
400
+
401
+ * defined in: [NSIP Document](nsip-document-properties-filemd5.md "nsip-document.schema.json#/properties/fileMD5")
402
+
403
+ ### fileMD5 Type
404
+
405
+ `string`
406
+
407
+ ### fileMD5 Examples
408
+
409
+ ```json
410
+ "b1946ac92492d2347c6235b4d2611184"
411
+ ```
412
+
413
+ ## dateCreated
414
+
415
+
416
+
417
+ `dateCreated`
418
+
419
+ * is required
420
+
421
+ * Type: `string`
422
+
423
+ * cannot be null
424
+
425
+ * defined in: [NSIP Document](nsip-document-properties-datecreated.md "nsip-document.schema.json#/properties/dateCreated")
426
+
427
+ ### dateCreated Type
428
+
429
+ `string`
430
+
431
+ ### dateCreated Constraints
432
+
433
+ **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")
434
+
435
+ ### dateCreated Examples
436
+
437
+ ```json
438
+ "2023-07-27T20:30:00.000Z"
439
+ ```
440
+
441
+ ## lastModified
442
+
443
+
444
+
445
+ `lastModified`
446
+
447
+ * is required
448
+
449
+ * Type: `string`
450
+
451
+ * can be null
452
+
453
+ * defined in: [NSIP Document](nsip-document-properties-lastmodified.md "nsip-document.schema.json#/properties/lastModified")
454
+
455
+ ### lastModified Type
456
+
457
+ `string`
458
+
459
+ ### lastModified Constraints
460
+
461
+ **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")
462
+
463
+ ### lastModified Examples
464
+
465
+ ```json
466
+ "2023-07-27T20:30:00.000Z"
467
+ ```
468
+
469
+ ## caseType
470
+
471
+
472
+
473
+ `caseType`
474
+
475
+ * is required
476
+
477
+ * Type: `string`
478
+
479
+ * can be null
480
+
481
+ * defined in: [NSIP Document](nsip-document-properties-casetype.md "nsip-document.schema.json#/properties/caseType")
482
+
483
+ ### caseType Type
484
+
485
+ `string`
486
+
487
+ ### caseType Constraints
488
+
489
+ **enum**: the value of this property must be equal to one of the following values:
490
+
491
+ | Value | Explanation |
492
+ | :------- | :---------- |
493
+ | `"nsip"` | |
494
+ | `"has"` | |
495
+ | `null` | |
496
+
497
+ ## redactedStatus
498
+
499
+
500
+
501
+ `redactedStatus`
502
+
503
+ * is required
504
+
505
+ * Type: `string`
506
+
507
+ * can be null
508
+
509
+ * defined in: [NSIP Document](nsip-document-properties-redactedstatus.md "nsip-document.schema.json#/properties/redactedStatus")
510
+
511
+ ### redactedStatus Type
512
+
513
+ `string`
514
+
515
+ ### redactedStatus Constraints
516
+
517
+ **enum**: the value of this property must be equal to one of the following values:
518
+
519
+ | Value | Explanation |
520
+ | :--------------- | :---------- |
521
+ | `"not_redacted"` | |
522
+ | `"redacted"` | |
523
+ | `null` | |
524
+
525
+ ## publishedStatus
526
+
527
+
528
+
529
+ `publishedStatus`
530
+
531
+ * is required
532
+
533
+ * Type: `string`
534
+
535
+ * can be null
536
+
537
+ * defined in: [NSIP Document](nsip-document-properties-publishedstatus.md "nsip-document.schema.json#/properties/publishedStatus")
538
+
539
+ ### publishedStatus Type
540
+
541
+ `string`
542
+
543
+ ### publishedStatus Constraints
544
+
545
+ **enum**: the value of this property must be equal to one of the following values:
546
+
547
+ | Value | Explanation |
548
+ | :------------------- | :---------- |
549
+ | `"not_checked"` | |
550
+ | `"checked"` | |
551
+ | `"ready_to_publish"` | |
552
+ | `"do_not_publish"` | |
553
+ | `"publishing"` | |
554
+ | `"published"` | |
555
+ | `"archived"` | |
556
+ | `"unpublished"` | |
557
+ | `"unpublishing"` | |
558
+ | `"awaiting_upload"` | |
559
+ | `null` | |
560
+
561
+ ## datePublished
562
+
563
+
564
+
565
+ `datePublished`
566
+
567
+ * is required
568
+
569
+ * Type: `string`
570
+
571
+ * can be null
572
+
573
+ * defined in: [NSIP Document](nsip-document-properties-datepublished.md "nsip-document.schema.json#/properties/datePublished")
574
+
575
+ ### datePublished Type
576
+
577
+ `string`
578
+
579
+ ### datePublished Constraints
580
+
581
+ **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")
582
+
583
+ ### datePublished Examples
584
+
585
+ ```json
586
+ "2023-07-27T20:30:00.000Z"
587
+ ```
588
+
589
+ ## documentType
590
+
591
+
592
+
593
+ `documentType`
594
+
595
+ * is required
596
+
597
+ * Type: `string`
598
+
599
+ * can be null
600
+
601
+ * defined in: [NSIP Document](nsip-document-properties-documenttype.md "nsip-document.schema.json#/properties/documentType")
602
+
603
+ ### documentType Type
604
+
605
+ `string`
606
+
607
+ ### documentType Examples
608
+
609
+ ```json
610
+ "Rule 8 letter"
611
+ ```
612
+
613
+ ## securityClassification
614
+
615
+
616
+
617
+ `securityClassification`
618
+
619
+ * is required
620
+
621
+ * Type: `string`
622
+
623
+ * can be null
624
+
625
+ * defined in: [NSIP Document](nsip-document-properties-securityclassification.md "nsip-document.schema.json#/properties/securityClassification")
626
+
627
+ ### securityClassification Type
628
+
629
+ `string`
630
+
631
+ ### securityClassification Constraints
632
+
633
+ **enum**: the value of this property must be equal to one of the following values:
634
+
635
+ | Value | Explanation |
636
+ | :------------- | :---------- |
637
+ | `"public"` | |
638
+ | `"official"` | |
639
+ | `"secret"` | |
640
+ | `"top-secret"` | |
641
+ | `null` | |
642
+
643
+ ## sourceSystem
644
+
645
+
646
+
647
+ `sourceSystem`
648
+
649
+ * is required
650
+
651
+ * Type: `string`
652
+
653
+ * can be null
654
+
655
+ * defined in: [NSIP Document](nsip-document-properties-sourcesystem.md "nsip-document.schema.json#/properties/sourceSystem")
656
+
657
+ ### sourceSystem Type
658
+
659
+ `string`
660
+
661
+ ### sourceSystem Constraints
662
+
663
+ **enum**: the value of this property must be equal to one of the following values:
664
+
665
+ | Value | Explanation |
666
+ | :--------------------------- | :---------- |
667
+ | `"back-office-appeals"` | |
668
+ | `"back-office-applications"` | |
669
+ | `"horizon"` | |
670
+ | `"ni_file"` | |
671
+ | `"sharepoint"` | |
672
+ | `null` | |
673
+
674
+ ## origin
675
+
676
+
677
+
678
+ `origin`
679
+
680
+ * is required
681
+
682
+ * Type: `string`
683
+
684
+ * can be null
685
+
686
+ * defined in: [NSIP Document](nsip-document-properties-origin.md "nsip-document.schema.json#/properties/origin")
687
+
688
+ ### origin Type
689
+
690
+ `string`
691
+
692
+ ### origin Constraints
693
+
694
+ **enum**: the value of this property must be equal to one of the following values:
695
+
696
+ | Value | Explanation |
697
+ | :---------- | :---------- |
698
+ | `"pins"` | |
699
+ | `"citizen"` | |
700
+ | `"lpa"` | |
701
+ | `"ogd"` | |
702
+ | `null` | |
703
+
704
+ ## owner
705
+
706
+
707
+
708
+ `owner`
709
+
710
+ * is required
711
+
712
+ * Type: `string`
713
+
714
+ * can be null
715
+
716
+ * defined in: [NSIP Document](nsip-document-properties-owner.md "nsip-document.schema.json#/properties/owner")
717
+
718
+ ### owner Type
719
+
720
+ `string`
721
+
722
+ ## author
723
+
724
+ Name of person who authored document
725
+
726
+ `author`
727
+
728
+ * is required
729
+
730
+ * Type: `string`
731
+
732
+ * can be null
733
+
734
+ * defined in: [NSIP Document](nsip-document-properties-author.md "nsip-document.schema.json#/properties/author")
735
+
736
+ ### author Type
737
+
738
+ `string`
739
+
740
+ ## authorWelsh
741
+
742
+ Welsh name of person who authored document
743
+
744
+ `authorWelsh`
745
+
746
+ * is optional
747
+
748
+ * Type: `string`
749
+
750
+ * can be null
751
+
752
+ * defined in: [NSIP Document](nsip-document-properties-authorwelsh.md "nsip-document.schema.json#/properties/authorWelsh")
753
+
754
+ ### authorWelsh Type
755
+
756
+ `string`
757
+
758
+ ## representative
759
+
760
+ The on behalf of or agent submitter of document
761
+
762
+ `representative`
763
+
764
+ * is required
765
+
766
+ * Type: `string`
767
+
768
+ * can be null
769
+
770
+ * defined in: [NSIP Document](nsip-document-properties-representative.md "nsip-document.schema.json#/properties/representative")
771
+
772
+ ### representative Type
773
+
774
+ `string`
775
+
776
+ ### representative Examples
777
+
778
+ ```json
779
+ "ZZZ Agency"
780
+ ```
781
+
782
+ ## description
783
+
784
+
785
+
786
+ `description`
787
+
788
+ * is required
789
+
790
+ * Type: `string`
791
+
792
+ * can be null
793
+
794
+ * defined in: [NSIP Document](nsip-document-properties-description.md "nsip-document.schema.json#/properties/description")
795
+
796
+ ### description Type
797
+
798
+ `string`
799
+
800
+ ### description Examples
801
+
802
+ ```json
803
+ "Attachments to the letter to Department for Business, Energy & Industrial Strategy"
804
+ ```
805
+
806
+ ## descriptionWelsh
807
+
808
+
809
+
810
+ `descriptionWelsh`
811
+
812
+ * is optional
813
+
814
+ * Type: `string`
815
+
816
+ * can be null
817
+
818
+ * defined in: [NSIP Document](nsip-document-properties-descriptionwelsh.md "nsip-document.schema.json#/properties/descriptionWelsh")
819
+
820
+ ### descriptionWelsh Type
821
+
822
+ `string`
823
+
824
+ ## documentCaseStage
825
+
826
+
827
+
828
+ `documentCaseStage`
829
+
830
+ * is required
831
+
832
+ * Type: `string`
833
+
834
+ * can be null
835
+
836
+ * defined in: [NSIP Document](nsip-document-properties-documentcasestage.md "nsip-document.schema.json#/properties/documentCaseStage")
837
+
838
+ ### documentCaseStage Type
839
+
840
+ `string`
841
+
842
+ ### documentCaseStage Constraints
843
+
844
+ **enum**: the value of this property must be equal to one of the following values:
845
+
846
+ | Value | Explanation |
847
+ | :------------------------- | :---------- |
848
+ | `"draft"` | |
849
+ | `"pre-application"` | |
850
+ | `"acceptance"` | |
851
+ | `"pre-examination"` | |
852
+ | `"examination"` | |
853
+ | `"recommendation"` | |
854
+ | `"decision"` | |
855
+ | `"post_decision"` | |
856
+ | `"withdrawn"` | |
857
+ | `"developers_application"` | |
858
+ | `"correspondence"` | |
859
+ | `"0"` | |
860
+ | `null` | |
861
+
862
+ ## filter1
863
+
864
+ Filter field to provide additional filtering
865
+
866
+ `filter1`
867
+
868
+ * is required
869
+
870
+ * Type: `string`
871
+
872
+ * can be null
873
+
874
+ * defined in: [NSIP Document](nsip-document-properties-filter1.md "nsip-document.schema.json#/properties/filter1")
875
+
876
+ ### filter1 Type
877
+
878
+ `string`
879
+
880
+ ### filter1 Examples
881
+
882
+ ```json
883
+ "Deadline 2"
884
+ ```
885
+
886
+ ## filter1Welsh
887
+
888
+ Filter field in Welsh
889
+
890
+ `filter1Welsh`
891
+
892
+ * is optional
893
+
894
+ * Type: `string`
895
+
896
+ * can be null
897
+
898
+ * defined in: [NSIP Document](nsip-document-properties-filter1welsh.md "nsip-document.schema.json#/properties/filter1Welsh")
899
+
900
+ ### filter1Welsh Type
901
+
902
+ `string`
903
+
904
+ ## filter2
905
+
906
+ Filter field to provide additional filtering
907
+
908
+ `filter2`
909
+
910
+ * is required
911
+
912
+ * Type: `string`
913
+
914
+ * can be null
915
+
916
+ * defined in: [NSIP Document](nsip-document-properties-filter2.md "nsip-document.schema.json#/properties/filter2")
917
+
918
+ ### filter2 Type
919
+
920
+ `string`
921
+
922
+ ### filter2 Examples
923
+
924
+ ```json
925
+ "Scoping Option Report"
926
+ ```
927
+
928
+ ## horizonFolderId
929
+
930
+ The folder where the document exists
931
+
932
+ `horizonFolderId`
933
+
934
+ * is required
935
+
936
+ * Type: `string`
937
+
938
+ * can be null
939
+
940
+ * defined in: [NSIP Document](nsip-document-properties-horizonfolderid.md "nsip-document.schema.json#/properties/horizonFolderId")
941
+
942
+ ### horizonFolderId Type
943
+
944
+ `string`
945
+
946
+ ## transcriptId
947
+
948
+ The GUID of the transcript document (if one was provided).
949
+
950
+ `transcriptId`
951
+
952
+ * is required
953
+
954
+ * Type: `string`
955
+
956
+ * can be null
957
+
958
+ * defined in: [NSIP Document](nsip-document-properties-transcriptid.md "nsip-document.schema.json#/properties/transcriptId")
959
+
960
+ ### transcriptId Type
961
+
962
+ `string`
963
+
964
+ ## Additional Properties
965
+
966
+ Additional properties are allowed and do not have to follow a specific schema