fix all the lint warnings

This commit is contained in:
2023-09-04 15:17:32 -06:00
parent a5e0c847b1
commit 4b9cbd0e9f
10 changed files with 91 additions and 39 deletions

View File

@@ -65,6 +65,29 @@ export interface GiveVerifiableCredential {
recipient?: { identifier: string };
}
export interface PlanVerifiableCredential {
"@context": "https://schema.org";
"@type": "PlanAction";
name: string;
description: string;
identifier?: string;
location?: {
geo: { "@type": "GeoCoordinates"; latitude: number; longitude: number };
};
}
export interface PlanServerRecord {
agentDid?: string; // optional, if the issuer wants someone else to manage as well
description: string;
endTime?: string;
issuerDid: string;
handleId: string;
locLat?: number;
locLon?: number;
startTime?: string;
url?: string;
}
export interface RegisterVerifiableCredential {
"@context": string;
"@type": string;
@@ -112,7 +135,11 @@ export function didInfo(
}
}
export interface SuccessResult {
export interface ResultWithType {
type: string;
}
export interface SuccessResult extends ResultWithType {
type: "success";
response: AxiosResponse<ClaimResult>;
}
@@ -242,7 +269,7 @@ export async function createAndSubmitGive(
type: "error",
error: {
error: errorMessage,
userMessage: "Failed to create and submit the claim",
userMessage: "Failed to create and submit the claim.",
},
};
}