Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions audit-ci.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
"GHSA-2g4f-4pwh-qvx6",
"GHSA-3ppc-4f35-3m26",
"GHSA-mw96-cpmx-2vgc",
"GHSA-23c5-xmqv-rm74",
"GHSA-5c6j-r48x-rmvq",
"GHSA-7r86-cg39-jmmj",
],
}
4 changes: 2 additions & 2 deletions types/Address/Verification.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IFieldError } from '../errors';
import { IAddressVerificationFieldError } from '../errors';
import { IVerificationDetails } from './VerificationDetails';

/**
Expand All @@ -13,7 +13,7 @@ export declare interface IVerification {
/**
* All errors that caused the verification to fail
*/
errors: IFieldError[];
errors: IAddressVerificationFieldError[];

/**
* Extra data related to the verification
Expand Down
26 changes: 26 additions & 0 deletions types/errors/AddressVerificationFieldError.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { TErrorCode } from './ErrorCode';

/**
* @see https://docs.easypost.com/docs/errors#addressverificationfielderror-object
*/
export declare interface IAddressVerificationFieldError {
/**
* Machine readable description of the problem
*/
code: TErrorCode;

/**
* Field of the request that the error describes
*/
field: string;

/**
* Human readable description of the problem
*/
message: string;

/**
* Occasional insight on how to correct the error
*/
suggestion?: string;
}
5 changes: 5 additions & 0 deletions types/errors/FieldError.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ export declare interface IFieldError {
* Human readable description of the problem
*/
message: string;

/**
* Occasional insight on how to correct the error
*/
suggestion?: string;
}
1 change: 1 addition & 0 deletions types/errors/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './AddressVerificationFieldError';
export * from './Error';
export * from './ErrorCode';
export * from './FieldError';