@planning-inspectorate/data-model 1.18.1 → 1.20.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 (40) hide show
  1. package/.github/dependabot.yml +5 -0
  2. package/docs/README.md +20 -0
  3. package/docs/nsip-project-defs-invoice.md +267 -0
  4. package/docs/nsip-project-defs-meeting.md +122 -0
  5. package/docs/nsip-project-defs.md +3 -0
  6. package/docs/nsip-project.md +1889 -7
  7. package/package.json +4 -4
  8. package/pins_data_model/models/model_appeal_document.py +1 -1
  9. package/pins_data_model/models/model_appeal_event.py +1 -1
  10. package/pins_data_model/models/model_appeal_event_estimate.py +1 -1
  11. package/pins_data_model/models/model_appeal_has.py +1 -1
  12. package/pins_data_model/models/model_appeal_representation.py +1 -1
  13. package/pins_data_model/models/model_appeal_s78.py +1 -1
  14. package/pins_data_model/models/model_dart_response.py +1 -1
  15. package/pins_data_model/models/model_entraid.py +1 -1
  16. package/pins_data_model/models/model_folder.py +1 -1
  17. package/pins_data_model/models/model_gettimesheets_response.py +1 -1
  18. package/pins_data_model/models/model_listed_building.py +1 -1
  19. package/pins_data_model/models/model_listed_buildings.py +1 -1
  20. package/pins_data_model/models/model_nsip_document.py +1 -1
  21. package/pins_data_model/models/model_nsip_exam_timetable.py +1 -1
  22. package/pins_data_model/models/model_nsip_project.py +535 -3
  23. package/pins_data_model/models/model_nsip_project_update.py +1 -1
  24. package/pins_data_model/models/model_nsip_representation.py +1 -1
  25. package/pins_data_model/models/model_nsip_subscription.py +1 -1
  26. package/pins_data_model/models/model_pins_inspector.py +1 -1
  27. package/pins_data_model/models/model_pins_lpa.py +1 -1
  28. package/pins_data_model/models/model_s51_advice.py +1 -1
  29. package/pins_data_model/models/model_service_user.py +1 -1
  30. package/schemas/commands/lpa-questionnaire-cas-advert.schema.json +95 -0
  31. package/schemas/commands/lpa-questionnaire.schema.json +3 -1
  32. package/schemas/nsip-project.schema.json +420 -2
  33. package/src/enums.cjs +678 -581
  34. package/src/enums.d.ts +668 -583
  35. package/src/enums.js +668 -583
  36. package/src/index.cjs +678 -581
  37. package/src/lib/gen-enums.js +1 -1
  38. package/src/schemas.d.ts +408 -4
  39. package/tests/appeals/commands/adverts-questionnaire.test.js +15 -9
  40. package/tests/appeals/commands/cas-adverts-questionnaire.test.js +98 -0
@@ -9,3 +9,8 @@ updates:
9
9
  directory: '/' # Location of package manifests
10
10
  schedule:
11
11
  interval: 'weekly'
12
+ groups:
13
+ devDeps: # group all dev dependencies
14
+ patterns:
15
+ - '*'
16
+ dependency-type: 'development'
package/docs/README.md CHANGED
@@ -60,6 +60,10 @@
60
60
 
61
61
  * [Untitled object in Examination Timetable](./nsip-exam-timetable-defs-line-item.md) – `nsip-exam-timetable.schema.json#/$defs/line-item`
62
62
 
63
+ * [Untitled object in NSIP Project](./nsip-project-defs-meeting.md "A meeting related to the project") – `nsip-project.schema.json#/$defs/meeting`
64
+
65
+ * [Untitled object in NSIP Project](./nsip-project-defs-invoice.md "An invoice related to the project") – `nsip-project.schema.json#/$defs/invoice`
66
+
63
67
  ### Arrays
64
68
 
65
69
  * [Untitled array in Appeal Representation](./appeal-representation-properties-documentids.md "An array of documentIds") – `appeal-representation.schema.json#/properties/documentIds`
@@ -76,6 +80,22 @@
76
80
 
