@dvsa/cvs-type-definitions 6.3.0 → 7.0.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 (67) hide show
  1. package/json-schemas/v1/activity/index.json +53 -8
  2. package/json-schemas/v1/enums/activityType.enum.json +14 -0
  3. package/json-schemas/v1/enums/emissionStandard.enum.json +26 -0
  4. package/json-schemas/v1/enums/fuelType.enum.json +22 -0
  5. package/json-schemas/v1/enums/odometerReadingUnits.enum.json +12 -0
  6. package/json-schemas/v1/enums/sources.enum.json +12 -0
  7. package/json-schemas/v1/enums/testResult.enum.json +16 -0
  8. package/json-schemas/v1/enums/testStationType.enum.json +16 -0
  9. package/json-schemas/v1/enums/testStatus.enum.json +12 -0
  10. package/json-schemas/v1/enums/typeOfTest.enum.json +14 -0
  11. package/json-schemas/v1/enums/waitReason.enum.json +18 -0
  12. package/json-schemas/v1/test/index.json +631 -87
  13. package/json-schemas/v1/test-result/index.json +448 -53
  14. package/json-schemas/v1/test-type/index.json +183 -34
  15. package/json-schemas/v1/vehicle/index.json +631 -87
  16. package/json-schemas/v1/visit/index.json +631 -87
  17. package/json-schemas/v3/tech-record/get/hgv/complete/index.json +1 -2
  18. package/json-schemas/v3/tech-record/get/hgv/skeleton/index.json +1 -2
  19. package/json-schemas/v3/tech-record/get/hgv/testable/index.json +1 -2
  20. package/json-schemas/v3/tech-record/get/trl/complete/index.json +1 -2
  21. package/json-schemas/v3/tech-record/get/trl/skeleton/index.json +1 -2
  22. package/json-schemas/v3/tech-record/get/trl/testable/index.json +1 -2
  23. package/json-schemas/v3/tech-record/put/hgv/complete/index.json +1 -2
  24. package/json-schemas/v3/tech-record/put/hgv/skeleton/index.json +1 -2
  25. package/json-schemas/v3/tech-record/put/hgv/testable/index.json +1 -2
  26. package/json-schemas/v3/tech-record/put/trl/complete/index.json +1 -2
  27. package/json-schemas/v3/tech-record/put/trl/skeleton/index.json +1 -2
  28. package/json-schemas/v3/tech-record/put/trl/testable/index.json +1 -2
  29. package/package.json +1 -1
  30. package/schemas.d.ts +1 -1
  31. package/schemas.js +10 -0
  32. package/types/v1/activity/index.d.ts +26 -6
  33. package/types/v1/enums/activityType.enum.d.ts +10 -0
  34. package/types/v1/enums/activityType.enum.js +15 -0
  35. package/types/v1/enums/activityType.enum.ts +12 -0
  36. package/types/v1/enums/emissionStandard.enum.d.ts +16 -0
  37. package/types/v1/enums/emissionStandard.enum.js +21 -0
  38. package/types/v1/enums/emissionStandard.enum.ts +18 -0
  39. package/types/v1/enums/fuelType.enum.d.ts +14 -0
  40. package/types/v1/enums/fuelType.enum.js +19 -0
  41. package/types/v1/enums/fuelType.enum.ts +16 -0
  42. package/types/v1/enums/odometerReadingUnits.enum.d.ts +9 -0
  43. package/types/v1/enums/odometerReadingUnits.enum.js +14 -0
  44. package/types/v1/enums/odometerReadingUnits.enum.ts +11 -0
  45. package/types/v1/enums/sources.enum.d.ts +9 -0
  46. package/types/v1/enums/sources.enum.js +14 -0
  47. package/types/v1/enums/sources.enum.ts +11 -0
  48. package/types/v1/enums/testResult.enum.d.ts +11 -0
  49. package/types/v1/enums/testResult.enum.js +16 -0
  50. package/types/v1/enums/testResult.enum.ts +13 -0
  51. package/types/v1/enums/testStationType.enum.d.ts +11 -0
  52. package/types/v1/enums/testStationType.enum.js +16 -0
  53. package/types/v1/enums/testStationType.enum.ts +13 -0
  54. package/types/v1/enums/testStatus.enum.d.ts +9 -0
  55. package/types/v1/enums/testStatus.enum.js +14 -0
  56. package/types/v1/enums/testStatus.enum.ts +11 -0
  57. package/types/v1/enums/typeOfTest.enum.d.ts +10 -0
  58. package/types/v1/enums/typeOfTest.enum.js +15 -0
  59. package/types/v1/enums/typeOfTest.enum.ts +12 -0
  60. package/types/v1/enums/waitReason.enum.d.ts +12 -0
  61. package/types/v1/enums/waitReason.enum.js +17 -0
  62. package/types/v1/enums/waitReason.enum.ts +14 -0
  63. package/types/v1/test/index.d.ts +143 -28
  64. package/types/v1/test-result/index.d.ts +143 -28
  65. package/types/v1/test-type/index.d.ts +65 -14
  66. package/types/v1/vehicle/index.d.ts +143 -28
  67. package/types/v1/visit/index.d.ts +143 -28
