@planning-inspectorate/data-model 1.11.0 → 1.12.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.
@@ -166,6 +166,7 @@ The unique identifier within the Back Office. This is not the same as the case r
166
166
  | `"archived"` | |
167
167
  | `"draft"` | |
168
168
  | `"withdrawn"` | |
169
+ | `"unpublished"` | |
169
170
  | `null` | |
170
171
 
171
172
  ## originalRepresentation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planning-inspectorate/data-model",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "JSON Schemas for the Planning Inspectorate's Data Model",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -34,7 +34,7 @@
34
34
  "@commitlint/config-conventional": "^19.8.1",
35
35
  "ajv": "^8.17.1",
36
36
  "ajv-formats": "^3.0.1",
37
- "eslint": "^9.30.1",
37
+ "eslint": "^9.31.0",
38
38
  "eslint-config-prettier": "^10.1.5",
39
39
  "husky": "^9.1.7",
40
40
  "json-schema-to-typescript": "^15.0.4",
@@ -42,7 +42,7 @@
42
42
  "lodash.snakecase": "^4.1.1",
43
43
  "prettier": "^3.6.2",
44
44
  "rollup": "^4.44.2",
45
- "semantic-release": "^24.2.6"
45
+ "semantic-release": "^24.2.7"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public"
@@ -18,6 +18,7 @@ class Status(Enum):
18
18
  archived = "archived"
19
19
  draft = "draft"
20
20
  withdrawn = "withdrawn"
21
+ unpublished = "unpublished"
21
22
  NoneType_None = None
22
23
 
23
24
 
@@ -47,7 +47,18 @@
47
47
  },
48
48
  "status": {
49
49
  "type": ["string", "null"],
50
- "enum": ["awaiting_review", "referred", "valid", "invalid", "published", "archived", "draft", "withdrawn", null]
50
+ "enum": [
51
+ "awaiting_review",
52
+ "referred",
53
+ "valid",
54
+ "invalid",
55
+ "published",
56
+ "archived",
57
+ "draft",
58
+ "withdrawn",
59
+ "unpublished",
60
+ null
61
+ ]
51
62
  },
52
63
  "originalRepresentation": {
53
64
  "type": "string"
package/src/enums.cjs CHANGED
@@ -524,6 +524,7 @@ const NSIP_STATUS = Object.freeze({
524
524
  INVALID: 'invalid',
525
525
  PUBLISHED: 'published',
526
526
  REFERRED: 'referred',
527
+ UNPUBLISHED: 'unpublished',
527
528
  VALID: 'valid',
528
529
  WITHDRAWN: 'withdrawn',
529
530
  });
package/src/enums.d.ts CHANGED
@@ -522,6 +522,7 @@ export const NSIP_STATUS = {
522
522
  INVALID: 'invalid',
523
523
  PUBLISHED: 'published',
524
524
  REFERRED: 'referred',
525
+ UNPUBLISHED: 'unpublished',
525
526
  VALID: 'valid',
526
527
  WITHDRAWN: 'withdrawn',
527
528
  };
package/src/enums.js CHANGED
@@ -522,6 +522,7 @@ export const NSIP_STATUS = Object.freeze({
522
522
  INVALID: 'invalid',
523
523
  PUBLISHED: 'published',
524
524
  REFERRED: 'referred',
525
+ UNPUBLISHED: 'unpublished',
525
526
  VALID: 'valid',
526
527
  WITHDRAWN: 'withdrawn',
527
528
  });
package/src/index.cjs CHANGED
@@ -605,6 +605,7 @@ const NSIP_STATUS = Object.freeze({
605
605
  INVALID: 'invalid',
606
606
  PUBLISHED: 'published',
607
607
  REFERRED: 'referred',
608
+ UNPUBLISHED: 'unpublished',
608
609
  VALID: 'valid',
609
610
  WITHDRAWN: 'withdrawn',
610
611
  });
package/src/schemas.d.ts CHANGED
@@ -2255,6 +2255,7 @@ export interface Representation {
2255
2255
  | 'archived'
2256
2256
  | 'draft'
2257
2257
  | 'withdrawn'
2258
+ | 'unpublished'
2258
2259
  | null;
2259
2260
  originalRepresentation: string;
2260
2261
  redacted: boolean | null;