77
81
  * [Untitled array in NSIP Project](./nsip-project-properties-inspectorids.md) – `nsip-project.schema.json#/properties/inspectorIds`
78
82
 
83
+ * [Untitled array in NSIP Project](./nsip-project-properties-operationsleadids.md "Maps to \[Employee]") – `nsip-project.schema.json#/properties/operationsLeadIds`
84
+
85
+ * [Untitled array in NSIP Project](./nsip-project-properties-operationsmanagerids.md "New NSIP role, Maps to \[Employee]") – `nsip-project.schema.json#/properties/operationsManagerIds`
86
+
87
+ * [Untitled array in NSIP Project](./nsip-project-properties-casemanagerids.md "Maps to \[Employee]") – `nsip-project.schema.json#/properties/caseManagerIds`
88
+
89
+ * [Untitled array in NSIP Project](./nsip-project-properties-leadinspectorids.md "Maps to \[Employee]") – `nsip-project.schema.json#/properties/leadInspectorIds`
90
+
91
+ * [Untitled array in NSIP Project](./nsip-project-properties-environmentalservicesofficerids.md "Maps to \[Employee]") – `nsip-project.schema.json#/properties/environmentalServicesOfficerIds`
92
+
93
+ * [Untitled array in NSIP Project](./nsip-project-properties-legalofficerids.md "Maps to \[Employee]") – `nsip-project.schema.json#/properties/legalOfficerIds`
94
+
95
+ * [Untitled array in NSIP Project](./nsip-project-properties-meetings.md "Collection of meetings associated with this project") – `nsip-project.schema.json#/properties/meetings`
96
+
97
+ * [Untitled array in NSIP Project](./nsip-project-properties-invoices.md "Collection of invoices associated with this project") – `nsip-project.schema.json#/properties/invoices`
98
+
79
99
  * [Untitled array in Representation](./nsip-representation-properties-attachmentids.md) – `nsip-representation.schema.json#/properties/attachmentIds`
80
100
 
81
101
  * [Untitled array in S51 Advice](./s51-advice-properties-attachmentids.md) – `s51-advice.schema.json#/properties/attachmentIds`
