@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,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "folder.schema.json",
|
|
4
|
+
"title": "Folder",
|
|
5
|
+
"description": "Folders can have optional parents. All folders belong to a Case.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": ["id", "caseReference", "displayNameEnglish", "displayNameWelsh", "parentFolderId", "caseStage"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"id": {
|
|
11
|
+
"type": "integer",
|
|
12
|
+
"description": "The unique identifier within the Back Office."
|
|
13
|
+
},
|
|
14
|
+
"caseReference": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "The case reference this folder belongs to."
|
|
17
|
+
},
|
|
18
|
+
"displayNameEnglish": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Folder display name in English."
|
|
21
|
+
},
|
|
22
|
+
"displayNameWelsh": {
|
|
23
|
+
"type": ["string", "null"],
|
|
24
|
+
"description": "Folder display name in Welsh."
|
|
25
|
+
},
|
|
26
|
+
"parentFolderId": {
|
|
27
|
+
"type": ["integer", "null"],
|
|
28
|
+
"description": "Optional parent folder ID."
|
|
29
|
+
},
|
|
30
|
+
"caseStage": {
|
|
31
|
+
"type": ["string", "null"],
|
|
32
|
+
"enum": [
|
|
33
|
+
"draft",
|
|
34
|
+
"pre-application",
|
|
35
|
+
"acceptance",
|
|
36
|
+
"pre-examination",
|
|
37
|
+
"examination",
|
|
38
|
+
"recommendation",
|
|
39
|
+
"decision",
|
|
40
|
+
"post_decision",
|
|
41
|
+
"withdrawn",
|
|
42
|
+
"developers_application",
|
|
43
|
+
"correspondence",
|
|
44
|
+
"0",
|
|
45
|
+
null
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "gettimesheets-response.schema.json",
|
|
4
|
+
"title": "Get Timesheets API response",
|
|
5
|
+
"description": "Schema defining the data returned by the DaRT API",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": ["caseReference", "applicationReference"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"caseReference": {
|
|
11
|
+
"type": "integer",
|
|
12
|
+
"examples": ["6002744"],
|
|
13
|
+
"description": "External case identifier"
|
|
14
|
+
},
|
|
15
|
+
"applicationReference": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"examples": ["12345"],
|
|
18
|
+
"description": "The unique identifier of the application"
|
|
19
|
+
},
|
|
20
|
+
"siteAddressLine1": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"examples": ["21 The Pavement"],
|
|
23
|
+
"description": "First line of case site address"
|
|
24
|
+
},
|
|
25
|
+
"siteAddressLine2": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"examples": ["Shotesham Road"],
|
|
28
|
+
"description": "Second line of case site address"
|
|
29
|
+
},
|
|
30
|
+
"siteAddressTown": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"examples": ["Bristol"],
|
|
33
|
+
"description": "Town / City of the site address"
|
|
34
|
+
},
|
|
35
|
+
"siteAddressCounty": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"examples": ["Wandsworth"],
|
|
38
|
+
"description": "County of the site address"
|
|
39
|
+
},
|
|
40
|
+
"siteAddressPostcode": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"examples": ["SW4 0HY"],
|
|
43
|
+
"description": "Postal code of the site address"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "listed-building.schema.json",
|
|
4
|
+
"title": "Listed Building",
|
|
5
|
+
"description": "Delta of listed building data pushed by the ODW. Primary use case is to support Appeals UI",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": ["entity", "reference", "name", "listedBuildingGrade"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"entity": {
|
|
11
|
+
"type": "integer",
|
|
12
|
+
"description": "A unique identifier for the listed building.",
|
|
13
|
+
"examples": ["31717222"]
|
|
14
|
+
},
|
|
15
|
+
"reference": {
|
|
16
|
+
"type": ["string"],
|
|
17
|
+
"description": "Reference number for the listed buildign",
|
|
18
|
+
"examples": ["1260842"]
|
|
19
|
+
},
|
|
20
|
+
"name": {
|
|
21
|
+
"type": ["string"],
|
|
22
|
+
"description": "Name of listed building",
|
|
23
|
+
"examples": ["41A, NEWBIGGIN"]
|
|
24
|
+
},
|
|
25
|
+
"listedBuildingGrade": {
|
|
26
|
+
"type": ["string"],
|
|
27
|
+
"description": "Grade assigned to the listing.",
|
|
28
|
+
"examples": ["II"]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "listed-buildings.schema.json",
|
|
4
|
+
"title": "Listed Buildings",
|
|
5
|
+
"description": "Temporary copy of listed-building to ensure compatibility until ODW is updated",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": ["entity", "reference", "name", "listedBuildingGrade"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"entity": {
|
|
11
|
+
"type": "integer",
|
|
12
|
+
"description": "A unique identifier for the listed building.",
|
|
13
|
+
"examples": ["31717222"]
|
|
14
|
+
},
|
|
15
|
+
"reference": {
|
|
16
|
+
"type": ["string"],
|
|
17
|
+
"description": "Reference number for the listed buildign",
|
|
18
|
+
"examples": ["1260842"]
|
|
19
|
+
},
|
|
20
|
+
"name": {
|
|
21
|
+
"type": ["string"],
|
|
22
|
+
"description": "Name of listed building",
|
|
23
|
+
"examples": ["41A, NEWBIGGIN"]
|
|
24
|
+
},
|
|
25
|
+
"listedBuildingGrade": {
|
|
26
|
+
"type": ["string"],
|
|
27
|
+
"description": "Grade assigned to the listing.",
|
|
28
|
+
"examples": ["II"]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "nsip-document.schema.json",
|
|
4
|
+
"title": "NSIP Document",
|
|
5
|
+
"description": "NSIP document schema",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": [
|
|
9
|
+
"documentId",
|
|
10
|
+
"caseId",
|
|
11
|
+
"caseRef",
|
|
12
|
+
"documentReference",
|
|
13
|
+
"version",
|
|
14
|
+
"examinationRefNo",
|
|
15
|
+
"filename",
|
|
16
|
+
"originalFilename",
|
|
17
|
+
"size",
|
|
18
|
+
"mime",
|
|
19
|
+
"documentURI",
|
|
20
|
+
"publishedDocumentURI",
|
|
21
|
+
"path",
|
|
22
|
+
"virusCheckStatus",
|
|
23
|
+
"fileMD5",
|
|
24
|
+
"dateCreated",
|
|
25
|
+
"lastModified",
|
|
26
|
+
"caseType",
|
|
27
|
+
"redactedStatus",
|
|
28
|
+
"publishedStatus",
|
|
29
|
+
"datePublished",
|
|
30
|
+
"documentType",
|
|
31
|
+
"securityClassification",
|
|
32
|
+
"sourceSystem",
|
|
33
|
+
"origin",
|
|
34
|
+
"owner",
|
|
35
|
+
"author",
|
|
36
|
+
"representative",
|
|
37
|
+
"description",
|
|
38
|
+
"documentCaseStage",
|
|
39
|
+
"filter1",
|
|
40
|
+
"filter2",
|
|
41
|
+
"horizonFolderId",
|
|
42
|
+
"transcriptId"
|
|
43
|
+
],
|
|
44
|
+
"properties": {
|
|
45
|
+
"documentId": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"examples": ["01c958f2-4e9f-4ce2-adf9-81038702cafa"],
|
|
48
|
+
"description": "The unique identifier for the file. This will be different to documentReference"
|
|
49
|
+
},
|
|
50
|
+
"caseId": {
|
|
51
|
+
"type": ["integer", "null"],
|
|
52
|
+
"examples": [1],
|
|
53
|
+
"description": "Internal case identifier"
|
|
54
|
+
},
|
|
55
|
+
"caseRef": {
|
|
56
|
+
"type": ["string", "null"],
|
|
57
|
+
"examples": ["EN010120"]
|
|
58
|
+
},
|
|
59
|
+
"documentReference": {
|
|
60
|
+
"type": ["string", "null"],
|
|
61
|
+
"examples": ["WA0110015-000002"],
|
|
62
|
+
"description": "Reference used throughout ODT <CaseRef>-<SequenceNo>"
|
|
63
|
+
},
|
|
64
|
+
"version": {
|
|
65
|
+
"type": "integer",
|
|
66
|
+
"examples": [1]
|
|
67
|
+
},
|
|
68
|
+
"examinationRefNo": {
|
|
69
|
+
"type": ["string", "null"],
|
|
70
|
+
"examples": ["XXX-0000"]
|
|
71
|
+
},
|
|
72
|
+
"filename": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"examples": ["filename.pdf"],
|
|
75
|
+
"description": "Current stored filename of the file"
|
|
76
|
+
},
|
|
77
|
+
"originalFilename": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"examples": ["original_filename.pdf"],
|
|
80
|
+
"description": "Original filename of file"
|
|
81
|
+
},
|
|
82
|
+
"size": {
|
|
83
|
+
"type": "integer",
|
|
84
|
+
"examples": [23452]
|
|
85
|
+
},
|
|
86
|
+
"mime": {
|
|
87
|
+
"type": ["string", "null"],
|
|
88
|
+
"examples": ["application/pdf"]
|
|
89
|
+
},
|
|
90
|
+
"documentURI": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"examples": [
|
|
93
|
+
"https://pinsstdocsboprodukw001.blob.core.windows.net/document-service-uploads/application/BC0110001/01adeade-791a-483a-a51d-99df2122b5cc/1"
|
|
94
|
+
],
|
|
95
|
+
"description": "The internal location of the document"
|
|
96
|
+
},
|
|
97
|
+
"publishedDocumentURI": {
|
|
98
|
+
"type": ["string", "null"],
|
|
99
|
+
"examples": [
|
|
100
|
+
"https://pinsstdocsboprodukw001.blob.core.windows.net/published-documents/BC0110003-001-olive-oil.pdf"
|
|
101
|
+
],
|
|
102
|
+
"description": "The location of the published document. Only applicable to documents which are published."
|
|
103
|
+
},
|
|
104
|
+
"path": {
|
|
105
|
+
"type": ["string", "null"],
|
|
106
|
+
"examples": ["EN010011/2. Post-Submission/Application Documents/Application Form/Letter.PDF"]
|
|
107
|
+
},
|
|
108
|
+
"virusCheckStatus": {
|
|
109
|
+
"type": ["string", "null"],
|
|
110
|
+
"enum": ["not_scanned", "scanned", "affected", null]
|
|
111
|
+
},
|
|
112
|
+
"fileMD5": {
|
|
113
|
+
"type": ["string", "null"],
|
|
114
|
+
"examples": ["b1946ac92492d2347c6235b4d2611184"]
|
|
115
|
+
},
|
|
116
|
+
"dateCreated": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"format": "date-time",
|
|
119
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
120
|
+
},
|
|
121
|
+
"lastModified": {
|
|
122
|
+
"type": ["string", "null"],
|
|
123
|
+
"format": "date-time",
|
|
124
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
125
|
+
},
|
|
126
|
+
"caseType": {
|
|
127
|
+
"type": ["string", "null"],
|
|
128
|
+
"enum": ["nsip", "has", null]
|
|
129
|
+
},
|
|
130
|
+
"redactedStatus": {
|
|
131
|
+
"type": ["string", "null"],
|
|
132
|
+
"enum": ["not_redacted", "redacted", null]
|
|
133
|
+
},
|
|
134
|
+
"publishedStatus": {
|
|
135
|
+
"type": ["string", "null"],
|
|
136
|
+
"enum": [
|
|
137
|
+
"not_checked",
|
|
138
|
+
"checked",
|
|
139
|
+
"ready_to_publish",
|
|
140
|
+
"do_not_publish",
|
|
141
|
+
"publishing",
|
|
142
|
+
"published",
|
|
143
|
+
"archived",
|
|
144
|
+
"unpublished",
|
|
145
|
+
"unpublishing",
|
|
146
|
+
"awaiting_upload",
|
|
147
|
+
null
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
"datePublished": {
|
|
151
|
+
"type": ["string", "null"],
|
|
152
|
+
"format": "date-time",
|
|
153
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
154
|
+
},
|
|
155
|
+
"documentType": {
|
|
156
|
+
"type": ["string", "null"],
|
|
157
|
+
"examples": ["Rule 8 letter"]
|
|
158
|
+
},
|
|
159
|
+
"securityClassification": {
|
|
160
|
+
"type": ["string", "null"],
|
|
161
|
+
"enum": ["public", "official", "secret", "top-secret", null]
|
|
162
|
+
},
|
|
163
|
+
"sourceSystem": {
|
|
164
|
+
"type": ["string", "null"],
|
|
165
|
+
"enum": ["back-office-appeals", "back-office-applications", "horizon", "ni_file", "sharepoint", null]
|
|
166
|
+
},
|
|
167
|
+
"origin": {
|
|
168
|
+
"type": ["string", "null"],
|
|
169
|
+
"enum": ["pins", "citizen", "lpa", "ogd", null]
|
|
170
|
+
},
|
|
171
|
+
"owner": {
|
|
172
|
+
"type": ["string", "null"]
|
|
173
|
+
},
|
|
174
|
+
"author": {
|
|
175
|
+
"type": ["string", "null"],
|
|
176
|
+
"description": "Name of person who authored document"
|
|
177
|
+
},
|
|
178
|
+
"authorWelsh": {
|
|
179
|
+
"type": ["string", "null"],
|
|
180
|
+
"description": "Welsh name of person who authored document"
|
|
181
|
+
},
|
|
182
|
+
"representative": {
|
|
183
|
+
"type": ["string", "null"],
|
|
184
|
+
"examples": ["ZZZ Agency"],
|
|
185
|
+
"description": "The on behalf of or agent submitter of document"
|
|
186
|
+
},
|
|
187
|
+
"description": {
|
|
188
|
+
"type": ["string", "null"],
|
|
189
|
+
"examples": ["Attachments to the letter to Department for Business, Energy & Industrial Strategy"]
|
|
190
|
+
},
|
|
191
|
+
"descriptionWelsh": {
|
|
192
|
+
"type": ["string", "null"]
|
|
193
|
+
},
|
|
194
|
+
"documentCaseStage": {
|
|
195
|
+
"type": ["string", "null"],
|
|
196
|
+
"enum": [
|
|
197
|
+
"draft",
|
|
198
|
+
"pre-application",
|
|
199
|
+
"acceptance",
|
|
200
|
+
"pre-examination",
|
|
201
|
+
"examination",
|
|
202
|
+
"recommendation",
|
|
203
|
+
"decision",
|
|
204
|
+
"post_decision",
|
|
205
|
+
"withdrawn",
|
|
206
|
+
"developers_application",
|
|
207
|
+
"correspondence",
|
|
208
|
+
"0",
|
|
209
|
+
null
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"filter1": {
|
|
213
|
+
"type": ["string", "null"],
|
|
214
|
+
"examples": ["Deadline 2"],
|
|
215
|
+
"description": "Filter field to provide additional filtering"
|
|
216
|
+
},
|
|
217
|
+
"filter1Welsh": {
|
|
218
|
+
"type": ["string", "null"],
|
|
219
|
+
"description": "Filter field in Welsh"
|
|
220
|
+
},
|
|
221
|
+
"filter2": {
|
|
222
|
+
"type": ["string", "null"],
|
|
223
|
+
"examples": ["Scoping Option Report"],
|
|
224
|
+
"description": "Filter field to provide additional filtering"
|
|
225
|
+
},
|
|
226
|
+
"horizonFolderId": {
|
|
227
|
+
"type": ["string", "null"],
|
|
228
|
+
"description": "The folder where the document exists"
|
|
229
|
+
},
|
|
230
|
+
"transcriptId": {
|
|
231
|
+
"type": ["string", "null"],
|
|
232
|
+
"description": "The GUID of the transcript document (if one was provided)."
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "nsip-exam-timetable.schema.json",
|
|
4
|
+
"title": "Examination Timetable",
|
|
5
|
+
"description": "Examination Timetable for an NSIP Project",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": ["caseReference", "events"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"caseReference": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Unique string reference of the associated Case"
|
|
13
|
+
},
|
|
14
|
+
"published": {
|
|
15
|
+
"type": ["boolean", "null"],
|
|
16
|
+
"description": "whether the Examination Timetable has been published or not"
|
|
17
|
+
},
|
|
18
|
+
"events": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"$ref": "#/$defs/event"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"$defs": {
|
|
26
|
+
"event": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": true,
|
|
29
|
+
"required": ["eventId", "type", "eventTitle", "description", "date", "eventLineItems"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"eventId": {
|
|
32
|
+
"type": "integer",
|
|
33
|
+
"description": "Event Identifier"
|
|
34
|
+
},
|
|
35
|
+
"type": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Compulsory Acquisition Hearing/Deadline/Issue Specific Hearing etc",
|
|
38
|
+
"enum": [
|
|
39
|
+
"Accompanied Site Inspection",
|
|
40
|
+
"Compulsory Acquisition Hearing",
|
|
41
|
+
"Deadline",
|
|
42
|
+
"Deadline For Close Of Examination",
|
|
43
|
+
"Issued By",
|
|
44
|
+
"Issue Specific Hearing",
|
|
45
|
+
"Open Floor Hearing",
|
|
46
|
+
"Other Meeting",
|
|
47
|
+
"Preliminary Meeting",
|
|
48
|
+
"Procedural Deadline (Pre-Examination)",
|
|
49
|
+
"Procedural Decision",
|
|
50
|
+
"Publication Of"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"eventTitle": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "Title Of Examination Timetable Event"
|
|
56
|
+
},
|
|
57
|
+
"eventTitleWelsh": {
|
|
58
|
+
"type": ["string", "null"],
|
|
59
|
+
"description": "Title Of Examination Timetable Event In Welsh"
|
|
60
|
+
},
|
|
61
|
+
"description": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"descriptionWelsh": {
|
|
65
|
+
"type": ["string", "null"]
|
|
66
|
+
},
|
|
67
|
+
"eventDeadlineStartDate": {
|
|
68
|
+
"type": ["string", "null"],
|
|
69
|
+
"description": "Optional start date for event window",
|
|
70
|
+
"format": "date-time",
|
|
71
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
72
|
+
},
|
|
73
|
+
"date": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "Event Date = effective deadline (end) date",
|
|
76
|
+
"format": "date-time",
|
|
77
|
+
"examples": ["2023-07-27T20:30:00.000Z"]
|
|
78
|
+
},
|
|
79
|
+
"eventLineItems": {
|
|
80
|
+
"type": "array",
|
|
81
|
+
"items": {
|
|
82
|
+
"$ref": "#/$defs/line-item"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"line-item": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"additionalProperties": true,
|
|
90
|
+
"required": ["description"],
|
|
91
|
+
"properties": {
|
|
92
|
+
"description": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"descriptionWelsh": {
|
|
96
|
+
"type": ["string", "null"]
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "nsip-project-update.schema.json",
|
|
4
|
+
"title": "NSIP Project Update",
|
|
5
|
+
"description": "NSIP Project Update (formerly known as Banners)",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"required": [
|
|
9
|
+
"id",
|
|
10
|
+
"caseReference",
|
|
11
|
+
"updateDate",
|
|
12
|
+
"updateName",
|
|
13
|
+
"updateContentEnglish",
|
|
14
|
+
"updateContentWelsh",
|
|
15
|
+
"updateStatus"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"id": {
|
|
19
|
+
"type": "integer",
|
|
20
|
+
"description": "The unique identifier within the Back Office."
|
|
21
|
+
},
|
|
22
|
+
"caseReference": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "the case reference this update relates to"
|
|
25
|
+
},
|
|
26
|
+
"updateDate": {
|
|
27
|
+
"type": ["string", "null"],
|
|
28
|
+
"format": "date-time",
|
|
29
|
+
"description": "The date the update was published"
|
|
30
|
+
},
|
|
31
|
+
"updateName": {
|
|
32
|
+
"type": ["string", "null"],
|
|
33
|
+
"description": "Internal title or name of the update"
|
|
34
|
+
},
|
|
35
|
+
"updateContentEnglish": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "HTML content of the update in English. Can only include `<a> <b> <ul> <li>` tags."
|
|
38
|
+
},
|
|
39
|
+
"updateContentWelsh": {
|
|
40
|
+
"type": ["string", "null"],
|
|
41
|
+
"description": "HTML content of the update in Welsh. Can only include `<a> <b> <ul> <li>` tags."
|
|
42
|
+
},
|
|
43
|
+
"updateStatus": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"enum": ["draft", "ready-to-publish", "published", "ready-to-unpublish", "unpublished", "archived"],
|
|
46
|
+
"description": "The current status of this update"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|