@planning-inspectorate/data-model 1.16.0 → 1.17.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.
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "$id": "appeal-has.schema.json",
4
4
  "title": "Appeal HAS Case",
5
- "description": "Schema defining the metadata for an appeal",
5
+ "description": "Group A - Schema defining the metadata for an appeal",
6
6
  "type": "object",
7
7
  "additionalProperties": true,
8
8
  "required": [
@@ -51,11 +51,6 @@
51
51
  "applicationDecision",
52
52
  "applicationDecisionDate",
53
53
  "caseSubmissionDueDate",
54
- "siteAddressLine1",
55
- "siteAddressLine2",
56
- "siteAddressTown",
57
- "siteAddressCounty",
58
- "siteAddressPostcode",
59
54
  "siteAccessDetails",
60
55
  "siteSafetyDetails",
61
56
  "siteAreaSquareMetres",
@@ -79,6 +74,23 @@
79
74
  "appellantCostsAppliedFor",
80
75
  "lpaCostsAppliedFor"
81
76
  ],
77
+ "anyOf": [
78
+ {
79
+ "required": ["siteGridReferenceEasting", "siteGridReferenceNorthing"],
80
+ "properties": {
81
+ "siteGridReferenceEasting": { "not": { "type": "null" } },
82
+ "siteGridReferenceNorthing": { "not": { "type": "null" } }
83
+ }
84
+ },
85
+ {
86
+ "required": ["siteAddressLine1", "siteAddressTown", "siteAddressPostcode"],
87
+ "properties": {
88
+ "siteAddressLine1": { "not": { "type": "null" } },
89
+ "siteAddressTown": { "not": { "type": "null" } },
90
+ "siteAddressPostcode": { "not": { "type": "null" } }
91
+ }
92
+ }
93
+ ],
82
94
  "properties": {
83
95
  "caseId": {
84
96
  "type": ["integer", "null"],
@@ -368,7 +380,7 @@
368
380
  "$comment": "Calculated from the applicationDecisionDate"
369
381
  },
370
382
  "siteAddressLine1": {
371
- "type": "string",
383
+ "type": ["string", "null"],
372
384
  "examples": ["96 The Avenue"],
373
385
  "description": "First line of address for the appeal site"
374
386
  },
@@ -377,7 +389,7 @@
377
389
  "description": "Second line of address for the appeal site"
378
390
  },
379
391
  "siteAddressTown": {
380
- "type": "string",
392
+ "type": ["string", "null"],
381
393
  "examples": ["Maidstone"],
382
394
  "description": "Town / City of the site address"
383
395
  },
@@ -387,7 +399,7 @@
387
399
  "description": "County of the site address"
388
400
  },
389
401
  "siteAddressPostcode": {
390
- "type": "string",
402
+ "type": ["string", "null"],
391
403
  "examples": ["MD21 5XY"],
392
404
  "description": "Postal code of the site address"
393
405
  },
@@ -429,6 +441,112 @@
429
441
  "type": ["boolean", "null"],
430
442
  "description": "Indicates if the site is in a conservation area"
431
443
  },