@@ -0,0 +1,267 @@
1
+ ## invoice Type
2
+
3
+ `object` ([Details](nsip-project-defs-invoice.md))
4
+
5
+ # invoice Properties
6
+
7
+ | Property | Type | Required | Nullable | Defined by |
8
+ | :------------------------------------------------ | :------- | :------- | :------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------- |
9
+ | [invoiceStage](#invoicestage) | `string` | Optional | can be null | [NSIP Project](nsip-project-defs-invoice-properties-invoicestage.md "nsip-project.schema.json#/$defs/invoice/properties/invoiceStage") |
10
+ | [invoiceNumber](#invoicenumber) | `string` | Required | cannot be null | [NSIP Project](nsip-project-defs-invoice-properties-invoicenumber.md "nsip-project.schema.json#/$defs/invoice/properties/invoiceNumber") |
11
+ | [amountDue](#amountdue) | `number` | Required | cannot be null | [NSIP Project](nsip-project-defs-invoice-properties-amountdue.md "nsip-project.schema.json#/$defs/invoice/properties/amountDue") |
12
+ | [paymentDueDate](#paymentduedate) | `string` | Optional | can be null | [NSIP Project](nsip-project-defs-invoice-properties-paymentduedate.md "nsip-project.schema.json#/$defs/invoice/properties/paymentDueDate") |
13
+ | [invoicedDate](#invoiceddate) | `string` | Optional | can be null | [NSIP Project](nsip-project-defs-invoice-properties-invoiceddate.md "nsip-project.schema.json#/$defs/invoice/properties/invoicedDate") |
14
+ | [paymentDate](#paymentdate) | `string` | Optional | can be null | [NSIP Project](nsip-project-defs-invoice-properties-paymentdate.md "nsip-project.schema.json#/$defs/invoice/properties/paymentDate") |
15
+ | [refundCreditNoteNumber](#refundcreditnotenumber) | `string` | Optional | can be null | [NSIP Project](nsip-project-defs-invoice-properties-refundcreditnotenumber.md "nsip-project.schema.json#/$defs/invoice/properties/refundCreditNoteNumber") |
16
+ | [refundAmount](#refundamount) | `number` | Optional | can be null | [NSIP Project](nsip-project-defs-invoice-properties-refundamount.md "nsip-project.schema.json#/$defs/invoice/properties/refundAmount") |
17
+ | [refundIssueDate](#refundissuedate) | `string` | Optional | can be null | [NSIP Project](nsip-project-defs-invoice-properties-refundissuedate.md "nsip-project.schema.json#/$defs/invoice/properties/refundIssueDate") |
18
+ | Additional Properties | Any | Optional | can be null | |
19
+
20
+ ## invoiceStage
21
+
22
+ Invoice stage
23
+
24
+ `invoiceStage`
25
+
26
+ * is optional
27
+
28
+ * Type: `string`
29
+
30
+ * can be null
31
+
32
+ * defined in: [NSIP Project](nsip-project-defs-invoice-properties-invoicestage.md "nsip-project.schema.json#/$defs/invoice/properties/invoiceStage")
33
+
34
+ ### invoiceStage Type
35
+
36
+ `string`
37
+
38
+ ### invoiceStage Constraints
39
+
40
+ **enum**: the value of this property must be equal to one of the following values:
41
+
42
+ | Value | Explanation |
43
+ | :---------------------- | :---------- |
44
+ | `"pre_acceptance"` | |
45
+ | `"acceptance"` | |
46
+ | `"pre_examination"` | |
47
+ | `"initial_examination"` | |
48
+ | `"final_examination"` | |
49
+ | `null` | |
50
+
51
+ ### invoiceStage Examples
52
+
53
+ ```json
54
+ "pre_acceptance"
55
+ ```
56
+
57
+ ## invoiceNumber
58
+
59
+ Invoice number
60
+
61
+ `invoiceNumber`
62
+
63
+ * is required
64
+
65
+ * Type: `string`
66
+
67
+ * cannot be null
68
+
69
+ * defined in: [NSIP Project](nsip-project-defs-invoice-properties-invoicenumber.md "nsip-project.schema.json#/$defs/invoice/properties/invoiceNumber")
70
+
71
+ ### invoiceNumber Type
72
+
73
+ `string`
74
+
75
+ ### invoiceNumber Examples
76
+
77
+ ```json
78
+ "1800004419"
79
+ ```
80
+
81
+ ## amountDue
82
+
83
+ Amount due
84
+
85
+ `amountDue`
86
+
87
+ * is required
88
+
89
+ * Type: `number`
90
+
91
+ * cannot be null
92
+
93
+ * defined in: [NSIP Project](nsip-project-defs-invoice-properties-amountdue.md "nsip-project.schema.json#/$defs/invoice/properties/amountDue")
94
+
95
+ ### amountDue Type
96
+
97
+ `number`
98
+
99
+ ### amountDue Examples
100
+
101
+ ```json
102
+ 500
103
+ ```
104
+
105
+ ## paymentDueDate
106
+
107
+ Payment due date
108
+
109
+ `paymentDueDate`
110
+
111
+ * is optional
112
+
113
+ * Type: `string`
114
+
115
+ * can be null
116
+
117
+ * defined in: [NSIP Project](nsip-project-defs-invoice-properties-paymentduedate.md "nsip-project.schema.json#/$defs/invoice/properties/paymentDueDate")
118
+
119
+ ### paymentDueDate Type
120
+
121
+ `string`
122
+
123
+ ### paymentDueDate Constraints
124
+
125
+ **date time**: the string must be a date time string, according to [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339 "check the specification")
126
+
127
+ ### paymentDueDate Examples
128
+
129
+ ```json
130
+ "2023-07-27T20:30:00.000Z"
131
+ ```
132
+
133
+ ## invoicedDate
134
+
135
+ Invoiced date
136
+
137
+ `invoicedDate`
138
+
139
+ * is optional
140
+
141
+ * Type: `string`
142
+
143
+ * can be null
144
+
145
+ * defined in: [NSIP Project](nsip-project-defs-invoice-properties-invoiceddate.md "nsip-project.schema.json#/$defs/invoice/properties/invoicedDate")
146
+
147
+ ### invoicedDate Type
148
+
149
+ `string`
150
+
151
+ ### invoicedDate Constraints
152
+
153
+ **date time**: the string must be a date time string, according to [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339 "check the specification")
154
+
155
+ ### invoicedDate Examples
156
+
157
+ ```json
158
+ "2023-07-27T20:30:00.000Z"
159
+ ```
160
+
161
+ ## paymentDate
162
+
163
+ Date of payment
164
+
165
+ `paymentDate`
166
+
167
+ * is optional
168
+
169
+ * Type: `string`
170
+
171
+ * can be null
172
+
173
+ * defined in: [NSIP Project](nsip-project-defs-invoice-properties-paymentdate.md "nsip-project.schema.json#/$defs/invoice/properties/paymentDate")
174
+
175
+ ### paymentDate Type
176
+
177
+ `string`
178
+
179
+ ### paymentDate Constraints
180
+
181
+ **date time**: the string must be a date time string, according to [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339 "check the specification")
182
+
183
+ ### paymentDate Examples
184
+
185
+ ```json
186
+ "2023-07-27T20:30:00.000Z"
187
+ ```
188
+
189
+ ## refundCreditNoteNumber
190
+
191
+ Refund credit note number
192
+
193
+ `refundCreditNoteNumber`
194
+
195
+ * is optional
196
+
197
+ * Type: `string`
198
+
199
+ * can be null
200
+
201
+ * defined in: [NSIP Project](nsip-project-defs-invoice-properties-refundcreditnotenumber.md "nsip-project.schema.json#/$defs/invoice/properties/refundCreditNoteNumber")
202
+
203
+ ### refundCreditNoteNumber Type
204
+
205
+ `string`
206
+
207
+ ### refundCreditNoteNumber Examples
208
+
209
+ ```json
210
+ "1800004419"
211
+ ```
212
+
213
+ ## refundAmount
214
+
215
+ Amount refunded
216
+
217
+ `refundAmount`
218
+
219
+ * is optional
220
+
221
+ * Type: `number`
222
+
223
+ * can be null
224
+
225
+ * defined in: [NSIP Project](nsip-project-defs-invoice-properties-refundamount.md "nsip-project.schema.json#/$defs/invoice/properties/refundAmount")
226
+
227
+ ### refundAmount Type
228
+
229
+ `number`
230
+
231
+ ### refundAmount Examples
232
+
233
+ ```json
234
+ 200
235
+ ```
236
+
237
+ ## refundIssueDate
238
+
239
+ Refund issue date
240
+
241
+ `refundIssueDate`
242
+
243
+ * is optional
244
+
245
+ * Type: `string`
246
+
247
+ * can be null
248
+
249
+ * defined in: [NSIP Project](nsip-project-defs-invoice-properties-refundissuedate.md "nsip-project.schema.json#/$defs/invoice/properties/refundIssueDate")
250
+
251
+ ### refundIssueDate Type
252
+
253
+ `string`
254
+
255
+ ### refundIssueDate Constraints
256
+
257
+ **date time**: the string must be a date time string, according to [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339 "check the specification")
258
+
259
+ ### refundIssueDate Examples
260
+
261
+ ```json
262
+ "2023-07-27T20:30:00.000Z"
263
+ ```
264
+
265
+ ## Additional Properties
266
+
267
+ Additional properties are allowed and do not have to follow a specific schema
@@ -0,0 +1,122 @@
1
+ ## meeting Type
2
+
3
+ `object` ([Details](nsip-project-defs-meeting.md))
4
+
5
+ # meeting Properties
6
+
7
+ | Property | Type | Required | Nullable | Defined by |
8
+ | :---------------------------------------------------- | :------- | :------- | :---------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------- |
9
+ | [meetingAgenda](#meetingagenda) | `string` | Optional | can be null | [NSIP Project](nsip-project-defs-meeting-properties-meetingagenda.md "nsip-project.schema.json#/$defs/meeting/properties/meetingAgenda") |
10
+ | [planningInspectorateRole](#planninginspectoraterole) | `string` | Optional | can be null | [NSIP Project](nsip-project-defs-meeting-properties-planninginspectoraterole.md "nsip-project.schema.json#/$defs/meeting/properties/planningInspectorateRole") |
11
+ | [meetingDate](#meetingdate) | `string` | Optional | can be null | [NSIP Project](nsip-project-defs-meeting-properties-meetingdate.md "nsip-project.schema.json#/$defs/meeting/properties/meetingDate") |
12
+ | [meetingType](#meetingtype) | `string` | Optional | can be null | [NSIP Project](nsip-project-defs-meeting-properties-meetingtype.md "nsip-project.schema.json#/$defs/meeting/properties/meetingType") |
13
+ | Additional Properties | Any | Optional | can be null | |
14
+
15
+ ## meetingAgenda
16
+
17
+ Meeting agenda
18
+
19
+ `meetingAgenda`
20
+
21
+ * is optional
22
+
23
+ * Type: `string`
24
+
25
+ * can be null
26
+
27
+ * defined in: [NSIP Project](nsip-project-defs-meeting-properties-meetingagenda.md "nsip-project.schema.json#/$defs/meeting/properties/meetingAgenda")
28
+
29
+ ### meetingAgenda Type
30
+
31
+ `string`
32
+
33
+ ### meetingAgenda Examples
34
+
35
+ ```json
36
+ "Flood Risk Assessment (FRA)"
37
+ ```
38
+
39
+ ## planningInspectorateRole
40
+
41
+ Planning Inspectorate role
42
+
43
+ `planningInspectorateRole`
44
+
45
+ * is optional
46
+
47
+ * Type: `string`
48
+
49
+ * can be null
50
+
51
+ * defined in: [NSIP Project](nsip-project-defs-meeting-properties-planninginspectoraterole.md "nsip-project.schema.json#/$defs/meeting/properties/planningInspectorateRole")
52
+
53
+ ### planningInspectorateRole Type
54
+
55
+ `string`
56
+
57
+ ### planningInspectorateRole Constraints
58
+
59
+ **enum**: the value of this property must be equal to one of the following values:
60
+
61
+ | Value | Explanation |
62
+ | :-------------- | :---------- |
63
+ | `"facilitator"` | |
64
+ | `"advisor"` | |
65
+ | `"observer"` | |
66
+ | `null` | |
67
+
68
+ ### planningInspectorateRole Examples
69
+
70
+ ```json
71
+ "facilitator"
72
+ ```
73
+
74
+ ## meetingDate
75
+
76
+ Meeting date
77
+
78
+ `meetingDate`
79
+
80
+ * is optional
81
+
82
+ * Type: `string`
83
+
84
+ * can be null
85
+
86
+ * defined in: [NSIP Project](nsip-project-defs-meeting-properties-meetingdate.md "nsip-project.schema.json#/$defs/meeting/properties/meetingDate")
87
+
88
+ ### meetingDate Type
89
+
90
+ `string`
91
+
92
+ ### meetingDate Constraints
93
+
94
+ **date time**: the string must be a date time string, according to [RFC 3339, section 5.6](https://tools.ietf.org/html/rfc3339 "check the specification")
95
+
96
+ ### meetingDate Examples
97
+
98
+ ```json
99
+ "2023-07-27T20:30:00.000Z"
100
+ ```
101
+
102
+ ## meetingType
103
+
104
+ Type of Meeting
105
+
106
+ `meetingType`
107
+
108
+ * is optional
109
+
110
+ * Type: `string`
111
+
112
+ * can be null
113
+
114
+ * defined in: [NSIP Project](nsip-project-defs-meeting-properties-meetingtype.md "nsip-project.schema.json#/$defs/meeting/properties/meetingType")
115
+
116
+ ### meetingType Type
117
+
118
+ `string`
119
+
120
+ ## Additional Properties
121
+
122
+ Additional properties are allowed and do not have to follow a specific schema
@@ -0,0 +1,3 @@
1
+ ## $defs Type
2
+
3
+ unknown