@planning-inspectorate/data-model 2.49.0 → 2.50.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.
Files changed (31) hide show
  1. package/docs/README.md +23 -1
  2. package/docs/address.md +366 -0
  3. package/docs/applications-application-defs-address.md +108 -0
  4. package/docs/applications-application-defs-contact.md +98 -0
  5. package/docs/applications-application-defs-organisation.md +117 -0
  6. package/docs/applications-application-defs.md +3 -0
  7. package/docs/{application-update.md → applications-application-update.md} +22 -22
  8. package/docs/applications-application.md +2250 -0
  9. package/docs/applications-notify-email-defs-contact.md +93 -0
  10. package/docs/applications-notify-email-defs.md +3 -0
  11. package/docs/applications-notify-email.md +458 -0
  12. package/docs/applications-representation-definitions-contact.md +93 -0
  13. package/docs/applications-representation-definitions-representationdocument.md +152 -0
  14. package/docs/applications-representation-definitions.md +3 -0
  15. package/docs/applications-representation.md +834 -0
  16. package/package.json +1 -1
  17. package/pins_data_model/models/model_address.py +69 -0
  18. package/pins_data_model/models/model_applications_application.py +518 -0
  19. package/pins_data_model/models/model_applications_application_update.py +55 -0
  20. package/pins_data_model/models/model_applications_notify_email.py +124 -0
  21. package/pins_data_model/models/model_applications_representation.py +207 -0
  22. package/schemas/address.schema.json +87 -0
  23. package/schemas/{application-update.schema.json → applications-application-update.schema.json} +1 -1
  24. package/schemas/applications-application.schema.json +539 -0
  25. package/schemas/applications-notify-email.schema.json +118 -0
  26. package/schemas/applications-representation.schema.json +202 -0
  27. package/src/enums.cjs +147 -0
  28. package/src/enums.d.ts +131 -0
  29. package/src/enums.js +131 -0
  30. package/src/index.cjs +147 -0
  31. package/src/schemas.d.ts +678 -1
package/src/schemas.d.ts CHANGED
@@ -5,6 +5,54 @@
5
5
  * and run json-schema-to-typescript to regenerate this file.
6
6
  */
7
7
 
8
+ /**
9
+ * A schema to define the structure of an Address object in PINS.
10
+ */
11
+ export interface PINSAddressSchema {
12
+ /**
13
+ * Primary Key for an Address.
14
+ */
15
+ addressDimKey: number;
16
+ /**
17
+ * The type of thing this address is for.
18
+ */
19
+ addressType?: 'site' | 'neighbouring' | 'organisation' | 'contact';
20
+ /**
21
+ * Business Key for the related case
22
+ */
23
+ caseReference: string;
24
+ /**
25
+ * The unique ID for the case this representation belongs to.
26
+ */
27
+ caseId: string;
28
+ /**
29
+ * The type of case this representation is for.
30
+ */
31
+ caseType: string;
32
+ /**
33
+ * Some sites may have a postcode, but do not have postal addresses.
34
+ */
35
+ description?: string | null;
36
+ line1?: string | null;
37
+ line2?: string | null;
38
+ townCity?: string | null;
39
+ county?: string | null;
40
+ postcode?: string | null;
41
+ country?: string | null;
42
+ easting?: string | null;
43
+ northing?: string | null;
44
+ latitudeWGS84?: number | null;
45
+ longitudeWGS84?: number | null;
46
+ /**
47
+ * The Unique Property Reference Number (UPRN) is a unique number (a geocode) for every addressable location—e.g., a building, a bus stop, a post box, a feature in the landscape, or a defibrillator—in Great Britain.
48
+ */
49
+ UPRN?: string | null;
50
+ dependentRequired?: {
51
+ [k: string]: unknown;
52
+ };
53
+ [k: string]: unknown;
54
+ }
55
+
8
56
  /**
9
57
  * Schema defining the metadata for appeal documents
10
58
  */
@@ -1808,6 +1856,631 @@ export interface ApplicationUpdateSchema {
1808
1856
  [k: string]: unknown;
1809
1857
  }
