@planning-inspectorate/data-model 1.16.1 → 1.18.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/src/schemas.d.ts CHANGED
@@ -301,9 +301,29 @@ export interface AppealEvent {
301
301
  }
302
302
 
303
303
  /**
304
- * Schema defining the metadata for an appeal
304
+ * Group A - Schema defining the metadata for an appeal
305
305
  */
306
- export interface AppealHASCase {
306
+ export type AppealHASCase = (
307
+ | {
308
+ siteGridReferenceEasting: {
309
+ [k: string]: unknown;
310
+ };
311
+ siteGridReferenceNorthing: {
312
+ [k: string]: unknown;
313
+ };
314
+ }
315
+ | {
316
+ siteAddressLine1: {
317
+ [k: string]: unknown;
318
+ };
319
+ siteAddressTown: {
320
+ [k: string]: unknown;
321
+ };
322
+ siteAddressPostcode: {
323
+ [k: string]: unknown;
324
+ };
325
+ }
326
+ ) & {
307
327
  /**
308
328
  * Internal case identifier
309
329
  */
@@ -504,23 +524,23 @@ export interface AppealHASCase {
504
524
  /**
505
525
  * First line of address for the appeal site
506
526
  */
507
- siteAddressLine1: string;
527
+ siteAddressLine1?: string | null;
508
528
  /**
509
529
  * Second line of address for the appeal site
510
530
  */
511
- siteAddressLine2: string | null;
531
+ siteAddressLine2?: string | null;
512
532
  /**
513
533
  * Town / City of the site address
514
534
  */
515
- siteAddressTown: string;
535
+ siteAddressTown?: string | null;
516
536
  /**
517
537
  * County of the site address
518
538
  */
519
- siteAddressCounty: string | null;
539
+ siteAddressCounty?: string | null;
520
540
  /**
521
541
  * Postal code of the site address
522
542
  */
523
- siteAddressPostcode: string;
543
+ siteAddressPostcode?: string | null;
524
544
  /**
525
545
  * Provided information on site accessibility
526
546
  */
@@ -549,6 +569,90 @@ export interface AppealHASCase {
549
569
  * Indicates if the site is in a conservation area
550
570
  */
551
571
  inConservationArea: boolean | null;
572
+ /**
573
+ * Indicates if the development affects a scheduled monument
574
+ */
575
+ affectsScheduledMonument?: boolean | null;
576
+ /**
577
+ * Indicates if the site hosts protected species
578
+ */
579
+ hasProtectedSpecies?: boolean | null;
580
+ /**
581
+ * Indicates an area of outstanding beauty (National Landscape)
582
+ */
583
+ isAonbNationalLandscape?: boolean | null;
584
+ /**
585
+ * Indicates if site is on highway land
586
+ */
587
+ isSiteOnHighwayLand?: boolean | null;
588
+ /**
589
+ * The designated site names
590
+ */
591
+ designatedSitesNames?: string[] | null;
592
+ /**
593
+ * Indicates the existence of an infrastructure levy
594
+ */
595
+ hasInfrastructureLevy?: boolean | null;
596
+ /**
597
+ * Indicates if the infrastructure levy is formally adopted
598
+ */
599
+ isInfrastructureLevyFormallyAdopted?: boolean | null;
600
+ /**
601
+ * The date of the infrastructure levy adoption
602
+ */
603
+ infrastructureLevyAdoptedDate?: string | null;
604
+ /**
605
+ * The expected date of the infrastructure levy
606
+ */
607
+ infrastructureLevyExpectedDate?: string | null;
608
+ /**
609
+ * The procedure preference indicated by the LPA
610
+ */
611
+ lpaProcedurePreference?: 'written' | 'hearing' | 'inquiry' | null;
612
+ /**
613
+ * The procedure details preference indicated by the LPA
614
+ */
615
+ lpaProcedurePreferenceDetails?: string | null;
616
+ /**
617
+ * The duration of enquiry indicated by the LPA
618
+ */
619
+ lpaProcedurePreferenceDuration?: number | null;
620
+ /**
621
+ * TBC
622
+ */
623
+ caseworkReason?: string | null;
624
+ /**
625
+ * Information relevant to case...
626
+ */
627
+ importantInformation?: string | null;
628
+ /**
629
+ * Under whose jurisdiction the decision falls
630
+ */
631
+ jurisdiction?: string | null;
632
+ /**
633
+ * Has the case been selected for redetermination
634
+ */
635
+ redeterminedIndicator?: boolean | null;
636
+ /**
637
+ * The date that the costs report was sent
638
+ */
639
+ dateCostsReportDespatched?: string | null;
640
+ /**
641
+ * The date that is TBC
642
+ */
643
+ dateNotRecoveredOrDerecovered?: string | null;
644
+ /**
645
+ * The date that case was recovered
646
+ */
647
+ dateRecovered?: string | null;
648
+ /**
649
+ * The original case decision date
650
+ */
651
+ originalCaseDecisionDate?: string | null;
652
+ /**
653
+ * The target date for case completion
654
+ */
655
+ targetDate?: string | null;
552
656
  /**
553
657
  * Indicates if the appellant has complete ownership of the site
554
658
  */
@@ -656,8 +760,31 @@ export interface AppealHASCase {
656
760
  | 'minor-commercial-development'
657
761
  | 'advertisement'
658
762
  | null;
763
+ siteGridReferenceEasting?: string | null;
764
+ siteGridReferenceNorthing?: string | null;
765
+ /**
766
+ * Indicates if the appellant has land owners permission
767
+ */
768
+ hasLandownersPermission?: boolean | null;
769
+ /**
770
+ * Indicates if the advert is already in position
771
+ */
772
+ isAdvertInPosition?: boolean | null;
773
+ /**
774
+ * Indicates if the site is in an area of special control for adverts
775
+ */
776
+ isSiteInAreaOfSpecialControlAdverts?: boolean | null;
777
+ /**
778
+ * Indicates if the application was refused because of highway or traffic public safety?
779
+ */
780
+ wasApplicationRefusedDueToHighwayOrTraffic?: boolean | null;
781
+ /**
782
+ * Indicates if the appellant submitted complete and accurate photographs and plans
783
+ */
784
+ didAppellantSubmitCompletePhotosAndPlans?: boolean | null;
785
+ advertType?: string | null;
659
786
  [k: string]: unknown;
660
- }
787
+ };
661
788
 
662
789
  /**
663
790
  * Schema defining the metadata for appeal representations, such as statements, third-party comments and final comments
@@ -746,9 +873,29 @@ export interface AppealRepresentation {
746
873
  }
747
874
 
748
875
  /**
749
- * Schema defining the metadata for an appeal (S78)
876
+ * Group B - Schema defining the metadata for an appeal
750
877
  */
751
- export interface AppealS78Case {
878
+ export type AppealS78Case = (
879
+ | {
880
+ siteGridReferenceEasting: {
881
+ [k: string]: unknown;
882
+ };
883
+ siteGridReferenceNorthing: {
884
+ [k: string]: unknown;
885
+ };
886
+ }
887
+ | {
888
+ siteAddressLine1: {
889
+ [k: string]: unknown;
890
+ };
891
+ siteAddressTown: {
892
+ [k: string]: unknown;
893
+ };
894
+ siteAddressPostcode: {
895
+ [k: string]: unknown;
896
+ };
897
+ }
898
+ ) & {
752
899
  /**
753
900
  * Internal case identifier
754
901
  */
@@ -953,23 +1100,23 @@ export interface AppealS78Case {
953
1100
  /**
954
1101
  * First line of address for the appeal site
955
1102
  */
956
- siteAddressLine1: string;
1103
+ siteAddressLine1?: string | null;
957
1104
  /**
958
1105
  * Second line of address for the appeal site
959
1106
  */
960
- siteAddressLine2: string | null;
1107
+ siteAddressLine2?: string | null;
961
1108
  /**
962
1109
  * Town / City of the site address
963
1110
  */
964
- siteAddressTown: string;
1111
+ siteAddressTown?: string | null;
965
1112
  /**
966
1113
  * County of the site address
967
1114
  */
968
- siteAddressCounty: string | null;
1115
+ siteAddressCounty?: string | null;
969
1116
  /**
970
1117
  * Postal code of the site address
971
1118
  */
972
- siteAddressPostcode: string;
1119
+ siteAddressPostcode?: string | null;
973
1120
  /**
974
1121
  * Provided information on site accessibility
975
1122
  */
@@ -1271,8 +1418,8 @@ export interface AppealS78Case {
1271
1418
  * The net gain in residences of the proposed development
1272
1419
  */
1273
1420
  numberOfResidencesNetChange: number | null;
1274
- siteGridReferenceEasting: string | null;
1275
- siteGridReferenceNorthing: string | null;
1421
+ siteGridReferenceEasting?: string | null;
1422
+ siteGridReferenceNorthing?: string | null;
1276
1423
  siteViewableFromRoad: boolean | null;
1277
1424
  siteWithinSSSI: boolean | null;
1278
1425
  typeOfPlanningApplication:
@@ -1306,7 +1453,7 @@ export interface AppealS78Case {
1306
1453
  statementOfCommonGroundDueDate?: string | null;
1307
1454
  planningObligationDueDate?: string | null;
1308
1455
  [k: string]: unknown;
1309
- }
1456
+ };
1310
1457
 
1311
1458
  /**
1312
1459
  * Schema defining the data returned by the DaRT API
@@ -2585,10 +2732,49 @@ export interface ServiceUser {
2585
2732
  [k: string]: unknown;
2586
2733
  }
2587
2734
 
2735
+ /**
2736
+ * Schema defining any properties for advertisement appeals
2737
+ */
2738
+ export interface AdvertSpecificProperties {
2739
+ /**
2740
+ * Indicates if the appellant has land owners permission
2741
+ */
2742
+ hasLandownersPermission: boolean | null;
2743
+ /**
2744
+ * Indicates if the advert is already in position
2745
+ */
2746
+ isAdvertInPosition: boolean | null;
2747
+ /**
2748
+ * Indicates if site is on highway land
2749
+ */
2750
+ isSiteOnHighwayLand: boolean | null;
2751
+ [k: string]: unknown;
2752
+ }
2753
+
2588
2754
  /**
2589
2755
  * Schema defining any properties common across all appeal types for appeal submissions
2590
2756
  */
2591
- export interface AppellantCommonSubmissionProperties {
2757
+ export type AppellantCommonSubmissionProperties = (
2758
+ | {
2759
+ siteGridReferenceEasting: {
2760
+ [k: string]: unknown;
2761
+ };
2762
+ siteGridReferenceNorthing: {
2763
+ [k: string]: unknown;
2764
+ };
2765
+ }
2766
+ | {
2767
+ siteAddressLine1: {
2768
+ [k: string]: unknown;
2769
+ };
2770
+ siteAddressTown: {
2771
+ [k: string]: unknown;
2772
+ };
2773
+ siteAddressPostcode: {
2774
+ [k: string]: unknown;
2775
+ };
2776
+ }
2777
+ ) & {
2592
2778
  /**
2593
2779
  * Case submission id - link to draft submission created by appellant
2594
2780
  */
@@ -2632,23 +2818,25 @@ export interface AppellantCommonSubmissionProperties {
2632
2818
  /**
2633
2819
  * First line of address for the appeal site
2634
2820
  */
2635
- siteAddressLine1: string;
2821
+ siteAddressLine1?: string | null;
2636
2822
  /**
2637
2823
  * Second line of address for the appeal site
2638
2824
  */
2639
- siteAddressLine2: string | null;
2825
+ siteAddressLine2?: string | null;
2640
2826
  /**
2641
2827
  * Town / City of the site address
2642
2828
  */
2643
- siteAddressTown: string;
2829
+ siteAddressTown?: string | null;
2644
2830
  /**
2645
2831
  * County of the site address
2646
2832
  */
2647
- siteAddressCounty: string | null;
2833
+ siteAddressCounty?: string | null;
2648
2834
  /**
2649
2835
  * Postal code of the site address
2650
2836
  */
2651
- siteAddressPostcode: string;
2837
+ siteAddressPostcode?: string | null;
2838
+ siteGridReferenceEasting?: string | null;
2839
+ siteGridReferenceNorthing?: string | null;
2652
2840
  /**
2653
2841
  * Provided information on site accessibility
2654
2842
  */
@@ -2709,12 +2897,12 @@ export interface AppellantCommonSubmissionProperties {
2709
2897
  | 'advertisement'
2710
2898
  | null;
2711
2899
  [k: string]: unknown;
2712
- }
2900
+ };
2713
2901
 
2714
2902
  /**
2715
2903
  * Schema defining any HAS specific properties for submissions
2716
2904
  */
2717
- export type AppellantHASSubmissionProperties = AppellantCommonSubmissionProperties & {
2905
+ export type AppellantHASSubmissionProperties = {
2718
2906
  /**
2719
2907
  * Indicates if the site is in a green belt
2720
2908
  */
@@ -2765,132 +2953,6 @@ export type AppellantHASSubmissionProperties = AppellantCommonSubmissionProperti
2765
2953
  appellantCostsAppliedFor?: boolean | null;
2766
2954
  };
2767
2955
 
2768
- /**
2769
- * Schema defining any properties common across all appeal types for appeal submissions
2770
- */
2771
- export interface AppellantCommonSubmissionProperties {
2772
- /**
2773
- * Case submission id - link to draft submission created by appellant
2774
- */
2775
- submissionId: string;
2776
- /**
2777
- * The type of procedure for the appeal
2778
- */
2779
- caseProcedure: 'written' | 'hearing' | 'inquiry';
2780
- /**
2781
- * A unique identifier for the Local Planning Authority
2782
- */
2783
- lpaCode: string;
2784
- /**
2785
- * The date the appeal was submitted by the appellant
2786
- */
2787
- caseSubmittedDate: string;
2788
- /**
2789
- * Indicates if an enforcement notice is the reason for the appeal
2790
- */
2791
- enforcementNotice: boolean | null;
2792
- /**
2793
- * The unique identifier of the LPA application
2794
- */
2795
- applicationReference: string;
2796
- /**
2797
- * The date of the original LPA application
2798
- */
2799
- applicationDate: string;
2800
- /**
2801
- * The outcome of the original LPA decision
2802
- */
2803
- applicationDecision: 'granted' | 'refused' | 'not_received';
2804
- /**
2805
- * The date of the original LPA decision
2806
- */
2807
- applicationDecisionDate: string | null;
2808
- /**
2809
- * The statutory deadline for submitting an appeal from the original LPA decision date
2810
- */
2811
- caseSubmissionDueDate: string | null;
2812
- /**
2813
- * First line of address for the appeal site
2814
- */
2815
- siteAddressLine1: string;
2816
- /**
2817
- * Second line of address for the appeal site
2818
- */
2819
- siteAddressLine2: string | null;
2820
- /**
2821
- * Town / City of the site address
2822
- */
2823
- siteAddressTown: string;
2824
- /**
2825
- * County of the site address
2826
- */
2827
- siteAddressCounty: string | null;
2828
- /**
2829
- * Postal code of the site address
2830
- */
2831
- siteAddressPostcode: string;
2832
- /**
2833
- * Provided information on site accessibility
2834
- */
2835
- siteAccessDetails: string[] | null;
2836
- /**
2837
- * Provided information on site health and safety
2838
- */
2839
- siteSafetyDetails: string[] | null;
2840
- /**
2841
- * A list of neighbouring site addresses
2842
- */
2843
- neighbouringSiteAddresses:
2844
- | {
2845
- /**
2846
- * First line of address of the site
2847
- */
2848
- neighbouringSiteAddressLine1: string;
2849
- /**
2850
- * Second line of address of the site
2851
- */
2852
- neighbouringSiteAddressLine2: string | null;
2853
- /**
2854
- * Town / City of the site address
2855
- */
2856
- neighbouringSiteAddressTown: string;
2857
- /**
2858
- * County of the site address
2859
- */
2860
- neighbouringSiteAddressCounty: string | null;
2861
- /**
2862
- * Postal code of the site address
2863
- */
2864
- neighbouringSiteAddressPostcode: string;
2865
- /**
2866
- * Provided information on site accessibility on this address
2867
- */
2868
- neighbouringSiteAccessDetails: string | null;
2869
- /**
2870
- * Provided information on site health and safety on this address
2871
- */
2872
- neighbouringSiteSafetyDetails: string | null;
2873
- [k: string]: unknown;
2874
- }[]
2875
- | null;
2876
- /**
2877
- * A list of related case references known to the appellant and the LPA
2878
- */
2879
- nearbyCaseReferences: string[] | null;
2880
- typeOfPlanningApplication?:
2881
- | 'full-appeal'
2882
- | 'householder-planning'
2883
- | 'outline-planning'
2884
- | 'prior-approval'
2885
- | 'reserved-matters'
2886
- | 'removal-or-variation-of-conditions'
2887
- | 'listed-building'
2888
- | 'minor-commercial-development'
2889
- | 'advertisement'
2890
- | null;
2891
- [k: string]: unknown;
2892
- }
2893
-
2894
2956
  /**
2895
2957
  * Schema defining the data produced by the Front-Office when a representation is created on an appeal
2896
2958
  */
@@ -3025,7 +3087,7 @@ export type AppealRepresentationSubmission = {
3025
3087
  /**
3026
3088
  * Schema defining any S78 specific properties for questionnaire submissions
3027
3089
  */
3028
- export type AppellantS78SubmissionProperties = AppellantHASSubmissionProperties & {
3090
+ export type AppellantS78SubmissionProperties = {
3029
3091
  /**
3030
3092
  * Indicates if the site is an agricultural holding
3031
3093
  */
@@ -3084,72 +3146,39 @@ export type AppellantS78SubmissionProperties = AppellantHASSubmissionProperties
3084
3146
  | 'other-minor'
3085
3147
  | null;
3086
3148
  };
3149
+
3087
3150
  /**
3088
- * Schema defining any HAS specific properties for submissions
3151
+ * Schema defining any properties common across all appeal types for appeal submissions
3089
3152
  */
3090
- export type AppellantHASSubmissionProperties = AppellantCommonSubmissionProperties & {
3153
+ export type AppellantCommonSubmissionProperties = (
3154
+ | {
3155
+ siteGridReferenceEasting: {
3156
+ [k: string]: unknown;
3157
+ };
3158
+ siteGridReferenceNorthing: {
3159
+ [k: string]: unknown;
3160
+ };
3161
+ }
3162
+ | {
3163
+ siteAddressLine1: {
3164
+ [k: string]: unknown;
3165
+ };
3166
+ siteAddressTown: {
3167
+ [k: string]: unknown;
3168
+ };
3169
+ siteAddressPostcode: {
3170
+ [k: string]: unknown;
3171
+ };
3172
+ }
3173
+ ) & {
3091
3174
  /**
3092
- * Indicates if the site is in a green belt
3175
+ * Case submission id - link to draft submission created by appellant
3093
3176
  */
3094
- isGreenBelt?: boolean | null;
3177
+ submissionId: string;
3095
3178
  /**
3096
- * The site area, in square meters
3179
+ * The type of procedure for the appeal
3097
3180
  */
3098
- siteAreaSquareMetres?: number | null;
3099
- /**
3100
- * The floor space, in square meters
3101
- */
3102
- floorSpaceSquareMetres?: number | null;
3103
- /**
3104
- * Indicates if the appellant has complete ownership of the site
3105
- */
3106
- ownsAllLand?: boolean | null;
3107
- /**
3108
- * Indicates if the appellant has partial ownership of the site
3109
- */
3110
- ownsSomeLand?: boolean | null;
3111
- /**
3112
- * Indicates if the appellant knows other owners of the site
3113
- */
3114
- knowsOtherOwners?: 'Yes' | 'No' | 'Some' | null;
3115
- /**
3116
- * Indicates if the appellant knows all owners of the site
3117
- */
3118
- knowsAllOwners?: 'Yes' | 'No' | 'Some' | null;
3119
- /**
3120
- * Indicates if the appellant has advertised the appeal to the LPA decision
3121
- */
3122
- advertisedAppeal?: boolean | null;
3123
- /**
3124
- * Indicates if the appellant has informed other owners of the site
3125
- */
3126
- ownersInformed?: boolean | null;
3127
- /**
3128
- * The original description of the development, as provided by the appellant
3129
- */
3130
- originalDevelopmentDescription?: string | null;
3131
- /**
3132
- * Indicates that the LPA has changed the development description
3133
- */
3134
- changedDevelopmentDescription?: boolean | null;
3135
- /**
3136
- * Indicates if the appellant has applied for costs
3137
- */
3138
- appellantCostsAppliedFor?: boolean | null;
3139
- };
3140
-
3141
- /**
3142
- * Schema defining any properties common across all appeal types for appeal submissions
3143
- */
3144
- export interface AppellantCommonSubmissionProperties {
3145
- /**
3146
- * Case submission id - link to draft submission created by appellant
3147
- */
3148
- submissionId: string;
3149
- /**
3150
- * The type of procedure for the appeal
3151
- */
3152
- caseProcedure: 'written' | 'hearing' | 'inquiry';
3181
+ caseProcedure: 'written' | 'hearing' | 'inquiry';
3153
3182
  /**
3154
3183
  * A unique identifier for the Local Planning Authority
3155
3184
  */
@@ -3185,23 +3214,25 @@ export interface AppellantCommonSubmissionProperties {
3185
3214
  /**
3186
3215
  * First line of address for the appeal site
3187
3216
  */
3188
- siteAddressLine1: string;
3217
+ siteAddressLine1?: string | null;
3189
3218
  /**
3190
3219
  * Second line of address for the appeal site
3191
3220
  */
3192
- siteAddressLine2: string | null;
3221
+ siteAddressLine2?: string | null;
3193
3222
  /**
3194
3223
  * Town / City of the site address
3195
3224
  */
3196
- siteAddressTown: string;
3225
+ siteAddressTown?: string | null;
3197
3226
  /**
3198
3227
  * County of the site address
3199
3228
  */
3200
- siteAddressCounty: string | null;
3229
+ siteAddressCounty?: string | null;
3201
3230
  /**
3202
3231
  * Postal code of the site address
3203
3232
  */
3204
- siteAddressPostcode: string;
3233
+ siteAddressPostcode?: string | null;
3234
+ siteGridReferenceEasting?: string | null;
3235
+ siteGridReferenceNorthing?: string | null;
3205
3236
  /**
3206
3237
  * Provided information on site accessibility
3207
3238
  */
@@ -3262,12 +3293,11 @@ export interface AppellantCommonSubmissionProperties {
3262
3293
  | 'advertisement'
3263
3294
  | null;
3264
3295
  [k: string]: unknown;
3265
- }
3266
-
3296
+ };
3267
3297
  /**
3268
3298
  * Schema defining any HAS specific properties for submissions
3269
3299
  */
3270
- export type AppellantHASSubmissionProperties = AppellantCommonSubmissionProperties & {
3300
+ export type AppellantHASSubmissionProperties = {
3271
3301
  /**
3272
3302
  * Indicates if the site is in a green belt
3273
3303
  */
@@ -3320,7 +3350,7 @@ export type AppellantHASSubmissionProperties = AppellantCommonSubmissionProperti
3320
3350
  /**
3321
3351
  * Schema defining any S78 specific properties for questionnaire submissions
3322
3352
  */
3323
- export type AppellantS78SubmissionProperties = AppellantHASSubmissionProperties & {
3353
+ export type AppellantS78SubmissionProperties = {
3324
3354
  /**
3325
3355
  * Indicates if the site is an agricultural holding
3326
3356
  */
@@ -3386,17 +3416,19 @@ export type AppellantS78SubmissionProperties = AppellantHASSubmissionProperties
3386
3416
  export interface AppellantSubmissionCommand {
3387
3417
  casedata:
3388
3418
  | ({
3389
- caseType?: 'D';
3390
- } & AppellantHASSubmissionProperties)
3419
+ caseType?: 'D' | 'ZP';
3420
+ } & AppellantCommonSubmissionProperties &
3421
+ AppellantHASSubmissionProperties)
3391
3422
  | ({
3392
- caseType?: 'ZP';
3393
- } & AppellantHASSubmissionProperties)
3423
+ caseType?: 'W' | 'Y';
3424
+ } & AppellantCommonSubmissionProperties &
3425
+ AppellantHASSubmissionProperties &
3426
+ AppellantS78SubmissionProperties)
3394
3427
  | ({
3395
- caseType?: 'W';
3396
- } & AppellantS78SubmissionProperties)
3397
- | ({
3398
- caseType?: 'Y';
3399
- } & AppellantS78SubmissionProperties);
3428
+ caseType?: 'H' | 'ZA';
3429
+ } & AppellantCommonSubmissionProperties &
3430
+ AppellantHASSubmissionProperties &
3431
+ AdvertSpecificProperties);
3400
3432
  documents: {
3401
3433
  /**
3402
3434
  * The unique identifier for the document
@@ -3520,128 +3552,21 @@ export interface AppellantSubmissionCommand {
3520
3552
  [k: string]: unknown;
3521
3553
  }
3522
3554
  /**
3523
- * Schema defining any properties common across all appeal types for appeal submissions
3555
+ * Schema defining any properties for advertisement appeals
3524
3556
  */
3525
- export interface AppellantCommonSubmissionProperties {
3526
- /**
3527
- * Case submission id - link to draft submission created by appellant
3528
- */
3529
- submissionId: string;
3530
- /**
3531
- * The type of procedure for the appeal
3532
- */
3533
- caseProcedure: 'written' | 'hearing' | 'inquiry';
3534
- /**
3535
- * A unique identifier for the Local Planning Authority
3536
- */
3537
- lpaCode: string;
3538
- /**
3539
- * The date the appeal was submitted by the appellant
3540
- */
3541
- caseSubmittedDate: string;
3542
- /**
3543
- * Indicates if an enforcement notice is the reason for the appeal
3544
- */
3545
- enforcementNotice: boolean | null;
3546
- /**
3547
- * The unique identifier of the LPA application
3548
- */
3549
- applicationReference: string;
3557
+ export interface AdvertSpecificProperties {
3550
3558
  /**
3551
- * The date of the original LPA application
3552
- */
3553
- applicationDate: string;
3554
- /**
3555
- * The outcome of the original LPA decision
3556
- */
3557
- applicationDecision: 'granted' | 'refused' | 'not_received';
3558
- /**
3559
- * The date of the original LPA decision
3560
- */
3561
- applicationDecisionDate: string | null;
3562
- /**
3563
- * The statutory deadline for submitting an appeal from the original LPA decision date
3559
+ * Indicates if the appellant has land owners permission
3564
3560
  */
3565
- caseSubmissionDueDate: string | null;
3561
+ hasLandownersPermission: boolean | null;
3566
3562
  /**
3567
- * First line of address for the appeal site
3563
+ * Indicates if the advert is already in position
3568
3564
  */
3569
- siteAddressLine1: string;
3570
- /**
3571
- * Second line of address for the appeal site
3572
- */
3573
- siteAddressLine2: string | null;
3574
- /**
3575
- * Town / City of the site address
3576
- */
3577
- siteAddressTown: string;
3578
- /**
3579
- * County of the site address
3580
- */
3581
- siteAddressCounty: string | null;
3582
- /**
3583
- * Postal code of the site address
3584
- */
3585
- siteAddressPostcode: string;
3586
- /**
3587
- * Provided information on site accessibility
3588
- */
3589
- siteAccessDetails: string[] | null;
3590
- /**
3591
- * Provided information on site health and safety
3592
- */
3593
- siteSafetyDetails: string[] | null;
3594
- /**
3595
- * A list of neighbouring site addresses
3596
- */
3597
- neighbouringSiteAddresses:
3598
- | {
3599
- /**
3600
- * First line of address of the site
3601
- */
3602
- neighbouringSiteAddressLine1: string;
3603
- /**
3604
- * Second line of address of the site
3605
- */
3606
- neighbouringSiteAddressLine2: string | null;
3607
- /**
3608
- * Town / City of the site address
3609
- */
3610
- neighbouringSiteAddressTown: string;
3611
- /**
3612
- * County of the site address
3613
- */
3614
- neighbouringSiteAddressCounty: string | null;
3615
- /**
3616
- * Postal code of the site address
3617
- */
3618
- neighbouringSiteAddressPostcode: string;
3619
- /**
3620
- * Provided information on site accessibility on this address
3621
- */
3622
- neighbouringSiteAccessDetails: string | null;
3623
- /**
3624
- * Provided information on site health and safety on this address
3625
- */
3626
- neighbouringSiteSafetyDetails: string | null;
3627
- [k: string]: unknown;
3628
- }[]
3629
- | null;
3565
+ isAdvertInPosition: boolean | null;
3630
3566
  /**
3631
- * A list of related case references known to the appellant and the LPA
3567
+ * Indicates if site is on highway land
3632
3568
  */
3633
- nearbyCaseReferences: string[] | null;
3634
- typeOfPlanningApplication?:
3635
- | 'full-appeal'
3636
- | 'householder-planning'
3637
- | 'outline-planning'
3638
- | 'prior-approval'
3639
- | 'reserved-matters'
3640
- | 'removal-or-variation-of-conditions'
3641
- | 'listed-building'
3642
- | 'minor-commercial-development'
3643
- | 'advertisement'
3644
- | null;
3569
+ isSiteOnHighwayLand: boolean | null;
3645
3570
  [k: string]: unknown;
3646
3571
  }
3647
3572
 
@@ -3742,7 +3667,7 @@ export interface LPAQCommonSubmissionProperties {
3742
3667
  /**
3743
3668
  * Schema defining any HAS specific properties for LPAQ submissions
3744
3669
  */
3745
- export type LPAQHASSubmissionProperties = LPAQCommonSubmissionProperties & {
3670
+ export type LPAQHASSubmissionProperties = {
3746
3671
  /**
3747
3672
  * Indicates if the LPA considers the appeal type appropriate
3748
3673
  */
@@ -3777,77 +3702,10 @@ export type LPAQHASSubmissionProperties = LPAQCommonSubmissionProperties & {
3777
3702
  lpaStatement?: string | null;
3778
3703
  };
3779
3704
 
3780
- /**
3781
- * Schema defining any properties common across all appeal types for LPAQ submissions
3782
- */
3783
- export interface LPAQCommonSubmissionProperties {
3784
- /**
3785
- * External case identifier
3786
- */
3787
- caseReference: string;
3788
- /**
3789
- * The date the LPA provided a response to the case
3790
- */
3791
- lpaQuestionnaireSubmittedDate: string | null;
3792
- /**
3793
- * Provided information on site accessibility
3794
- */
3795
- siteAccessDetails: string[] | null;
3796
- /**
3797
- * Provided information on site health and safety
3798
- */
3799
- siteSafetyDetails: string[] | null;
3800
- /**
3801
- * A list of related case references known to the appellant and the LPA
3802
- */
3803
- nearbyCaseReferences: string[] | null;
3804
- /**
3805
- * A list of neighbouring site addresses
3806
- */
3807
- neighbouringSiteAddresses:
3808
- | {
3809
- /**
3810
- * First line of address of the site
3811
- */
3812
- neighbouringSiteAddressLine1: string;
3813
- /**
3814
- * Second line of address of the site
3815
- */
3816
- neighbouringSiteAddressLine2: string | null;
3817
- /**
3818
- * Town / City of the site address
3819
- */
3820
- neighbouringSiteAddressTown: string;
3821
- /**
3822
- * County of the site address
3823
- */
3824
- neighbouringSiteAddressCounty: string | null;
3825
- /**
3826
- * Postal code of the site address
3827
- */
3828
- neighbouringSiteAddressPostcode: string;
3829
- /**
3830
- * Provided information on site accessibility on this address
3831
- */
3832
- neighbouringSiteAccessDetails: string | null;
3833
- /**
3834
- * Provided information on site health and safety on this address
3835
- */
3836
- neighbouringSiteSafetyDetails: string | null;
3837
- [k: string]: unknown;
3838
- }[]
3839
- | null;
3840
- /**
3841
- * A general reason given for the need to visit any neighbours
3842
- */
3843
- reasonForNeighbourVisits?: string | null;
3844
- [k: string]: unknown;
3845
- }
3846
-
3847
3705
  /**
3848
3706
  * Schema defining any S78 specific properties for LPAQ submissions
3849
3707
  */
3850
- export type LPAQS78SubmissionProperties = LPAQHASSubmissionProperties & {
3708
+ export type LPAQS78SubmissionProperties = {
3851
3709
  /**
3852
3710
  * A list of changed listed building IDs from Historic England
3853
3711
  */
@@ -3979,115 +3837,11 @@ export type LPAQS78SubmissionProperties = LPAQHASSubmissionProperties & {
3979
3837
  */
3980
3838
  lpaProcedurePreferenceDuration?: number | null;
3981
3839
  };
3982
- /**
3983
- * Schema defining any HAS specific properties for LPAQ submissions
3984
- */
3985
- export type LPAQHASSubmissionProperties = LPAQCommonSubmissionProperties & {
3986
- /**
3987
- * Indicates if the LPA considers the appeal type appropriate
3988
- */
3989
- isCorrectAppealType?: boolean | null;
3990
- /**
3991
- * A list of affected listed building IDs from Historic England
3992
- */
3993
- affectedListedBuildingNumbers?: string[] | null;
3994
- /**
3995
- * Indicates if the site is in a green belt
3996
- */
3997
- isGreenBelt?: boolean | null;
3998
- /**
3999
- * Indicates if the site is in a conservation area
4000
- */
4001
- inConservationArea?: boolean | null;
4002
- /**
4003
- * New conditions details provided by the LPA
4004
- */
4005
- newConditionDetails?: string | null;
4006
- /**
4007
- * The methods used to notify relevant parties
4008
- */
4009
- notificationMethod?: string[] | null;
4010
- /**
4011
- * Indicates if the LPA has applied for costs
4012
- */
4013
- lpaCostsAppliedFor?: boolean | null;
4014
- /**
4015
- * A statement provided by the LPA, unused?
4016
- */
4017
- lpaStatement?: string | null;
4018
- };
4019
-
4020
- /**
4021
- * Schema defining any properties common across all appeal types for LPAQ submissions
4022
- */
4023
- export interface LPAQCommonSubmissionProperties {
4024
- /**
4025
- * External case identifier
4026
- */
4027
- caseReference: string;
4028
- /**
4029
- * The date the LPA provided a response to the case
4030
- */
4031
- lpaQuestionnaireSubmittedDate: string | null;
4032
- /**
4033
- * Provided information on site accessibility
4034
- */
4035
- siteAccessDetails: string[] | null;
4036
- /**
4037
- * Provided information on site health and safety
4038
- */
4039
- siteSafetyDetails: string[] | null;
4040
- /**
4041
- * A list of related case references known to the appellant and the LPA
4042
- */
4043
- nearbyCaseReferences: string[] | null;
4044
- /**
4045
- * A list of neighbouring site addresses
4046
- */
4047
- neighbouringSiteAddresses:
4048
- | {
4049
- /**
4050
- * First line of address of the site
4051
- */
4052
- neighbouringSiteAddressLine1: string;
4053
- /**
4054
- * Second line of address of the site
4055
- */
4056
- neighbouringSiteAddressLine2: string | null;
4057
- /**
4058
- * Town / City of the site address
4059
- */
4060
- neighbouringSiteAddressTown: string;
4061
- /**
4062
- * County of the site address
4063
- */
4064
- neighbouringSiteAddressCounty: string | null;
4065
- /**
4066
- * Postal code of the site address
4067
- */
4068
- neighbouringSiteAddressPostcode: string;
4069
- /**
4070
- * Provided information on site accessibility on this address
4071
- */
4072
- neighbouringSiteAccessDetails: string | null;
4073
- /**
4074
- * Provided information on site health and safety on this address
4075
- */
4076
- neighbouringSiteSafetyDetails: string | null;
4077
- [k: string]: unknown;
4078
- }[]
4079
- | null;
4080
- /**
4081
- * A general reason given for the need to visit any neighbours
4082
- */
4083
- reasonForNeighbourVisits?: string | null;
4084
- [k: string]: unknown;
4085
- }
4086
3840
 
4087
3841
  /**
4088
3842
  * Schema defining any HAS specific properties for LPAQ submissions
4089
3843
  */
4090
- export type LPAQHASSubmissionProperties = LPAQCommonSubmissionProperties & {
3844
+ export type LPAQHASSubmissionProperties = {
4091
3845
  /**
4092
3846
  * Indicates if the LPA considers the appeal type appropriate
4093
3847
  */
@@ -4124,7 +3878,7 @@ export type LPAQHASSubmissionProperties = LPAQCommonSubmissionProperties & {
4124
3878
  /**
4125
3879
  * Schema defining any S78 specific properties for LPAQ submissions
4126
3880
  */
4127
- export type LPAQS78SubmissionProperties = LPAQHASSubmissionProperties & {
3881
+ export type LPAQS78SubmissionProperties = {
4128
3882
  /**
4129
3883
  * A list of changed listed building IDs from Historic England
4130
3884
  */
@@ -4263,20 +4017,17 @@ export type LPAQS78SubmissionProperties = LPAQHASSubmissionProperties & {
4263
4017
  export interface LPAQuestionnaireCommand {
4264
4018
  casedata:
4265
4019
  | ({
4266
- [k: string]: unknown;
4267
- } & LPAQHASSubmissionProperties)
4268
- | ({
4269
- caseType?: 'W';
4270
- } & LPAQS78SubmissionProperties)
4271
- | ({
4272
- caseType?: 'Y';
4273
- } & LPAQS78SubmissionProperties)
4020
+ caseType?: 'D' | 'ZP';
4021
+ } & LPAQCommonSubmissionProperties &
4022
+ LPAQHASSubmissionProperties)
4274
4023
  | ({
4275
- caseType?: 'D';
4276
- } & LPAQHASSubmissionProperties)
4024
+ caseType?: 'W' | 'Y';
4025
+ } & LPAQCommonSubmissionProperties &
4026
+ LPAQHASSubmissionProperties &
4027
+ LPAQS78SubmissionProperties)
4277
4028
  | ({
4278
- caseType?: 'ZP';
4279
- } & LPAQHASSubmissionProperties);
4029
+ caseType?: 'H' | 'ZA';
4030
+ } & LPAQCommonSubmissionProperties);
4280
4031
  documents: {
4281
4032
  /**
4282
4033
  * The unique identifier for the document