UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

45 lines • 1.74 kB
import { BaseAgent } from "../../agent/BaseAgent.mjs"; import { VersionString } from "../../utils/version.mjs"; import { updateV0_3_1ToV0_4 } from "./updates/0.3.1-0.4/index.mjs"; import { updateV0_3ToV0_3_1 } from "./updates/0.3-0.3.1/index.mjs"; import { updateV0_4ToV0_5 } from "./updates/0.4-0.5/index.mjs"; import { UpdateConfig, UpdateToVersion } from "./updates.mjs"; import "../../index.mjs"; //#region src/storage/migration/UpdateAssistant.d.ts export interface UpdateAssistantUpdateOptions { updateToVersion?: UpdateToVersion; } export declare class UpdateAssistant<Agent extends BaseAgent<any> = BaseAgent> { private agent; private storageUpdateService; private updateConfig; constructor(agent: Agent, updateConfig?: UpdateConfig); initialize(): Promise<void>; isUpToDate(updateToVersion?: UpdateToVersion): Promise<boolean>; getCurrentAgentStorageVersion(): Promise<VersionString>; static get frameworkStorageVersion(): "0.5"; getNeededUpdates(toVersion?: UpdateToVersion): Promise<({ readonly fromVersion: "0.1"; readonly toVersion: "0.2"; readonly doUpdate: () => void; } | { readonly fromVersion: "0.2"; readonly toVersion: "0.3"; readonly doUpdate: () => void; } | { readonly fromVersion: "0.3"; readonly toVersion: "0.3.1"; readonly doUpdate: typeof updateV0_3ToV0_3_1; } | { readonly fromVersion: "0.3.1"; readonly toVersion: "0.4"; readonly doUpdate: typeof updateV0_3_1ToV0_4; } | { readonly fromVersion: "0.4"; readonly toVersion: "0.5"; readonly doUpdate: typeof updateV0_4ToV0_5; })[]>; update(options?: UpdateAssistantUpdateOptions): Promise<string | undefined>; } //#endregion //# sourceMappingURL=UpdateAssistant.d.mts.map