@dvsa/cvs-type-definitions 1.0.11

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 (33) hide show
  1. package/README.md +53 -0
  2. package/json-schemas/.DS_Store +0 -0
  3. package/json-schemas/activity/index.json +62 -0
  4. package/json-schemas/defect-category-reference-data/index.json +440 -0
  5. package/json-schemas/defect-details/index.json +265 -0
  6. package/json-schemas/defect-location/index.json +49 -0
  7. package/json-schemas/reason-item/index.json +17 -0
  8. package/json-schemas/tech-record/index.json +639 -0
  9. package/json-schemas/test/index.json +1843 -0
  10. package/json-schemas/test-result/index.json +636 -0
  11. package/json-schemas/test-station/index.json +67 -0
  12. package/json-schemas/test-type/index.json +479 -0
  13. package/json-schemas/vehicle/index.json +1804 -0
  14. package/json-schemas/vehicle-tech-record/index.json +683 -0
  15. package/json-schemas/visit/index.json +1895 -0
  16. package/lib/schemas.d.ts +1 -0
  17. package/lib/schemas.js +18 -0
  18. package/lib/src/schema-validation/schema-validator.d.ts +3 -0
  19. package/lib/src/schema-validation/schema-validator.js +22 -0
  20. package/package.json +35 -0
  21. package/types/activity/index.d.ts +23 -0
  22. package/types/defect-category-reference-data/index.d.ts +52 -0
  23. package/types/defect-details/index.d.ts +53 -0
  24. package/types/defect-location/index.d.ts +16 -0
  25. package/types/reason-item/index.d.ts +11 -0
  26. package/types/tech-record/index.d.ts +202 -0
  27. package/types/test/index.d.ts +353 -0
  28. package/types/test-result/index.d.ts +136 -0
  29. package/types/test-station/index.d.ts +23 -0
  30. package/types/test-type/index.d.ts +98 -0
  31. package/types/vehicle/index.d.ts +345 -0
  32. package/types/vehicle-tech-record/index.d.ts +212 -0
  33. package/types/visit/index.d.ts +366 -0
