Skip to content

Commit

Permalink
feat(CB2-13178): added in vef to the test station types array (#117)
Browse files Browse the repository at this point in the history
* feat(CB2-13178): added in vef to the test station types array

* feat(CB2-13178): use type definitions type instead

* feat(CB2-13178): use type definitions type instead

* feat(CB2-13178): update to the package lock
  • Loading branch information
Daniel-Searle authored Aug 20, 2024
1 parent c131241 commit a5dd986
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"@aws-sdk/client-dynamodb-streams": "3.577.0",
"@aws-sdk/client-secrets-manager": "3.565.0",
"@aws-sdk/util-dynamodb": "3.577.0",
"@dvsa/cvs-type-definitions": "^7.4.0",
"@types/lambda-tester": "4.0.3",
"aws-xray-sdk": "3.6.0",
"date-fns": "3.6.0",
Expand Down
7 changes: 3 additions & 4 deletions src/models/test-results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ import {
} from './shared-enums';
import { DynamoDbImage, parseStringArray } from '../services/dynamodb-images';
import { debugLog } from '../services/logger';
import { TestStationTypes } from "@dvsa/cvs-type-definitions/types/v1/enums/testStationType.enum";

export type TestVersion = 'current' | 'archived';

export type TestStationType = 'atf' | 'gvts' | 'hq';

export type TestStatus = 'submitted' | 'cancelled';

export type OdometerReadingUnits = 'kilometres' | 'miles';
Expand All @@ -37,7 +36,7 @@ export interface TestResult {
shouldEmailCertificate?: string;
testStationName?: string;
testStationPNumber?: string;
testStationType?: TestStationType;
testStationType?: TestStationTypes;
testerName?: string;
testerStaffId?: string;
testResultId?: string;
Expand Down Expand Up @@ -98,7 +97,7 @@ export const parseTestResult = (image: DynamoDbImage): TestResult => ({
shouldEmailCertificate: image.getString('shouldEmailCertificate'),
testStationName: image.getString('testStationName'),
testStationPNumber: image.getString('testStationPNumber'),
testStationType: image.getString('testStationType') as TestStationType,
testStationType: image.getString('testStationType') as TestStationTypes,
testerName: image.getString('testerName'),
testerStaffId: image.getString('testerStaffId'),
testResultId: image.getString('testResultId'),
Expand Down

0 comments on commit a5dd986

Please sign in to comment.