@planning-inspectorate/data-model 2.13.0 → 2.14.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/docs/nsip-document.md +9 -5
- package/package.json +1 -1
- package/pins_data_model/models/model_appeal_document.py +1 -1
- package/pins_data_model/models/model_appeal_event.py +1 -1
- package/pins_data_model/models/model_appeal_event_estimate.py +1 -1
- package/pins_data_model/models/model_appeal_has.py +1 -1
- package/pins_data_model/models/model_appeal_representation.py +1 -1
- package/pins_data_model/models/model_appeal_s78.py +1 -1
- package/pins_data_model/models/model_dart_response.py +1 -1
- package/pins_data_model/models/model_entraid.py +1 -1
- package/pins_data_model/models/model_folder.py +1 -1
- package/pins_data_model/models/model_gettimesheets_response.py +1 -1
- package/pins_data_model/models/model_listed_building.py +1 -1
- package/pins_data_model/models/model_listed_buildings.py +1 -1
- package/pins_data_model/models/model_nsip_document.py +5 -1
- package/pins_data_model/models/model_nsip_exam_timetable.py +1 -1
- package/pins_data_model/models/model_nsip_invoice.py +1 -1
- package/pins_data_model/models/model_nsip_meeting.py +1 -1
- package/pins_data_model/models/model_nsip_project.py +1 -1
- package/pins_data_model/models/model_nsip_project_update.py +1 -1
- package/pins_data_model/models/model_nsip_representation.py +1 -1
- package/pins_data_model/models/model_nsip_subscription.py +1 -1
- package/pins_data_model/models/model_pins_inspector.py +1 -1
- package/pins_data_model/models/model_pins_lpa.py +1 -1
- package/pins_data_model/models/model_s51_advice.py +1 -1
- package/pins_data_model/models/model_service_user.py +1 -1
- package/schemas/nsip-document.schema.json +9 -1
- package/src/enums.cjs +4 -0
- package/src/enums.d.ts +4 -0
- package/src/enums.js +4 -0
- package/src/index.cjs +4 -0
- package/src/schemas.d.ts +8 -1
package/docs/nsip-document.md
CHANGED
|
@@ -516,11 +516,15 @@ The location of the published document. Only applicable to documents which are p
|
|
|
516
516
|
|
|
517
517
|
**enum**: the value of this property must be equal to one of the following values:
|
|
518
518
|
|
|
519
|
-
| Value
|
|
520
|
-
|
|
|
521
|
-
| `"not_redacted"`
|
|
522
|
-
| `"redacted"`
|
|
523
|
-
| `
|
|
519
|
+
| Value | Explanation |
|
|
520
|
+
| :------------------------------- | :---------- |
|
|
521
|
+
| `"not_redacted"` | |
|
|
522
|
+
| `"redacted"` | |
|
|
523
|
+
| `"awaiting_ai_redaction"` | |
|
|
524
|
+
| `"ai_redaction_review_required"` | |
|
|
525
|
+
| `"ai_redaction_failed"` | |
|
|
526
|
+
| `"no_redaction_required"` | |
|
|
527
|
+
| `null` | |
|
|
524
528
|
|
|
525
529
|
## publishedStatus
|
|
526
530
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: nsip-document.schema.json
|
|
3
|
-
# timestamp: 2026-
|
|
3
|
+
# timestamp: 2026-02-04T16:06:57+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -25,6 +25,10 @@ class CaseType(Enum):
|
|
|
25
25
|
class RedactedStatus(Enum):
|
|
26
26
|
not_redacted = "not_redacted"
|
|
27
27
|
redacted = "redacted"
|
|
28
|
+
awaiting_ai_redaction = "awaiting_ai_redaction"
|
|
29
|
+
ai_redaction_review_required = "ai_redaction_review_required"
|
|
30
|
+
ai_redaction_failed = "ai_redaction_failed"
|
|
31
|
+
no_redaction_required = "no_redaction_required"
|
|
28
32
|
NoneType_None = None
|
|
29
33
|
|
|
30
34
|
|
|
@@ -129,7 +129,15 @@
|
|
|
129
129
|
},
|
|
130
130
|
"redactedStatus": {
|
|
131
131
|
"type": ["string", "null"],
|
|
132
|
-
"enum": [
|
|
132
|
+
"enum": [
|
|
133
|
+
"not_redacted",
|
|
134
|
+
"redacted",
|
|
135
|
+
"awaiting_ai_redaction",
|
|
136
|
+
"ai_redaction_review_required",
|
|
137
|
+
"ai_redaction_failed",
|
|
138
|
+
"no_redaction_required",
|
|
139
|
+
null
|
|
140
|
+
]
|
|
133
141
|
},
|
|
134
142
|
"publishedStatus": {
|
|
135
143
|
"type": ["string", "null"],
|
package/src/enums.cjs
CHANGED
|
@@ -590,6 +590,10 @@ const NSIP_RECOMMENDATION = Object.freeze({
|
|
|
590
590
|
});
|
|
591
591
|
|
|
592
592
|
const NSIP_REDACTED_STATUS = Object.freeze({
|
|
593
|
+
AI_REDACTION_FAILED: 'ai_redaction_failed',
|
|
594
|
+
AI_REDACTION_REVIEW_REQUIRED: 'ai_redaction_review_required',
|
|
595
|
+
AWAITING_AI_REDACTION: 'awaiting_ai_redaction',
|
|
596
|
+
NO_REDACTION_REQUIRED: 'no_redaction_required',
|
|
593
597
|
NOT_REDACTED: 'not_redacted',
|
|
594
598
|
REDACTED: 'redacted',
|
|
595
599
|
});
|
package/src/enums.d.ts
CHANGED
|
@@ -588,6 +588,10 @@ export const NSIP_RECOMMENDATION = {
|
|
|
588
588
|
} as const;
|
|
589
589
|
|
|
590
590
|
export const NSIP_REDACTED_STATUS = {
|
|
591
|
+
AI_REDACTION_FAILED: 'ai_redaction_failed',
|
|
592
|
+
AI_REDACTION_REVIEW_REQUIRED: 'ai_redaction_review_required',
|
|
593
|
+
AWAITING_AI_REDACTION: 'awaiting_ai_redaction',
|
|
594
|
+
NO_REDACTION_REQUIRED: 'no_redaction_required',
|
|
591
595
|
NOT_REDACTED: 'not_redacted',
|
|
592
596
|
REDACTED: 'redacted',
|
|
593
597
|
} as const;
|
package/src/enums.js
CHANGED
|
@@ -588,6 +588,10 @@ export const NSIP_RECOMMENDATION = Object.freeze({
|
|
|
588
588
|
});
|
|
589
589
|
|
|
590
590
|
export const NSIP_REDACTED_STATUS = Object.freeze({
|
|
591
|
+
AI_REDACTION_FAILED: 'ai_redaction_failed',
|
|
592
|
+
AI_REDACTION_REVIEW_REQUIRED: 'ai_redaction_review_required',
|
|
593
|
+
AWAITING_AI_REDACTION: 'awaiting_ai_redaction',
|
|
594
|
+
NO_REDACTION_REQUIRED: 'no_redaction_required',
|
|
591
595
|
NOT_REDACTED: 'not_redacted',
|
|
592
596
|
REDACTED: 'redacted',
|
|
593
597
|
});
|
package/src/index.cjs
CHANGED
|
@@ -671,6 +671,10 @@ const NSIP_RECOMMENDATION = Object.freeze({
|
|
|
671
671
|
});
|
|
672
672
|
|
|
673
673
|
const NSIP_REDACTED_STATUS = Object.freeze({
|
|
674
|
+
AI_REDACTION_FAILED: 'ai_redaction_failed',
|
|
675
|
+
AI_REDACTION_REVIEW_REQUIRED: 'ai_redaction_review_required',
|
|
676
|
+
AWAITING_AI_REDACTION: 'awaiting_ai_redaction',
|
|
677
|
+
NO_REDACTION_REQUIRED: 'no_redaction_required',
|
|
674
678
|
NOT_REDACTED: 'not_redacted',
|
|
675
679
|
REDACTED: 'redacted',
|
|
676
680
|
});
|
package/src/schemas.d.ts
CHANGED
|
@@ -2115,7 +2115,14 @@ export interface NSIPDocument {
|
|
|
2115
2115
|
dateCreated: string;
|
|
2116
2116
|
lastModified: string | null;
|
|
2117
2117
|
caseType: 'nsip' | 'has' | null;
|
|
2118
|
-
redactedStatus:
|
|
2118
|
+
redactedStatus:
|
|
2119
|
+
| 'not_redacted'
|
|
2120
|
+
| 'redacted'
|
|
2121
|
+
| 'awaiting_ai_redaction'
|
|
2122
|
+
| 'ai_redaction_review_required'
|
|
2123
|
+
| 'ai_redaction_failed'
|
|
2124
|
+
| 'no_redaction_required'
|
|
2125
|
+
| null;
|
|
2119
2126
|
publishedStatus:
|
|
2120
2127
|
| 'not_checked'
|
|
2121
2128
|
| 'checked'
|