@planning-inspectorate/data-model 2.54.0 → 2.55.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.
@@ -13,6 +13,7 @@
13
13
  | [projectDescription](#projectdescription) | `string` | Required | can be null | [NSIP Project](nsip-project-properties-projectdescription.md "nsip-project.schema.json#/properties/projectDescription") |
14
14
  | [projectDescriptionWelsh](#projectdescriptionwelsh) | `string` | Optional | can be null | [NSIP Project](nsip-project-properties-projectdescriptionwelsh.md "nsip-project.schema.json#/properties/projectDescriptionWelsh") |
15
15
  | [decision](#decision) | `string` | Required | can be null | [NSIP Project](nsip-project-properties-decision.md "nsip-project.schema.json#/properties/decision") |
16
+ | [dcoStatus](#dcostatus) | `string` | Optional | can be null | [NSIP Project](nsip-project-properties-dcostatus.md "nsip-project.schema.json#/properties/dcoStatus") |
16
17
  | [publishStatus](#publishstatus) | `string` | Required | can be null | [NSIP Project](nsip-project-properties-publishstatus.md "nsip-project.schema.json#/properties/publishStatus") |
17
18
  | [sector](#sector) | `string` | Required | can be null | [NSIP Project](nsip-project-properties-sector.md "nsip-project.schema.json#/properties/sector") |
18
19
  | [projectType](#projecttype) | `string` | Required | can be null | [NSIP Project](nsip-project-properties-projecttype.md "nsip-project.schema.json#/properties/projectType") |
@@ -305,6 +306,41 @@ Decision outcome: approved/refused/split-decision/granted/partially\_consented/q
305
306
  | `"withdrawn"` | |
306
307
  | `null` | |
307
308
 
309
+ ## dcoStatus
310
+
311
+ Decision outcome: approved/refused/split-decision/granted/partially\_consented/quashed/redetermination/withdrawn/revoked
312
+
313
+ `dcoStatus`
314
+
315
+ * is optional
316
+
317
+ * Type: `string`
318
+
319
+ * can be null
320
+
321
+ * defined in: [NSIP Project](nsip-project-properties-dcostatus.md "nsip-project.schema.json#/properties/dcoStatus")
322
+
323
+ ### dcoStatus Type
324
+
325
+ `string`
326
+
327
+ ### dcoStatus Constraints
328
+
329
+ **enum**: the value of this property must be equal to one of the following values:
330
+
331
+ | Value | Explanation |
332
+ | :---------------------- | :---------- |
333
+ | `"approved"` | |
334
+ | `"refused"` | |
335
+ | `"split-decision"` | |
336
+ | `"granted"` | |
337
+ | `"partially_consented"` | |
338
+ | `"quashed"` | |
339
+ | `"redetermination"` | |
340
+ | `"withdrawn"` | |
341
+ | `"revoked"` | |
342
+ | `null` | |
343
+
308
344
  ## publishStatus
309
345
 
310
346
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planning-inspectorate/data-model",
3
- "version": "2.54.0",
3
+ "version": "2.55.0",
4
4
  "description": "JSON Schemas for the Planning Inspectorate's Data Model",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -25,6 +25,23 @@ class Decision(Enum):
25
25
  NoneType_None = None
26
26
 
27
27
 
28
+ class DcoStatus(Enum):
29
+ """
30
+ Decision outcome: approved/refused/split-decision/granted/partially_consented/quashed/redetermination/withdrawn/revoked
31
+ """
32
+
33
+ approved = "approved"
34
+ refused = "refused"
35
+ split_decision = "split-decision"
36
+ granted = "granted"
37
+ partially_consented = "partially_consented"
38
+ quashed = "quashed"
39
+ redetermination = "redetermination"
40
+ withdrawn = "withdrawn"
41
+ revoked = "revoked"
42
+ NoneType_None = None
43
+
44
+
28
45
  class PublishStatus(Enum):
29
46
  published = "published"
30
47
  unpublished = "unpublished"
@@ -440,6 +457,10 @@ class NsipProject(BaseModel):
440
457
  """
441
458
  Decision outcome: approved/refused/split-decision/granted/partially_consented/quashed/redetermination/withdrawn
442
459
  """
460
+ dcoStatus: DcoStatus | None = None
461
+ """
462
+ Decision outcome: approved/refused/split-decision/granted/partially_consented/quashed/redetermination/withdrawn/revoked
463
+ """
443
464
  publishStatus: PublishStatus | None
444
465
  sector: Sector | None
445
466
  """
@@ -118,6 +118,22 @@
118
118
  null
119
119
  ]
120
120
  },
121
+ "dcoStatus": {
122
+ "type": ["string", "null"],
123
+ "description": "Decision outcome: approved/refused/split-decision/granted/partially_consented/quashed/redetermination/withdrawn/revoked",
124
+ "enum": [
125
+ "approved",
126
+ "refused",
127
+ "split-decision",
128
+ "granted",
129
+ "partially_consented",
130
+ "quashed",
131
+ "redetermination",
132
+ "withdrawn",
133
+ "revoked",
134
+ null
135
+ ]
136
+ },
121
137
  "publishStatus": {
122
138
  "type": ["string", "null"],
123
139
  "enum": ["published", "unpublished", null]
package/src/enums.cjs CHANGED
@@ -626,6 +626,18 @@ const NSIP_CASE_TYPE = Object.freeze({
626
626
  NSIP: 'nsip',
627
627
  });
628
628
 
629
+ const NSIP_DCO_STATUS = Object.freeze({
630
+ APPROVED: 'approved',
631
+ GRANTED: 'granted',
632
+ PARTIALLY_CONSENTED: 'partially_consented',
633
+ QUASHED: 'quashed',
634
+ REDETERMINATION: 'redetermination',
635
+ REFUSED: 'refused',
636
+ REVOKED: 'revoked',
637
+ SPLIT_DECISION: 'split-decision',
638
+ WITHDRAWN: 'withdrawn',
639
+ });
640
+
629
641
  const NSIP_DECISION = Object.freeze({
630
642
  APPROVED: 'approved',
631
643
  GRANTED: 'granted',
@@ -1024,6 +1036,7 @@ exports.MESSAGE_EVENT_TYPE = MESSAGE_EVENT_TYPE;
1024
1036
  exports.METHOD = METHOD;
1025
1037
  exports.NSIP_CASE_TYPE = NSIP_CASE_TYPE;
1026
1038
  exports.NSIP_CA_AND_TP_EVIDENCE = NSIP_CA_AND_TP_EVIDENCE;
1039
+ exports.NSIP_DCO_STATUS = NSIP_DCO_STATUS;
1027
1040
  exports.NSIP_DECISION = NSIP_DECISION;
1028
1041
  exports.NSIP_DESIGN_APPROACH_DOCUMENT = NSIP_DESIGN_APPROACH_DOCUMENT;
1029
1042
  exports.NSIP_DOCUMENT_CASE_STAGE = NSIP_DOCUMENT_CASE_STAGE;
package/src/enums.d.ts CHANGED
@@ -624,6 +624,18 @@ export const NSIP_CASE_TYPE = {
624
624
  NSIP: 'nsip',
625
625
  } as const;
626
626
 
627
+ export const NSIP_DCO_STATUS = {
628
+ APPROVED: 'approved',
629
+ GRANTED: 'granted',
630
+ PARTIALLY_CONSENTED: 'partially_consented',
631
+ QUASHED: 'quashed',
632
+ REDETERMINATION: 'redetermination',
633
+ REFUSED: 'refused',
634
+ REVOKED: 'revoked',
635
+ SPLIT_DECISION: 'split-decision',
636
+ WITHDRAWN: 'withdrawn',
637
+ } as const;
638
+
627
639
  export const NSIP_DECISION = {
628
640
  APPROVED: 'approved',
629
641
  GRANTED: 'granted',
package/src/enums.js CHANGED
@@ -624,6 +624,18 @@ export const NSIP_CASE_TYPE = Object.freeze({
624
624
  NSIP: 'nsip',
625
625
  });
626
626
 
627
+ export const NSIP_DCO_STATUS = Object.freeze({
628
+ APPROVED: 'approved',
629
+ GRANTED: 'granted',
630
+ PARTIALLY_CONSENTED: 'partially_consented',
631
+ QUASHED: 'quashed',
632
+ REDETERMINATION: 'redetermination',
633
+ REFUSED: 'refused',
634
+ REVOKED: 'revoked',
635
+ SPLIT_DECISION: 'split-decision',
636
+ WITHDRAWN: 'withdrawn',
637
+ });
638
+
627
639
  export const NSIP_DECISION = Object.freeze({
628
640
  APPROVED: 'approved',
629
641
  GRANTED: 'granted',
package/src/index.cjs CHANGED
@@ -707,6 +707,18 @@ const NSIP_CASE_TYPE = Object.freeze({
707
707
  NSIP: 'nsip',
708
708
  });
709
709
 
710
+ const NSIP_DCO_STATUS = Object.freeze({
711
+ APPROVED: 'approved',
712
+ GRANTED: 'granted',
713
+ PARTIALLY_CONSENTED: 'partially_consented',
714
+ QUASHED: 'quashed',
715
+ REDETERMINATION: 'redetermination',
716
+ REFUSED: 'refused',
717
+ REVOKED: 'revoked',
718
+ SPLIT_DECISION: 'split-decision',
719
+ WITHDRAWN: 'withdrawn',
720
+ });
721
+
710
722
  const NSIP_DECISION = Object.freeze({
711
723
  APPROVED: 'approved',
712
724
  GRANTED: 'granted',
@@ -1137,6 +1149,7 @@ exports.MESSAGE_EVENT_TYPE = MESSAGE_EVENT_TYPE;
1137
1149
  exports.METHOD = METHOD;
1138
1150
  exports.NSIP_CASE_TYPE = NSIP_CASE_TYPE;
1139
1151
  exports.NSIP_CA_AND_TP_EVIDENCE = NSIP_CA_AND_TP_EVIDENCE;
1152
+ exports.NSIP_DCO_STATUS = NSIP_DCO_STATUS;
1140
1153
  exports.NSIP_DECISION = NSIP_DECISION;
1141
1154
  exports.NSIP_DESIGN_APPROACH_DOCUMENT = NSIP_DESIGN_APPROACH_DOCUMENT;
1142
1155
  exports.NSIP_DOCUMENT_CASE_STAGE = NSIP_DOCUMENT_CASE_STAGE;
package/src/schemas.d.ts CHANGED
@@ -3239,6 +3239,20 @@ export interface NSIPProject {
3239
3239
  | 'redetermination'
3240
3240
  | 'withdrawn'
3241
3241
  | null;
3242
+ /**
3243
+ * Decision outcome: approved/refused/split-decision/granted/partially_consented/quashed/redetermination/withdrawn/revoked
3244
+ */
3245
+ dcoStatus?:
3246
+ | 'approved'
3247
+ | 'refused'
3248
+ | 'split-decision'
3249
+ | 'granted'
3250
+ | 'partially_consented'
3251
+ | 'quashed'
3252
+ | 'redetermination'
3253
+ | 'withdrawn'
3254
+ | 'revoked'
3255
+ | null;
3242
3256
  publishStatus: 'published' | 'unpublished' | null;
3243
3257
  /**
3244
3258
  * {Sector Abbreviation} - {Sector Display Name}