444
+ "affectsScheduledMonument": {
445
+ "type": ["boolean", "null"],
446
+ "description": "Indicates if the development affects a scheduled monument"
447
+ },
448
+ "hasProtectedSpecies": {
449
+ "type": ["boolean", "null"],
450
+ "description": "Indicates if the site hosts protected species"
451
+ },
452
+ "isAonbNationalLandscape": {
453
+ "type": ["boolean", "null"],
454
+ "description": "Indicates an area of outstanding beauty (National Landscape)"
455
+ },
456
+ "isSiteOnHighwayLand": {
457
+ "type": ["boolean", "null"],
458
+ "description": "Indicates if site is on highway land"
459
+ },
460
+ "designatedSitesNames": {
461
+ "type": ["array", "null"],
462
+ "items": {
463
+ "type": "string",
464
+ "examples": ["SSSI", "cSAC", "SAC", "pSPA", "SPA", "user entered value"]
465
+ },
466
+ "description": "The designated site names"
467
+ },
468
+ "hasInfrastructureLevy": {
469
+ "type": ["boolean", "null"],
470
+ "description": "Indicates the existence of an infrastructure levy"
471
+ },
472
+ "isInfrastructureLevyFormallyAdopted": {
473
+ "type": ["boolean", "null"],
474
+ "description": "Indicates if the infrastructure levy is formally adopted"
475
+ },
476
+ "infrastructureLevyAdoptedDate": {
477
+ "type": ["string", "null"],
478
+ "format": "date-time",
479
+ "examples": ["2023-07-27T20:30:00.000Z"],
480
+ "description": "The date of the infrastructure levy adoption"
481
+ },
482
+ "infrastructureLevyExpectedDate": {
483
+ "type": ["string", "null"],
484
+ "format": "date-time",
485
+ "examples": ["2023-07-27T20:30:00.000Z"],
486
+ "description": "The expected date of the infrastructure levy"
487
+ },
488
+ "lpaProcedurePreference": {
489
+ "type": ["string", "null"],
490
+ "enum": ["written", "hearing", "inquiry", null],
491
+ "description": "The procedure preference indicated by the LPA",
492
+ "$comment": "Required for CAS Advert cases"
493
+ },
494
+ "lpaProcedurePreferenceDetails": {
495
+ "type": ["string", "null"],
496
+ "description": "The procedure details preference indicated by the LPA",
497
+ "$comment": "Required for CAS Advert cases"
498
+ },
499
+ "lpaProcedurePreferenceDuration": {
500
+ "type": ["number", "null"],
501
+ "description": "The duration of enquiry indicated by the LPA",
502
+ "$comment": "Required for CAS Advert cases"
503
+ },
504
+ "caseworkReason": {
505
+ "type": ["string", "null"],
506
+ "description": "TBC"
507
+ },
508
+ "importantInformation": {
509
+ "type": ["string", "null"],
510
+ "description": "Information relevant to case..."
511
+ },
512
+ "jurisdiction": {
513
+ "type": ["string", "null"],
514
+ "description": "Under whose jurisdiction the decision falls"
515
+ },
516
+ "redeterminedIndicator": {
517
+ "type": ["boolean", "null"],
518
+ "description": "Has the case been selected for redetermination"
519
+ },
520
+ "dateCostsReportDespatched": {
521
+ "type": ["string", "null"],
522
+ "format": "date-time",
523
+ "examples": ["2023-07-27T20:30:00.000Z"],
524
+ "description": "The date that the costs report was sent"
525
+ },
526
+ "dateNotRecoveredOrDerecovered": {
527
+ "type": ["string", "null"],
528
+ "format": "date-time",
529
+ "examples": ["2023-07-27T20:30:00.000Z"],
530
+ "description": "The date that is TBC"
531
+ },
532
+ "dateRecovered": {
533
+ "type": ["string", "null"],
534
+ "format": "date-time",
535
+ "examples": ["2023-07-27T20:30:00.000Z"],
536
+ "description": "The date that case was recovered"
537
+ },
538
+ "originalCaseDecisionDate": {
539
+ "type": ["string", "null"],
540
+ "format": "date-time",
541
+ "examples": ["2023-07-27T20:30:00.000Z"],
542
+ "description": "The original case decision date"
543
+ },
544
+ "targetDate": {
545
+ "type": ["string", "null"],
546
+ "format": "date-time",
547
+ "examples": ["2023-07-27T20:30:00.000Z"],
548
+ "description": "The target date for case completion"
549
+ },
432
550
  "ownsAllLand": {
433
551
  "type": ["boolean", "null"],
434
552
  "description": "Indicates if the appellant has complete ownership of the site"
@@ -572,6 +690,40 @@
572
690
  "advertisement",
573
691
  null
574
692
  ]
693
+ },
694
+ "siteGridReferenceEasting": {
695
+ "type": ["string", "null"],
696
+ "pattern": "^\\d{6}$",
697
+ "examples": ["357144"]
698
+ },
699
+ "siteGridReferenceNorthing": {
700
+ "type": ["string", "null"],
701
+ "pattern": "^\\d{6}$",
702
+ "examples": ["400534"]
703
+ },
704
+ "hasLandownersPermission": {
705
+ "type": ["boolean", "null"],
706
+ "description": "Indicates if the appellant has land owners permission"
707
+ },
708
+ "isAdvertInPosition": {
709
+ "type": ["boolean", "null"],
710
+ "description": "Indicates if the advert is already in position"
711
+ },
712
+ "isSiteInAreaOfSpecialControlAdverts": {
713
+ "type": ["boolean", "null"],
714
+ "description": "Indicates if the site is in an area of special control for adverts"
715
+ },
716
+ "wasApplicationRefusedDueToHighwayOrTraffic": {
717
+ "type": ["boolean", "null"],
718
+ "description": "Indicates if the application was refused because of highway or traffic public safety?"
719
+ },
720
+ "didAppellantSubmitCompletePhotosAndPlans": {
721
+ "type": ["boolean", "null"],
722
+ "description": "Indicates if the appellant submitted complete and accurate photographs and plans"
723
+ },
724
+ "advertType": {
725
+ "type": ["string", "null"],
726
+ "$comment": "Pick from a TBD list of reference data for advert type"
575
727
  }
576
728
  }
577
729
  }