@@ -0,0 +1,265 @@
1
+ {
2
+ "title": "Defect Details Schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "imNumber": {
6
+ "type": "integer"
7
+ },
8
+ "imDescription": {
9
+ "type": "string"
10
+ },
11
+ "additionalInformation": {
12
+ "properties": {
13
+ "location": {
14
+ "title": "Defect Location Schema",
15
+ "type": "object",
16
+ "properties": {
17
+ "vertical": {
18
+ "type": [
19
+ "string",
20
+ "null"
21
+ ]
22
+ },
23
+ "horizontal": {
24
+ "type": [
25
+ "string",
26
+ "null"
27
+ ]
28
+ },
29
+ "lateral": {
30
+ "type": [
31
+ "string",
32
+ "null"
33
+ ]
34
+ },
35
+ "longitudinal": {
36
+ "type": [
37
+ "string",
38
+ "null"
39
+ ]
40
+ },
41
+ "rowNumber": {
42
+ "type": [
43
+ "integer",
44
+ "null"
45
+ ]
46
+ },
47
+ "seatNumber": {
48
+ "type": [
49
+ "integer",
50
+ "null"
51
+ ]
52
+ },
53
+ "axleNumber": {
54
+ "type": [
55
+ "integer",
56
+ "null"
57
+ ]
58
+ }
59
+ },
60
+ "additionalProperties": false
61
+ },
62
+ "notes": {
63
+ "type": "string"
64
+ }
65
+ },
66
+ "additionalProperties": false,
67
+ "required": [
68
+ "location",
69
+ "notes"
70
+ ]
71
+ },
72
+ "itemNumber": {
73
+ "type": "integer"
74
+ },
75
+ "itemDescription": {
76
+ "type": "string"
77
+ },
78
+ "deficiencyRef": {
79
+ "type": "string"
80
+ },
81
+ "deficiencyId": {
82
+ "type": [
83
+ "string",
84
+ "null"
85
+ ]
86
+ },
87
+ "deficiencySubId": {
88
+ "type": [
89
+ "string",
90
+ "null"
91
+ ]
92
+ },
93
+ "deficiencyCategory": {
94
+ "type": "string"
95
+ },
96
+ "deficiencyText": {
97
+ "type": [
98
+ "string",
99
+ "null"
100
+ ]
101
+ },
102
+ "stdForProhibition": {
103
+ "type": [
104
+ "boolean",
105
+ "null"
106
+ ]
107
+ },
108
+ "prs": {
109
+ "type": [
110
+ "boolean",
111
+ "null"
112
+ ]
113
+ },
114
+ "prohibitionIssued": {
115
+ "type": [
116
+ "boolean",
117
+ "null"
118
+ ]
119
+ },
120
+ "metadata": {
121
+ "title": "Defect Metadata Schema",
122
+ "type": "object",
123
+ "properties": {
124
+ "category": {
125
+ "properties": {
126
+ "additionalInfo": {
127
+ "title": "Defect Additional Details Metadata Schema",
128
+ "type": "object",
129
+ "properties": {
130
+ "location": {
131
+ "title": "Defect Location Metadata Schema",
132
+ "type": "object",
133
+ "properties": {
134
+ "vertical": {
135
+ "anyOf": [
136
+ {
137
+ "type": "array",
138
+ "items": {
139
+ "type": "string"
140
+ }
141
+ },
142
+ {
143
+ "type": "null"
144
+ }
145
+ ]
146
+ },
147
+ "horizontal": {
148
+ "anyOf": [
149
+ {
150
+ "type": "array",
151
+ "items": {
152
+ "type": "string"
153
+ }
154
+ },
155
+ {
156
+ "type": "null"
157
+ }
158
+ ]
159
+ },
160
+ "lateral": {
161
+ "anyOf": [
162
+ {
163
+ "type": "array",
164
+ "items": {
165
+ "type": "string"
166
+ }
167
+ },
168
+ {
169
+ "type": "null"
170
+ }
171
+ ]
172
+ },
173
+ "longitudinal": {
174
+ "anyOf": [
175
+ {
176
+ "type": "array",
177
+ "items": {
178
+ "type": "string"
179
+ }
180
+ },
181
+ {
182
+ "type": "null"
183
+ }
184
+ ]
185
+ },
186
+ "rowNumber": {
187
+ "anyOf": [
188
+ {
189
+ "type": "array",
190
+ "items": {
191
+ "type": "number"
192
+ }
193
+ },
194
+ {
195
+ "type": "null"
196
+ }
197
+ ]
198
+ },
199
+ "seatNumber": {
200
+ "anyOf": [
201
+ {
202
+ "type": "array",
203
+ "items": {
204
+ "type": "integer"
205
+ }
206
+ },
207
+ {
208
+ "type": "null"
209
+ }
210
+ ]
211
+ },
212
+ "axleNumber": {
213
+ "anyOf": [
214
+ {
215
+ "type": "array",
216
+ "items": {
217
+ "type": "number"
218
+ }
219
+ },
220
+ {
221
+ "type": "null"
222
+ }
223
+ ]
224
+ }
225
+ },
226
+ "additionalProperties": false
227
+ },
228
+ "notes": {
229
+ "type": "boolean"
230
+ }
231
+ },
232
+ "additionalProperties": false,
233
+ "required": [
234
+ "location",
235
+ "notes"
236
+ ]
237
+ }
238
+ },
239
+ "additionalProperties": false
240
+ }
241
+ },
242
+ "additionalProperties": false,
243
+ "required": [
244
+ "category"
245
+ ]
246
+ }
247
+ },
248
+ "additionalProperties": false,
249
+ "required": [
250
+ "imNumber",
251
+ "imDescription",
252
+ "additionalInformation",
253
+ "itemNumber",
254
+ "itemDescription",
255
+ "deficiencyRef",
256
+ "deficiencyId",
257
+ "deficiencySubId",
258
+ "deficiencyCategory",
259
+ "deficiencyText",
260
+ "stdForProhibition",
261
+ "prs",
262
+ "prohibitionIssued",
263
+ "metadata"
264
+ ]
265
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "title": "Defect Location Schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "vertical": {
6
+ "type": [
7
+ "string",
8
+ "null"
9
+ ]
10
+ },
11
+ "horizontal": {
12
+ "type": [
13
+ "string",
14
+ "null"
15
+ ]
16
+ },
17
+ "lateral": {
18
+ "type": [
19
+ "string",
20
+ "null"
21
+ ]
22
+ },
23
+ "longitudinal": {
24
+ "type": [
25
+ "string",
26
+ "null"
27
+ ]
28
+ },
29
+ "rowNumber": {
30
+ "type": [
31
+ "integer",
32
+ "null"
33
+ ]
34
+ },
35
+ "seatNumber": {
36
+ "type": [
37
+ "integer",
38
+ "null"
39
+ ]
40
+ },
41
+ "axleNumber": {
42
+ "type": [
43
+ "integer",
44
+ "null"
45
+ ]
46
+ }
47
+ },
48
+ "additionalProperties": false
49
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "title": "Reason Item Schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "text": {
6
+ "type": "string"
7
+ },
8
+ "isChecked": {
9
+ "type": "boolean"
10
+ }
11
+ },
12
+ "additionalProperties": false,
13
+ "required": [
14
+ "text",
15
+ "isChecked"
16
+ ]
17
+ }