@planning-inspectorate/data-model 2.43.0 → 2.45.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.
@@ -3172,13 +3172,17 @@ Project type
3172
3172
 
3173
3173
  | Value | Explanation |
3174
3174
  | :------------------------- | :---------- |
3175
+ | `"biomass"` | |
3176
+ | `"coal_power_station"` | |
3175
3177
  | `"energy_from_waste"` | |
3176
3178
  | `"gas_power_station"` | |
3179
+ | `"hydro_electric"` | |
3177
3180
  | `"hydrogen_power_station"` | |
3178
3181
  | `"nuclear"` | |
3179
3182
  | `"offshore_wind"` | |
3180
3183
  | `"onshore_wind"` | |
3181
3184
  | `"solar"` | |
3185
+ | `"tidal_barrage"` | |
3182
3186
  | `null` | |
3183
3187
 
3184
3188
  ### subProjectType Examples
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planning-inspectorate/data-model",
3
- "version": "2.43.0",
3
+ "version": "2.45.0",
4
4
  "description": "JSON Schemas for the Planning Inspectorate's Data Model",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -38,7 +38,7 @@
38
38
  "@eslint/js": "^10.0.1",
39
39
  "ajv": "^8.17.1",
40
40
  "ajv-formats": "^3.0.1",
41
- "conventional-changelog-conventionalcommits": "^9.1.0",
41
+ "conventional-changelog-conventionalcommits": "^10.2.0",
42
42
  "eslint": "^10.0.0",
43
43
  "eslint-config-prettier": "^10.1.5",
44
44
  "globals": "^17.3.0",
@@ -256,13 +256,17 @@ class SubProjectType(Enum):
256
256
  Project type
