feat: add changed details for plans with recent changes (not all are accurate yet)

This commit is contained in:
2025-08-30 17:18:56 -06:00
parent 24a7cf5eb6
commit 475f4d5ce5
5 changed files with 398 additions and 17 deletions

View File

@@ -72,11 +72,15 @@ export interface PlanActionClaim extends ClaimObject {
name: string;
agent?: { identifier: string };
description?: string;
endTime?: string;
identifier?: string;
image?: string;
lastClaimId?: string;
location?: {
geo: { "@type": "GeoCoordinates"; latitude: number; longitude: number };
};
startTime?: string;
url?: string;
}
// AKA Registration & RegisterAction

View File

@@ -1,5 +1,5 @@
import { GiveActionClaim, OfferClaim } from "./claims";
import { ClaimObject } from "./common";
import { GiveActionClaim, OfferClaim, PlanActionClaim } from "./claims";
import { GenericCredWrapper } from "./common";
// a summary record; the VC is found the fullClaim field
export interface GiveSummaryRecord {
@@ -64,7 +64,7 @@ export interface PlanSummaryRecord {
export interface PlanSummaryAndPreviousClaim {
plan: PlanSummaryRecord;
wrappedClaimBefore: ClaimObject;
wrappedClaimBefore: GenericCredWrapper<PlanActionClaim>;
}
/**