PersistentAI API Documentation / @persistent-ai/fireflow-vfs / server / upsertAppRegistryEntry
Function: upsertAppRegistryEntry()
upsertAppRegistryEntry(
db,data):Promise<{appId:string;authMode:string;branch:string;createdAt:Date;displayConfig:Record<string,unknown> |null;executionConfig:Record<string,unknown> |null;flowId:string|null;lastSyncedAt:Date;manifestChecksum:string|null;name:string;ownerId:string;path:string;updatedAt:Date;vfsConfig: {rules?:object[]; } |null;visibility:string;workspaceId:string; }>
Defined in: packages/fireflow-vfs/src/steps/app-registry-steps.ts:33
Upsert an app registry entry.
Uses ON CONFLICT (app_id) DO UPDATE to handle both inserts and updates. When an app is moved, the upsert updates the path to the new location.
Parameters
db
data
appId
string
authMode?
string
branch?
string
createdAt?
Date
displayConfig?
Record<string, unknown> | null
executionConfig?
Record<string, unknown> | null
flowId?
string | null
lastSyncedAt?
Date
manifestChecksum?
string | null
name
string
ownerId
string
path
string
updatedAt?
Date
vfsConfig?
{ rules?: object[]; } | null
visibility?
string
workspaceId
string
Returns
Promise<{ appId: string; authMode: string; branch: string; createdAt: Date; displayConfig: Record<string, unknown> | null; executionConfig: Record<string, unknown> | null; flowId: string | null; lastSyncedAt: Date; manifestChecksum: string | null; name: string; ownerId: string; path: string; updatedAt: Date; vfsConfig: { rules?: object[]; } | null; visibility: string; workspaceId: string; }>