257
257
  """
258
258
 
259
+ biomass = "biomass"
260
+ coal_power_station = "coal_power_station"
259
261
  energy_from_waste = "energy_from_waste"
260
262
  gas_power_station = "gas_power_station"
263
+ hydro_electric = "hydro_electric"
261
264
  hydrogen_power_station = "hydrogen_power_station"
262
265
  nuclear = "nuclear"
263
266
  offshore_wind = "offshore_wind"
264
267
  onshore_wind = "onshore_wind"
265
268
  solar = "solar"
269
+ tidal_barrage = "tidal_barrage"
266
270
  NoneType_None = None
267
271
 
268
272
 
@@ -73,7 +73,6 @@
73
73
  { "$ref": "appeals-components/appeal-common-submission.schema.json" },
74
74
  { "$ref": "appeals-components/appeal-common-planning.schema.json" },
75
75
  { "$ref": "appeals-components/appellant-procedure-preference.schema.json" },
76
- { "$ref": "appeals-components/appeal-planning-obligation.submission.schema.json" },
77
76
  { "$ref": "appeals-components/appeal-ldc.submission.schema.json" }
78
77
  ]
79
78
  },
@@ -748,13 +748,17 @@
748
748
  "type": ["string", "null"],
749
749
  "description": "Project type",
750
750
  "enum": [
751
+ "biomass",
752
+ "coal_power_station",
751
753
  "energy_from_waste",
752
754
  "gas_power_station",
755
+ "hydro_electric",
753
756
  "hydrogen_power_station",
754
757
  "nuclear",
755
758
  "offshore_wind",
756
759
  "onshore_wind",
757
760
  "solar",
761
+ "tidal_barrage",
758
762
  null
759
763
  ],
760
764
  "examples": ["solar"]
package/src/enums.cjs CHANGED
@@ -760,13 +760,17 @@ const NSIP_STATUS = Object.freeze({
760
760
  });
761
761
 
762
762
  const NSIP_SUB_PROJECT_TYPE = Object.freeze({
763
+ BIOMASS: 'biomass',
764
+ COAL_POWER_STATION: 'coal_power_station',
763
765
  ENERGY_FROM_WASTE: 'energy_from_waste',
764
766
  GAS_POWER_STATION: 'gas_power_station',
767
+ HYDRO_ELECTRIC: 'hydro_electric',
765
768
  HYDROGEN_POWER_STATION: 'hydrogen_power_station',
766
769
  NUCLEAR: 'nuclear',
767
770
  OFFSHORE_WIND: 'offshore_wind',
768
771
  ONSHORE_WIND: 'onshore_wind',
769
772
  SOLAR: 'solar',
773
+ TIDAL_BARRAGE: 'tidal_barrage',
770
774
  });
771
775
 
772
776
  const NSIP_SUBSCRIPTION_TYPE = Object.freeze({
package/src/enums.d.ts CHANGED
@@ -758,13 +758,17 @@ export const NSIP_STATUS = {
758
758
  } as const;
759
759
 
760
760
  export const NSIP_SUB_PROJECT_TYPE = {
761
+ BIOMASS: 'biomass',
762
+ COAL_POWER_STATION: 'coal_power_station',
761
763
  ENERGY_FROM_WASTE: 'energy_from_waste',
762
764
  GAS_POWER_STATION: 'gas_power_station',
765
+ HYDRO_ELECTRIC: 'hydro_electric',
763
766
  HYDROGEN_POWER_STATION: 'hydrogen_power_station',
764
767
  NUCLEAR: 'nuclear',
765
768
  OFFSHORE_WIND: 'offshore_wind',
766
769
  ONSHORE_WIND: 'onshore_wind',
767
770
  SOLAR: 'solar',
771
+ TIDAL_BARRAGE: 'tidal_barrage',
768
772
  } as const;
769
773
 
770
774
  export const NSIP_SUBSCRIPTION_TYPE = {
package/src/enums.js CHANGED
@@ -758,13 +758,17 @@ export const NSIP_STATUS = Object.freeze({
758
758
  });
759
759
 
760
760
  export const NSIP_SUB_PROJECT_TYPE = Object.freeze({
761
+ BIOMASS: 'biomass',
762
+ COAL_POWER_STATION: 'coal_power_station',
761
763
  ENERGY_FROM_WASTE: 'energy_from_waste',
762
764
  GAS_POWER_STATION: 'gas_power_station',
765
+ HYDRO_ELECTRIC: 'hydro_electric',
763
766
  HYDROGEN_POWER_STATION: 'hydrogen_power_station',
764
767
  NUCLEAR: 'nuclear',
765
768
  OFFSHORE_WIND: 'offshore_wind',
766
769
  ONSHORE_WIND: 'onshore_wind',
767
770
  SOLAR: 'solar',
771
+ TIDAL_BARRAGE: 'tidal_barrage',
768
772
  });
769
773
 
770
774
  export const NSIP_SUBSCRIPTION_TYPE = Object.freeze({
package/src/index.cjs CHANGED
@@ -841,13 +841,17 @@ const NSIP_STATUS = Object.freeze({
841
841
  });
842
842
 
843
843
  const NSIP_SUB_PROJECT_TYPE = Object.freeze({
844
+ BIOMASS: 'biomass',
845
+ COAL_POWER_STATION: 'coal_power_station',
844
846
  ENERGY_FROM_WASTE: 'energy_from_waste',
845
847
  GAS_POWER_STATION: 'gas_power_station',
848
+ HYDRO_ELECTRIC: 'hydro_electric',
846
849
  HYDROGEN_POWER_STATION: 'hydrogen_power_station',
847
850
  NUCLEAR: 'nuclear',
848
851
  OFFSHORE_WIND: 'offshore_wind',
849
852
  ONSHORE_WIND: 'onshore_wind',
850
853
  SOLAR: 'solar',
854
+ TIDAL_BARRAGE: 'tidal_barrage',
851
855
  });
852
856
 
853
857
  const NSIP_SUBSCRIPTION_TYPE = Object.freeze({
package/src/schemas.d.ts CHANGED
@@ -1709,29 +1709,20 @@ export type AppealS78Case = (GridReference | SiteAddress) & {
1709
1709
  */
1710
1710
  pcnRestrictedDevelopmentRights?: boolean | null;
1711
1711
  applicationMadeUnderActSection?:
1712
- | 'existing-development'
1713
- | 'proposed-use-of-a-development'
1714
- | 'proposed-changes-to-a-listed-building'
1715
- | null;
1712
+ 'existing-development' | 'proposed-use-of-a-development' | 'proposed-changes-to-a-listed-building' | null;
1716
1713
  /**
1717
1714
  * Site use at time of application
1718
1715
  */
1719
1716
  siteUseAtTimeOfApplication?: string | null;
1720
1717
  appealUnderActSection?:
1721
- | 'existing-development'
1722
- | 'proposed-use-of-a-development'
1723
- | 'proposed-changes-to-a-listed-building'
1724
- | null;
1718
+ 'existing-development' | 'proposed-use-of-a-development' | 'proposed-changes-to-a-listed-building' | null;
1725
1719
  lpaConsiderAppealInvalid?: boolean | null;
1726
1720
  /**
1727
1721
  * Reason(s) why LPA consider the appeal invalid
1728
1722
  */
1729
1723
  lpaAppealInvalidReasons?: string | null;
1730
1724
  discontinuanceNoticeServedReason?:
1731
- | 'risk-of-injury-to-the-amenity-of-locality'
1732
- | 'danger-to-members-of-the-public'
1733
- | 'other'
1734
- | null;
1725
+ 'risk-of-injury-to-the-amenity-of-locality' | 'danger-to-members-of-the-public' | 'other' | null;
1735
1726
  /**
1736
1727
  * Other reason for serving a discontinuance notice, for discontinuanceNoticeServedReason: other
1737
1728
  */
@@ -2284,13 +2275,7 @@ export interface NSIPDocument {
2284
2275
  documentType: string | null;
2285
2276
  securityClassification: 'public' | 'official' | 'secret' | 'top-secret' | null;
2286
2277
  sourceSystem:
2287
- | 'back-office-appeals'
2288
- | 'back-office-applications'
2289
- | 'dco-portal'
2290
- | 'horizon'
2291
- | 'ni_file'
2292
- | 'sharepoint'
2293
- | null;
2278
+ 'back-office-appeals' | 'back-office-applications' | 'dco-portal' | 'horizon' | 'ni_file' | 'sharepoint' | null;
2294
2279
  origin: 'pins' | 'citizen' | 'lpa' | 'ogd' | null;
2295
2280
  owner: string | null;
2296
2281
  /**
@@ -2984,13 +2969,17 @@ export interface NSIPProject {
2984
2969
  * Project type
2985
2970
  */
2986
2971
  subProjectType?:
2972
+ | 'biomass'
2973
+ | 'coal_power_station'
2987
2974
  | 'energy_from_waste'
2988
2975
  | 'gas_power_station'
2976
+ | 'hydro_electric'
2989
2977
  | 'hydrogen_power_station'
2990
2978
  | 'nuclear'
2991
2979
  | 'offshore_wind'
2992
2980
  | 'onshore_wind'
2993
2981
  | 'solar'
2982
+ | 'tidal_barrage'
2994
2983
  | null;
2995
2984
  /**
2996
2985
  * New maturity
@@ -3512,13 +3501,7 @@ export interface ServiceUser {
3512
3501
  * Type or category of the service user.
3513
3502
  */
3514
3503
  serviceUserType:
3515
- | 'Applicant'
3516
- | 'Appellant'
3517
- | 'Agent'
3518
- | 'Rule6Party'
3519
- | 'InterestedParty'
3520
- | 'RepresentationContact'
3521
- | 'Subscriber';
3504
+ 'Applicant' | 'Appellant' | 'Agent' | 'Rule6Party' | 'InterestedParty' | 'RepresentationContact' | 'Subscriber';
3522
3505
  /**
3523
3506
  * Reference number for a particular case or incident.
3524
3507
  */
@@ -3904,7 +3887,6 @@ export interface AppellantSubmissionCommand {
3904
3887
  } & AppellantCommonSubmissionProperties &
3905
3888
  AppellantCommonPlanningProperties &
3906
3889
  AppellantProcedurePreferenceProperties &
3907
- PlanningObligationSpecificProperties &
3908
3890
  LDCSpecificProperties)
3909
3891
  | ({
3910
3892
  caseType?: 'F';
@@ -4393,10 +4375,7 @@ export interface LDCSpecificProperties {
4393
4375
  */
4394
4376
  siteUseAtTimeOfApplication: string | null;
4395
4377
  applicationMadeUnderActSection:
4396
- | 'existing-development'
4397
- | 'proposed-use-of-a-development'
4398
- | 'proposed-changes-to-a-listed-building'
4399
- | null;
4378
+ 'existing-development' | 'proposed-use-of-a-development' | 'proposed-changes-to-a-listed-building' | null;
4400
4379
  [k: string]: unknown;
4401
4380
  }
4402
4381
  /**
@@ -4785,10 +4764,7 @@ export type LPAQEnforcementSubmissionProperties = {
4785
4764
  */
4786
4765
  export type LPAQLDCSubmissionProperties = {
4787
4766
  appealUnderActSection?:
4788
- | 'existing-development'
4789
- | 'proposed-use-of-a-development'
4790
- | 'proposed-changes-to-a-listed-building'
4791
- | null;
4767
+ 'existing-development' | 'proposed-use-of-a-development' | 'proposed-changes-to-a-listed-building' | null;
4792
4768
  lpaConsiderAppealInvalid?: boolean | null;
4793
4769
  /**
4794
4770
  * Reason(s) why LPA consider the appeal invalid
@@ -63,8 +63,6 @@ const exampleLDCSubmissionSchema = {
63
63
  appellantProcedurePreferenceDetails: 'eiusmod ex exercitation',
64
64
  appellantProcedurePreferenceDuration: 10816414.941069126,
65
65
  appellantProcedurePreferenceWitnessCount: -91300569.36444478,
66
- planningObligation: true,
67
- statusPlanningObligation: 'finalised',
68
66
  siteUseAtTimeOfApplication: 'residential',
69
67
  applicationMadeUnderActSection: 'existing-development'
70
68
  },