1810
1858
 
1859
+ /**
1860
+ * Main application details for Crown Development Project
1861
+ */
1862
+ export interface CrownDevelopmentApplication {
1863
+ /**
1864
+ * Internal Identifier UUID
1865
+ */
1866
+ id: string;
1867
+ /**
1868
+ * External Identifier: CROWN/YYYY/XXXXXXX
1869
+ */
1870
+ reference: string;
1871
+ /**
1872
+ * Date the case was created
1873
+ */
1874
+ createdDate: string;
1875
+ /**
1876
+ * Date the case was updated
1877
+ */
1878
+ updatedDate?: string | null;
1879
+ /**
1880
+ * Type of application. Name displayed to users
1881
+ */
1882
+ type:
1883
+ | 'Planning permission'
1884
+ | 'Outline planning permission with some matters reserved'
1885
+ | 'Outline planning permission with all matters reserved'
1886
+ | 'Approval of reserved matters following outline approval'
1887
+ | 'Planning permission and listed building consent (LBC) for alterations, extension or demolition of a listed building';
1888
+ /**
1889
+ * SubType applies to Planning permissions and LBC
1890
+ */
1891
+ subType?: ('Planning permission' | 'Listed building consent (LBC)') | null;
1892
+ /**
1893
+ * Self-referencial for parent to children relationship
1894
+ */
1895
+ linkedParentId?: string | null;
1896
+ /**
1897
+ * Description of the project
1898
+ */
1899
+ description?: string | null;
1900
+ /**
1901
+ * Primary Planning Body code
1902
+ */
1903
+ primaryLPACode?: string;
1904
+ /**
1905
+ * Secondary LPAs when project overlaps authorities
1906
+ */
1907
+ secondaryLPACode?: string | null;
1908
+ /**
1909
+ * Is an agent assigned to the case on behalf of the applicant
1910
+ */
1911
+ hasAgent: boolean;
1912
+ /**
1913
+ * Applications can have one or more organisaitons associated with them.
1914
+ */
1915
+ organisations?: Organisation[];
1916
+ /**
1917
+ * Site Address details
1918
+ */
1919
+ siteAddress?: Address[] | null;
1920
+ /**
1921
+ * Easting of the site, if known
1922
+ */
1923
+ siteEasting?: string | null;
1924
+ /**
1925
+ * Northing of the site, if known
1926
+ */
1927
+ siteNorthing?: string | null;
1928
+ /**
1929
+ * Site area in hectares
1930
+ */
1931
+ siteArea?: number | null;
1932
+ /**
1933
+ * Date case officer expects the application to be submitted (NB: cases are created before document submissions as applicants upload directly)
1934
+ */
1935
+ expectedDateOfSubmission?: string;
1936
+ /**
1937
+ * Current status of the case (enum)
1938
+ */
1939
+ applicationStatus?:
1940
+ | 'New'
1941
+ | 'Accepted'
1942
+ | 'Invalid'
1943
+ | 'Consultation period open'
1944
+ | 'Hearing/Inquiry date set'
1945
+ | 'Application on hold awaiting further information'
1946
+ | 'Report awaited'
1947
+ | 'Report sent to Decision Branch'
1948
+ | 'Decision awaited'
1949
+ | 'Decided'
1950
+ | 'Withdrawn'
1951
+ | 'Declined to determine'
1952
+ | 'Closed - invalid'
1953
+ | 'Closed - opened in error';
1954
+ /**
1955
+ * Current stage of the case (enum)
1956
+ */
1957
+ applicationStage?:
1958
+ | (
1959
+ | 'Accepted'
1960
+ | 'Consultation'
1961
+ | 'Procedure choice'
1962
+ | 'Written representations'
1963
+ | 'Inquiry'
1964
+ | 'Hearing/Inquiry date set'
1965
+ | 'Final decision'
1966
+ )
1967
+ | null;
1968
+ /**
1969
+ * Site is nationally important (Yes/No)
1970
+ */
1971
+ nationallyImportant?: boolean | null;
1972
+ /**
1973
+ * Date the application's national importance was confirmed
1974
+ */
1975
+ nationallyImportantConfirmationDate?: string | null;
1976
+ /**
1977
+ * Flags if a notNationallyImportant email has been sent
1978
+ */
1979
+ notNationallyImportantEmailSent?: boolean | null;
1980
+ /**
1981
+ * Highlights the cases as containing distressing content
1982
+ */
1983
+ containsDistressingContent?: boolean | null;
1984
+ /**
1985
+ * LPA cross reference. Reference number for the case as known by the Local Planning Authority (LPA)
1986
+ */
1987
+ lpaReference?: string | null;
1988
+ /**
1989
+ * Application category (enum)
1990
+ */
1991
+ category?:
1992
+ | (
1993
+ | 'Major Development'
1994
+ | 'Buildings over 1000 square metres'
1995
+ | 'Development of a site above 1 hectare'
1996
+ | 'Dwellings numbering 10 or more'
1997
+ | 'Dwellings of 0.5 hectare or more'
1998
+ | 'Minerals'
1999
+ | 'Waste'
2000
+ | 'Non-Major Development'
2001
+ | 'Buildings less than 1000 square metres'
2002
+ | 'Development of a site less than 1 hectare'
2003
+ | 'Dwellings numbering between 1 and 9'
2004
+ | 'Dwellings of less than 0.5 hectare'
2005
+ | 'Change of use'
2006
+ | 'Relevant demolition'
2007
+ | 'Other'
2008
+ | 'Listed building consent to alter/extend'
2009
+ | 'Listed building consent to demolish'
2010
+ )
2011
+ | null;
2012
+ /**
2013
+ * Is the site in green belt land
2014
+ */
2015
+ isGreenBelt?: boolean | null;
2016
+ /**
2017
+ * Does the Site has H&S Issue
2018
+ */
2019
+ healthAndSafetyIssue?: boolean | null;
2020
+ /**
2021
+ * Date the application was received
2022
+ */
2023
+ applicationReceivedDate?: string | null;
2024
+ /**
2025
+ * Flags if an applicationReceived email has been sent
2026
+ */
2027
+ applicationReceivedDateEmailSent?: boolean | null;
2028
+ /**
2029
+ * Date the application was accepted
2030
+ */
2031
+ applicationAcceptedDate?: string | null;
2032
+ /**
2033
+ * Date the lpa questionnaire was sent
2034
+ */
2035
+ lpaQuestionnaireSentDate?: string | null;
2036
+ /**
2037
+ * Date the lpa questionnaire was received
2038
+ */
2039
+ lpaQuestionnaireReceivedDate?: string | null;
2040
+ /**
2041
+ * Flags if an lpaQuestionnaireReceived email has been sent
2042
+ */
2043
+ lpaQuestionnaireReceivedEmailSent?: boolean | null;
2044
+ /**
2045
+ * Date the application was published to the portal
2046
+ */
2047
+ publishDate?: string | null;
2048
+ /**
2049
+ * Date the press notice was published
2050
+ */
2051
+ pressNoticeDate?: string | null;
2052
+ /**
2053
+ * Date the neighbours were notified by the LPA
2054
+ */
2055
+ neighboursNotifiedByLpaDate?: string | null;
2056
+ /**
2057
+ * Date the site notice was erected by the LPA
2058
+ */
2059
+ siteNoticeByLpaDate?: string | null;
2060
+ /**
2061
+ * Date the application should be decided by
2062
+ */
2063
+ targetDecisionDate?: string | null;
2064
+ /**
2065
+ * Extended date by which the application should be decided
2066
+ */
2067
+ extendedTargetDecisionDate?: string | null;
2068
+ /**
2069
+ * Date the application was recovered by the Secretary of State
2070
+ */
2071
+ recoveredDate?: string | null;
2072
+ /**
2073
+ * Date the Inspector's report was sent to the Secretary of State
2074
+ */
2075
+ recoveredReportSentDate?: string | null;
2076
+ /**
2077
+ * Date application was withdrawn
2078
+ */
2079
+ withdrawnDate?: string | null;
2080
+ /**
2081
+ * Date the application was decided on
2082
+ */
2083
+ decisionDate?: string | null;
2084
+ /**
2085
+ * Date of the original decision if later quashed
2086
+ */
2087
+ originalDecisionDate?: string | null;
2088
+ /**
2089
+ * As displayed to users
2090
+ */
2091
+ decisionOutcome?: ('Approved' | 'Approved with conditions' | 'Refused' | 'Withdrawn') | null;
2092
+ /**
2093
+ * Date application was turned away
2094
+ */
2095
+ turnedAwayDate?: string | null;
2096
+ /**
2097
+ * Date the representations was publish
2098
+ */
2099
+ representationsPublishDate?: string | null;
2100
+ /**
2101
+ * Start date of the representation period (starts at 00:00)
2102
+ */
2103
+ representationsPeriodStartDate?: string | null;
2104
+ /**
2105
+ * End date of the representation period (ends at 23:59)
2106
+ */
2107
+ representationsPeriodEndDate?: string | null;
2108
+ /**
2109
+ * EntraID for Inspector
2110
+ */
2111
+ inspector1Id?: string | null;
2112
+ /**
2113
+ * EntraID for Inspector
2114
+ */
2115
+ inspector2Id?: string | null;
2116
+ /**
2117
+ * EntraID for Inspector
2118
+ */
2119
+ inspector3Id?: string | null;
2120
+ /**
2121
+ * EntraID for Assessor
2122
+ */
2123
+ assessorInspectorId?: string | null;
2124
+ /**
2125
+ * EntraID for Case Officer
2126
+ */
2127
+ caseOfficerId?: string | null;
2128
+ /**
2129
+ * EntraID for Planning Officer
2130
+ */
2131
+ planningOfficerId?: string | null;
2132
+ /**
2133
+ * Does the application need an Environmental Impact Assessment
2134
+ */
2135
+ eiaScreening?: boolean | null;
2136
+ /**
2137
+ * What was the outcome of the Environmental Impact Assessment
2138
+ */
2139
+ eiaScreeningOutcome?: ('required' | 'not required') | null;
2140
+ /**
2141
+ * Date the environmental statement was received
2142
+ */
2143
+ environmentalStatementReceivedDate?: string | null;
2144
+ /**
2145
+ * Site is visible from public land (Yes/No or TRUE/FALSE tbc)
2146
+ */
2147
+ siteIsVisibleFromPublicLand?: boolean | null;
2148
+ /**
2149
+ * Name displayed to users
2150
+ */
2151
+ procedure?: ('Written Representations' | 'Hearing' | 'Inquiry') | null;
2152
+ procedureNotificationDate?: string | null;
2153
+ eventDate?: string | null;
2154
+ eventPrepDuration?: number | null;
2155
+ eventSittingDuration?: number | null;
2156
+ eventReportingDuration?: number | null;
2157
+ eventVenue?: string | null;
2158
+ eventNotificationDate?: string | null;
2159
+ eventIssuesReportPublishedDate?: string | null;
2160
+ eventStatementsDate?: string | null;
2161
+ eventCaseManagementConferenceDate?: string | null;
2162
+ eventPreMeetingDate?: string | null;
2163
+ eventProofsOfEvidenceDate?: string | null;
2164
+ /**
2165
+ * Application has associated Fee (Yes/No or TRUE/FALSE tbc)
2166
+ */
2167
+ hasApplicationFee?: boolean | null;
2168
+ /**
2169
+ * The amount to be payed by the Applicant
2170
+ */
2171
+ applicationFee?: number | null;
2172
+ /**
2173
+ * Date the application fee was received
2174
+ */
2175
+ applicationFeeReceivedDate?: string | null;
2176
+ /**
2177
+ * Is the applicant eligible for a refund on the fee
2178
+ */
2179
+ eligibleForFeeRefund?: boolean | null;
2180
+ /**
2181
+ * The amount to be refunded to the Applicant
2182
+ */
2183
+ applicationFeeRefundAmount?: number | null;
2184
+ /**
2185
+ * Date the application fee was refunded
2186
+ */
2187
+ applicationFeeRefundDate?: string | null;
2188
+ /**
2189
+ * Date the site was/is going to be visited by the inspector
2190
+ */
2191
+ siteVisitDate?: string | null;
2192
+ /**
2193
+ * Is the application liable for a community infrastructure levy
2194
+ */
2195
+ cilLiable?: boolean | null;
2196
+ /**
2197
+ * The amount for the community infrastructure levy
2198
+ */
2199
+ cilAmount?: number | null;
2200
+ /**
2201
+ * Is the site exempt from the Biodiversity Net Gain
2202
+ */
2203
+ bngExempt?: boolean | null;
2204
+ /**
2205
+ * If a party is making a cost claim against another for unreasonable behaviour
2206
+ */
2207
+ hasCostsApplications?: boolean | null;
2208
+ /**
2209
+ * Details about the cost application
2210
+ */
2211
+ costsApplicationsComment?: string | null;
2212
+ /**
2213
+ * Does the application have an Environmental Impact Assessment - used for context in emails to LPAs
2214
+ */
2215
+ environmentalImpactAssessment?: boolean | null;
2216
+ /**
2217
+ * Is the application a standard development plan - used for context in emails to LPAs
2218
+ */
2219
+ developmentPlan?: boolean | null;
2220
+ /**
2221
+ * Does the application apply to rights of way - used for context in emails to LPAs
2222
+ */
2223
+ rightOfWay?: boolean | null;
2224
+ [k: string]: unknown;
2225
+ }
2226
+ export interface Organisation {
2227
+ /**
2228
+ * Agent or Applicant details
2229
+ */
2230
+ roleType?: 'agent' | 'applicant';
2231
+ /**
2232
+ * Source PK for Organisation
2233
+ */
2234
+ organisationId: string;
2235
+ organisationName?: string | null;
2236
+ organisationAddress?: Address[] | null;
2237
+ /**
2238
+ * An Organisation may be linked to one or more Contacts
2239
+ */
2240
+ contacts?: Contact[] | null;
2241
+ [k: string]: unknown;
2242
+ }
2243
+ export interface Address {
2244
+ line1?: string | null;
2245
+ line2?: string | null;
2246
+ townCity?: string | null;
2247
+ county?: string | null;
2248
+ postcode: string;
2249
+ [k: string]: unknown;
2250
+ }
2251
+ export interface Contact {
2252
+ /**
2253
+ * Source PK for Contact
2254
+ */
2255
+ contactId: string;
2256
+ contactPreference?: ('email' | 'post') | null;
2257
+ /**
2258
+ * Organisation Name used for written-representation on behalf of an organisation
2259
+ */
2260
+ writtenRepOrgName?: string | null;
2261
+ /**
2262
+ * Job Title or Role used for written-representation on behalf of an organisation
2263
+ */
2264
+ writtenRepJobTitleorRole?: string | null;
2265
+ [k: string]: unknown;
2266
+ }
2267
+
2268
+ /**
2269
+ * Email Notifications for Casework Projects
2270
+ */
2271
+ export interface EmailNotificationRecordSchema {
2272
+ /**
2273
+ * Internal Identifier UUID
2274
+ */
2275
+ id: string;
2276
+ /**
2277
+ * Id used by Notify
2278
+ */
2279
+ notifyId?: string | null;
2280
+ /**
2281
+ * Reference passed to notify (used to identify the case or representation it relates to)
2282
+ */
2283
+ reference?: string;
2284
+ /**
2285
+ * Business Key for the related case
2286
+ */
2287
+ caseReference: string;
2288
+ /**
2289
+ * The unique ID for the case this notification belongs to.
2290
+ */
2291
+ caseId: string;
2292
+ /**
2293
+ * The type of case this notification is for.
2294
+ */
2295
+ caseType: string;
2296
+ /**
2297
+ * Date the email was created
2298
+ */
2299
+ createdDate?: string | null;
2300
+ /**
2301
+ * Name of the person that triggered the email (only applies when done manually)
2302
+ */
2303
+ createdBy?: string | null;
2304
+ /**
2305
+ * When the email completed (succeeded or failed)
2306
+ */
2307
+ completedDate?: string | null;
2308
+ /**
2309
+ * Email address sent to if unable to be linked to an LPA or Contact
2310
+ */
2311
+ email?: string | null;
2312
+ /**
2313
+ * Contact(s) the email was sent to
2314
+ */
2315
+ contact?: Contact[] | null;
2316
+ /**
2317
+ * Planning Body code
2318
+ */
2319
+ lpaCode: string;
2320
+ /**
2321
+ * Outcome of the email (status)
2322
+ */
2323
+ emailStatus?: 'Sending' | 'Delivered' | 'Permanent failure' | 'Temporary failure' | 'Technical failure';
2324
+ /**
2325
+ * The id of the template sent in Notify
2326
+ */
2327
+ templateId?: string | null;
2328
+ /**
2329
+ * The version of the template sent
2330
+ */
2331
+ templateVersion?: number | null;
2332
+ /**
2333
+ * The full HTML/plain text body of the email
2334
+ */
2335
+ body?: string | null;
2336
+ /**
2337
+ * The full HTML/plain text subject of the email
2338
+ */
2339
+ subject?: string | null;
2340
+ [k: string]: unknown;
2341
+ }
2342
+ /**
2343
+ * Contact the email was sent to
2344
+ */
2345
+ export interface Contact {
2346
+ /**
2347
+ * Source PK for Contact
2348
+ */
2349
+ contactId: string;
2350
+ /**
2351
+ * Preferred contact method
2352
+ */
2353
+ contactPreference?: ('email' | 'post') | null;
2354
+ writtenRepOrgName?: string | null;
2355
+ writtenRepJobTitleorRole?: string | null;
2356
+ }
2357
+
2358
+ /**
2359
+ * Representations and related document metadata for Casework Projects
2360
+ */
2361
+ export interface CaseworkRepresentationSchema {
2362
+ /**
2363
+ * Primary key
2364
+ */
2365
+ id: string;
2366
+ /**
2367
+ * Auto-generated hexadecimal reference: AAAAA-BBBBB
2368
+ */
2369
+ reference: string;
2370
+ /**
2371
+ * Business Key for the related case
2372
+ */
2373
+ caseReference: string;
2374
+ /**
2375
+ * The unique ID for the case this representation belongs to.
2376
+ */
2377
+ caseId: string;
2378
+ /**
2379
+ * The type of case this representation is for.
2380
+ */
2381
+ caseType: string;
2382
+ representationStatus?: 'Awaiting review' | 'Accepted' | 'Rejected' | 'Withdrawn';
2383
+ submittedFor: 'Myself' | 'On behalf of another person or an organisation';
2384
+ submittedByContact?: Contact[] | null;
2385
+ submittedByAgentFlag?: boolean | null;
2386
+ submittedByAgentOrgName?: string | null;
2387
+ submittedDate: string;
2388
+ /**
2389
+ * How we received the representation
2390
+ */
2391
+ submittedReceivedMethod?: ('Online' | 'Phone' | 'Email' | 'Post' | 'In person') | null;
2392
+ submissionMethodReason?: string | null;
2393
+ comment: string;
2394
+ /**
2395
+ * redacted version of the comment, null if not redacted
2396
+ */
2397
+ commentRedacted?: string | null;
2398
+ /**
2399
+ * When representation is on behalf of a person/org/group
2400
+ */
2401
+ representedType?:
2402
+ | (
2403
+ | 'A person'
2404
+ | 'An organisation or charity I work or volunteer for'
2405
+ | 'An organisation or charity I do not work or volunteer for'
2406
+ )
2407
+ | null;
2408
+ /**
2409
+ * When representation is on behalf of a person/org/group
2410
+ */
2411
+ representedContact?: Contact[] | null;
2412
+ representedCategory?: ('Consultees' | 'Interested party') | null;
2413
+ /**
2414
+ * Internal: wants to be heard at a hearing
2415
+ */
2416
+ wantsToBeHeard?: boolean | null;
2417
+ /**
2418
+ * Is a document attached to the representation
2419
+ */
2420
+ containsAttachments?: boolean | null;
2421
+ /**
2422
+ * to avoid creating new folders for documents when managing representations
2423
+ */
2424
+ sharePointFolderCreated?: boolean | null;
2425
+ /**
2426
+ * Flags the representation as containing distressing content
2427
+ */
2428
+ distressingContentInRepresentation?: boolean | null;
2429
+ /**
2430
+ * Date the representing party requested that the representation be withdrawn
2431
+ */
2432
+ withdrawalRequestDate?: string | null;
2433
+ /**
2434
+ * Reason for the withdrawal
2435
+ */
2436
+ withdrawalReason?: ('Change of opinion' | 'Mistaken Submission' | 'Misunderstanding' | 'Personal Reasons') | null;
2437
+ /**
2438
+ * Date the representation was withdrawn
2439
+ */
2440
+ dateWithdrawn?: string | null;
2441
+ representationDocuments?: RepresentationDocument[] | null;
2442
+ [k: string]: unknown;
2443
+ }
2444
+ export interface Contact {
2445
+ /**
2446
+ * Source PK for Contact
2447
+ */
2448
+ contactId: string;
2449
+ contactPreference?: ('email' | 'post') | null;
2450
+ writtenRepOrgName?: string | null;
2451
+ writtenRepJobTitleorRole?: string | null;
2452
+ }
2453
+ export interface RepresentationDocument {
2454
+ /**
2455
+ * Source Key for Representation Document
2456
+ */
2457
+ id: string;
2458
+ /**
2459
+ * The representation this relates to
2460
+ */
2461
+ representationId: string;
2462
+ /**
2463
+ * The id of the item in SharePoint
2464
+ */
2465
+ itemId: string;
2466
+ /**
2467
+ * The name of the file
2468
+ */
2469
+ fileName: string;
2470
+ /**
2471
+ * The id of the redacted version of the item in sharepoint
2472
+ */
2473
+ redactedItemId?: string | null;
2474
+ /**
2475
+ * the name of the redacted file
2476
+ */
2477
+ redactedFileName?: string | null;
2478
+ /**
2479
+ * The status of the document
2480
+ */
2481
+ status: 'Awaiting review' | 'Accepted' | 'Rejected' | 'Withdrawn';
2482
+ }
2483
+
1811
2484
  /**
1812
2485
  * Schema defining the data returned by the DaRT API
1813
2486
  */
@@ -5176,13 +5849,17 @@ export interface InterestedParty1 {
5176
5849
 
5177
5850
  export type SchemaMap = {
5178
5851
  schemas: {
5852
+ 'address.schema.json': PINSAddressSchema;
5179
5853
  'appeal-document.schema.json': AppealDocument;
5180
5854
  'appeal-event-estimate.schema.json': AppealEventEstimate;
5181
5855
  'appeal-event.schema.json': AppealEvent;
5182
5856
  'appeal-has.schema.json': AppealHASCase;
5183
5857
  'appeal-representation.schema.json': AppealRepresentation;
5184
5858
  'appeal-s78.schema.json': AppealS78Case;
5185
- 'application-update.schema.json': ApplicationUpdateSchema;
5859
+ 'applications-application-update.schema.json': ApplicationUpdateSchema;
5860
+ 'applications-application.schema.json': CrownDevelopmentApplication;
5861
+ 'applications-notify-email.schema.json': EmailNotificationRecordSchema;
5862
+ 'applications-representation.schema.json': CaseworkRepresentationSchema;
5186
5863
  'dart-response.schema.json': DaRTAPIResponse;
5187
5864
  'entraid.schema.json': EntraIDUserObjects;
5188
5865
  'folder.schema.json': Folder;