@planning-inspectorate/data-model 2.50.0 → 2.51.1

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 (67) hide show
  1. package/commitlint.config.js +3 -8
  2. package/docs/address.md +1 -1
  3. package/docs/nsip-exam-timetable-defs-event.md +1 -0
  4. package/docs/nsip-exam-timetable.md +1 -0
  5. package/eslint.config.js +3 -20
  6. package/load-test/appeals/generate-appeals-messages.js +1 -1
  7. package/load-test/appeals/run-load-script.js +2 -2
  8. package/load-test/service-bus-client.js +1 -1
  9. package/package.json +5 -2
  10. package/pins_data_model/gen_models.py +2 -1
  11. package/pins_data_model/models/model_address.py +3 -3
  12. package/pins_data_model/models/model_appeal_document.py +11 -11
  13. package/pins_data_model/models/model_appeal_event.py +4 -4
  14. package/pins_data_model/models/model_appeal_event_estimate.py +3 -3
  15. package/pins_data_model/models/model_appeal_has.py +111 -93
  16. package/pins_data_model/models/model_appeal_representation.py +12 -12
  17. package/pins_data_model/models/model_appeal_s78.py +246 -228
  18. package/pins_data_model/models/model_application_update.py +2 -2
  19. package/pins_data_model/models/model_applications_application.py +4 -4
  20. package/pins_data_model/models/model_applications_application_update.py +2 -2
  21. package/pins_data_model/models/model_applications_notify_email.py +2 -2
  22. package/pins_data_model/models/model_applications_representation.py +4 -4
  23. package/pins_data_model/models/model_dart_response.py +1 -1
  24. package/pins_data_model/models/model_folder.py +3 -3
  25. package/pins_data_model/models/model_nsip_document.py +12 -12
  26. package/pins_data_model/models/model_nsip_exam_timetable.py +3 -2
  27. package/pins_data_model/models/model_nsip_invoice.py +2 -2
  28. package/pins_data_model/models/model_nsip_project.py +19 -19
  29. package/pins_data_model/models/model_nsip_project_update.py +5 -5
  30. package/pins_data_model/models/model_nsip_representation.py +7 -7
  31. package/pins_data_model/models/model_nsip_subscription.py +6 -6
  32. package/pins_data_model/models/model_pins_inspector.py +5 -5
  33. package/pins_data_model/models/model_s51_advice.py +7 -7
  34. package/pins_data_model/models/model_service_user.py +2 -2
  35. package/prettier.config.js +13 -0
  36. package/requirements.txt +1 -1
  37. package/schemas/address.schema.json +1 -1
  38. package/schemas/nsip-exam-timetable.schema.json +2 -1
  39. package/src/index.cjs +1 -1
  40. package/src/lib/gen-docs.js +1 -1
  41. package/src/lib/gen-enum-impl.test.js +1 -1
  42. package/src/lib/gen-enums.js +1 -1
  43. package/src/lib/gen-types.js +2 -2
  44. package/src/lib/load.js +1 -1
  45. package/src/schemas.d.ts +30 -2
  46. package/tests/appeals/appeal-event.test.js +2 -2
  47. package/tests/appeals/appeal-has.test.js +2 -2
  48. package/tests/appeals/appeal-s78.test.js +2 -2
  49. package/tests/appeals/commands/adverts-questionnaire.test.js +2 -2
  50. package/tests/appeals/commands/adverts-submission.test.js +2 -2
  51. package/tests/appeals/commands/appeal-representation-submission.test.js +2 -2
  52. package/tests/appeals/commands/cas-adverts-questionnaire.test.js +2 -2
  53. package/tests/appeals/commands/cas-adverts-submission.test.js +2 -2
  54. package/tests/appeals/commands/enforcement-listed-questionnaire.test.js +2 -2
  55. package/tests/appeals/commands/enforcement-listed-submission.test.js +2 -2
  56. package/tests/appeals/commands/enforcement-notice-submission.test.js +2 -2
  57. package/tests/appeals/commands/enforcement-questionnaire.test.js +2 -2
  58. package/tests/appeals/commands/has-questionnaire.test.js +2 -2
  59. package/tests/appeals/commands/has-submission.test.js +2 -2
  60. package/tests/appeals/commands/ldc-questionnaire.test.js +2 -2
  61. package/tests/appeals/commands/ldc-submission.test.js +2 -2
  62. package/tests/appeals/commands/s20-questionnaire.test.js +2 -2
  63. package/tests/appeals/commands/s78-questionnaire.test.js +2 -2
  64. package/tests/appeals/commands/s78-submission.test.js +2 -2
  65. package/tests/appeals/expedited-appeals.test.js +2 -2
  66. package/tests/schemas.test.js +1 -1
  67. package/.prettierrc +0 -19