@@ -2,9 +2,26 @@
2
2
  "title": "Activity Schema",
3
3
  "type": "object",
4
4
  "properties": {
5
- "activityType": {
5
+ "parentId": {
6
6
  "type": "string"
7
7
  },
8
+ "id": {
9
+ "type": "string"
10
+ },
11
+ "activityType": {
12
+ "title": "Activity Type",
13
+ "type": "string",
14
+ "tsEnumNames": [
15
+ "VISIT",
16
+ "WAIT",
17
+ "UNACCOUNTABLE_TIME"
18
+ ],
19
+ "enum": [
20
+ "visit",
21
+ "time",
22
+ "unaccountable time"
23
+ ]
24
+ },
8
25
  "testStationName": {
9
26
  "type": "string"
10
27
  },
@@ -15,7 +32,20 @@
15
32
  "type": "string"
16
33
  },
17
34
  "testStationType": {
18
- "type": "string"
35
+ "title": "Test Station Types",
36
+ "type": "string",
37
+ "tsEnumNames": [
38
+ "ATF",
39
+ "GVTS",
40
+ "HQ",
41
+ "POTF"
42
+ ],
43
+ "enum": [
44
+ "atf",
45
+ "gvts",
46
+ "hq",
47
+ "potf"
48
+ ]
19
49
  },
20
50
  "testerName": {
21
51
  "type": "string"
@@ -30,21 +60,36 @@
30
60
  "type": "string"
31
61
  },
32
62
  "endTime": {
33
- "type": "string"
34
- },
35
- "parentId": {
36
- "type": "string"
63
+ "type": [
64
+ "null",
65
+ "string"
66
+ ]
37
67
  },
38
68
  "waitReason": {
39
69
  "type": "array",
40
70
  "items": {
41
- "type": "string"
71
+ "title": "Wait Reason",
72
+ "type": "string",
73
+ "tsEnumNames": [
74
+ "WAITING_FOR_VEHICLE",
75
+ "BREAK",
76
+ "ADMIN",
77
+ "SITE_ISSUE",
78
+ "OTHER"
79
+ ],
80
+ "enum": [
81
+ "Waiting for vehicle",
82
+ "Break",
83
+ "Admin",
84
+ "Site issue",
85
+ "Other"
86
+ ]
42
87
  }
43
88
  },
44
89
  "notes": {
45
90
  "type": "string"
46
91
  },
47
- "id": {
92
+ "activityDay": {
48
93
  "type": "string"
49
94
  }
50
95
  },
@@ -0,0 +1,14 @@
1
+ {
2
+ "title": "Activity Type",
3
+ "type": "string",
4
+ "tsEnumNames": [
5
+ "VISIT",
6
+ "WAIT",
7
+ "UNACCOUNTABLE_TIME"
8
+ ],
9
+ "enum": [
10
+ "visit",
11
+ "time",
12
+ "unaccountable time"
13
+ ]
14
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "title": "Emission Standards",
3
+ "type": "string",
4
+ "tsEnumNames": [
5
+ "EURO3_PM",
6
+ "EURO4_PM",
7
+ "EURO3",
8
+ "EURO4",
9
+ "EURO5",
10
+ "EURO6",
11
+ "EUROV",
12
+ "EUROVI",
13
+ "FULL_ELECTRIC"
14
+ ],
15
+ "enum": [
16
+ "0.10 g/kWh Euro 3 PM",
17
+ "0.03 g/kWh Euro IV PM'",
18
+ "Euro 3",
19
+ "Euro 4",
20
+ "Euro 5",
21
+ "Euro 6",
22
+ "Euro V",
23
+ "Euro VI",
24
+ "Full Electric"
25
+ ]
26
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "title": "Fuel Type",
3
+ "type": "string",
4
+ "tsEnumNames": [
5
+ "DIESEL",
6
+ "GAS_CNG",
7
+ "GAS_LNG",
8
+ "GAS_LPG",
9
+ "PETROL",
10
+ "FUEL_CELL",
11
+ "FULL_ELECTRIC"
12
+ ],
13
+ "enum": [
14
+ "diesel",
15
+ "gas-cng",
16
+ "gas-lng",
17
+ "gas-lpg",
18
+ "petrol",
19
+ "fuel cell",
20
+ "full electric"
21
+ ]
22
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "title": "Odometer Reading Units",
3
+ "type": "string",
4
+ "tsEnumNames": [
5
+ "KILOMETRES",
6
+ "MILES"
7
+ ],
8
+ "enum": [
9
+ "kilometres",
10
+ "miles"
11
+ ]
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "title": "Test Sources",
3
+ "type": "string",
4
+ "tsEnumNames": [
5
+ "VTM",
6
+ "VTA"
7
+ ],
8
+ "enum": [
9
+ "vtm",
10
+ "vta"
11
+ ]
12
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "title": "Test Results",
3
+ "type": "string",
4
+ "tsEnumNames": [
5
+ "PASS",
6
+ "PRS",
7
+ "FAIL",
8
+ "ABANDONED"
9
+ ],
10
+ "enum": [
11
+ "pass",
12
+ "prs",
13
+ "fail",
14
+ "abandoned"
15
+ ]
16
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "title": "Test Station Types",
3
+ "type": "string",
4
+ "tsEnumNames": [
5
+ "ATF",
6
+ "GVTS",
7
+ "HQ",
8
+ "POTF"
9
+ ],
10
+ "enum": [
11
+ "atf",
12
+ "gvts",
13
+ "hq",
14
+ "potf"
15
+ ]
16
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "title": "Test Status",
3
+ "type": "string",
4
+ "tsEnumNames": [
5
+ "SUBMITTED",
6
+ "CANCELLED"
7
+ ],
8
+ "enum": [
9
+ "submitted",
10
+ "cancelled"
11
+ ]
12
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "title": "Type of test",
3
+ "type": "string",
4
+ "tsEnumNames": [
5
+ "CONTINGENCY",
6
+ "DESK_BASED",
7
+ "COMPLETION"
8
+ ],
9
+ "enum": [
10
+ "contingency",
11
+ "desk-based",
12
+ "completion"
13
+ ]
14
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "title": "Wait Reason",
3
+ "type": "string",
4
+ "tsEnumNames": [
5
+ "WAITING_FOR_VEHICLE",
6
+ "BREAK",
7
+ "ADMIN",
8
+ "SITE_ISSUE",
9
+ "OTHER"
10
+ ],
11
+ "enum": [
12
+ "Waiting for vehicle",
13
+ "Break",
14
+ "Admin",
15
+ "Site issue",
16
+ "Other"
17
+ ]
18
+ }