package/src/schemas.d.ts CHANGED
@@ -44,7 +44,7 @@ export interface PINSAddressSchema {
44
44
  latitudeWGS84?: number | null;
45
45
  longitudeWGS84?: number | null;
46
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.
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
48
  */
49
49
  UPRN?: string | null;
50
50
  dependentRequired?: {
@@ -3044,7 +3044,8 @@ export interface Event {
3044
3044
  | 'Preliminary Meeting'
3045
3045
  | 'Procedural Deadline (Pre-Examination)'
3046
3046
  | 'Procedural Decision'
3047
- | 'Publication Of';
3047
+ | 'Publication Of'
3048
+ | 'Unaccompanied Site Inspection';
3048
3049
  /**
3049
3050
  * Title Of Examination Timetable Event
3050
3051
  */
@@ -3289,6 +3290,9 @@ export interface NSIPProject {
3289
3290
  * PINS Project email address pubished on website
3290
3291
  */
3291
3292
  projectEmailAddress: string | null;
3293
+ /**
3294
+ * Items: Geographical region of UK. Applications can cover multiple regions.
3295
+ */
3292
3296
  regions: (
3293
3297
  | 'east_midlands'
3294
3298
  | 'eastern'
@@ -3474,12 +3478,21 @@ export interface NSIPProject {
3474
3478
  * Maps to [Employee].[EmployeeID]
3475
3479
  */
3476
3480
  caseManagerId: string | null;
3481
+ /**
3482
+ * Items: Maps to [Employee].[EmployeeID].
3483
+ */
3477
3484
  nsipOfficerIds: string[];
3485
+ /**
3486
+ * Items: Maps to [Employee].[EmployeeID].
3487
+ */
3478
3488
  nsipAdministrationOfficerIds: string[];
3479
3489
  /**
3480
3490
  * Maps to [Employee].[EmployeeID]
3481
3491
  */
3482
3492
  leadInspectorId: string | null;
3493
+ /**
3494
+ * Items: Maps to [Employee].[EmployeeID]
3495
+ */
3483
3496
  inspectorIds: string[];
3484
3497
  /**
3485
3498
  * Maps to [Employee].[EmployeeID]
@@ -3695,26 +3708,38 @@ export interface NSIPProject {
3695
3708
  estimatedPrelimMeetingDate?: string | null;
3696
3709
  /**
3697
3710
  * Maps to [Employee].[EmployeeID].
3711
+ *
3712
+ * Items: Maps to [Employee].[EmployeeID].
3698
3713
  */
3699
3714
  operationsLeadIds?: string[];
3700
3715
  /**
3701
3716
  * New NSIP role, Maps to [Employee].[EmployeeID]
3717
+ *
3718
+ * Items: Maps to [Employee].[EmployeeID].
3702
3719
  */
3703
3720
  operationsManagerIds?: string[];
3704
3721
  /**
3705
3722
  * Maps to [Employee].[EmployeeID].
3723
+ *
3724
+ * Items: Maps to [Employee].[EmployeeID].
3706
3725
  */
3707
3726
  caseManagerIds?: string[];
3708
3727
  /**
3709
3728
  * Maps to [Employee].[EmployeeID].
3729
+ *
3730
+ * Items: Maps to [Employee].[EmployeeID].
3710
3731
  */
3711
3732
  leadInspectorIds?: string[];
3712
3733
  /**
3713
3734
  * Maps to [Employee].[EmployeeID].
3735
+ *
3736
+ * Items: Maps to [Employee].[EmployeeID].
3714
3737
  */
3715
3738
  environmentalServicesOfficerIds?: string[];
3716
3739
  /**
3717
3740
  * Maps to [Employee].[EmployeeID].
3741
+ *
3742
+ * Items: Maps to [Employee].[EmployeeID].
3718
3743
  */
3719
3744
  legalOfficerIds?: string[];
3720
3745
  /**
@@ -4097,6 +4122,9 @@ export interface S51Advice {
4097
4122
  adviceDetailsWelsh?: string | null;
4098
4123
  status: 'checked' | 'unchecked' | 'readytopublish' | 'published' | 'donotpublish' | null;
4099
4124
  redactionStatus: 'unredacted' | 'redacted' | null;
4125
+ /**
4126
+ * Items: Collection of document IDs which are related to the S51 Advice
4127
+ */
4100
4128
  attachmentIds: string[];
4101
4129
  [k: string]: unknown;
4102
4130
  }
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../src/index.js';
6
6
 
7
7
  const schema = 'appeal-event.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../src/index.js';
6
6
 
7
7
  const schema = 'appeal-has.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../src/index.js';
6
6
 
7
7
  const schema = 'appeal-s78.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'appellant-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'commands/appeal-representation-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'appellant-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'appellant-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'appellant-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'appellant-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'appellant-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'lpa-questionnaire.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../../src/index.js';
6
6
 
7
7
  const schema = 'appellant-submission.schema.json';
@@ -1,7 +1,7 @@
1
- import { describe, it } from 'node:test';
2
- import assert from 'node:assert';
3
1
  import Ajv from 'ajv';
4
2
  import addFormats from 'ajv-formats';
3
+ import assert from 'node:assert';
4
+ import { describe, it } from 'node:test';
5
5
  import { loadAllSchemasSync } from '../../src/index.js';
6
6
 
7
7
  const schema = 'appeal-s78.schema.json';
@@ -1,6 +1,6 @@
1
- import { describe, it } from 'node:test';
2
1
  import Ajv from 'ajv';
3
2
  import addFormats from 'ajv-formats';
3
+ import { describe, it } from 'node:test';
4
4
  import { loadAllSchemasSync } from '../src/index.js';
5
5
 
6
6
  describe('schemas', () => {
package/.prettierrc DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "printWidth": 120,
3
- "tabWidth": 2,
4
- "singleQuote": true,
5
- "useTabs": true,
6
- "semi": true,
7
- "trailingComma": "none",
8
- "bracketSpacing": true,
9
- "arrowParens": "always",
10
- "plugins": [],
11
- "overrides": [
12
- {
13
- "files": "*.json",
14
- "options": {
15
- "useTabs": false
16
- }
17
- }
18
- ]
19
- }