Skip to main content

fileUpdateIntent

@codebolt/codeboltjs


Variable: fileUpdateIntent

const fileUpdateIntent: {
cancel: (id: string, cancelledBy: string) => Promise<FileUpdateIntent>;
checkOverlap: (environmentId: string, filePaths: string[], priority: number) => Promise<IntentOverlapResult>;
complete: (id: string, closedBy: string) => Promise<FileUpdateIntent>;
create: (data: CreateFileUpdateIntentRequest, claimedBy: string, claimedByName?: string) => Promise<{
intent?: FileUpdateIntent;
overlap?: IntentOverlapResult;
}>;
delete: (id: string) => Promise<{
success: boolean;
}>;
get: (id: string) => Promise<FileUpdateIntent>;
getBlockedFiles: (environmentId: string) => Promise<{
blockedFiles: string[];
}>;
getByAgent: (agentId: string) => Promise<FileUpdateIntent[]>;
getFilesWithIntents: (environmentId: string) => Promise<FileWithIntent[]>;
list: (filters: FileUpdateIntentFilters) => Promise<FileUpdateIntent[]>;
update: (id: string, data: UpdateFileUpdateIntentRequest) => Promise<FileUpdateIntent>;
};

Defined in: packages/codeboltjs/src/modules/fileUpdateIntent.ts:15

File Update Intent service client for codeboltjs.

Type Declaration

NameTypeDescriptionDefined in
cancel()(id: string, cancelledBy: string) => Promise<FileUpdateIntent>Cancel an intentpackages/codeboltjs/src/modules/fileUpdateIntent.ts:100
checkOverlap()(environmentId: string, filePaths: string[], priority: number) => Promise<IntentOverlapResult>Check for overlap without creatingpackages/codeboltjs/src/modules/fileUpdateIntent.ts:116
complete()(id: string, closedBy: string) => Promise<FileUpdateIntent>Complete an intentpackages/codeboltjs/src/modules/fileUpdateIntent.ts:84
create()(data: CreateFileUpdateIntentRequest, claimedBy: string, claimedByName?: string) => Promise<{ intent?: FileUpdateIntent; overlap?: IntentOverlapResult; }>Create a new file update intentpackages/codeboltjs/src/modules/fileUpdateIntent.ts:20
delete()(id: string) => Promise<{ success: boolean; }>Delete an intentpackages/codeboltjs/src/modules/fileUpdateIntent.ts:180
get()(id: string) => Promise<FileUpdateIntent>Get a single intentpackages/codeboltjs/src/modules/fileUpdateIntent.ts:52
getBlockedFiles()(environmentId: string) => Promise<{ blockedFiles: string[]; }>Get blocked files (level 4 locks)packages/codeboltjs/src/modules/fileUpdateIntent.ts:132
getByAgent()(agentId: string) => Promise<FileUpdateIntent[]>Get intents by agentpackages/codeboltjs/src/modules/fileUpdateIntent.ts:148
getFilesWithIntents()(environmentId: string) => Promise<FileWithIntent[]>Get all files with intentspackages/codeboltjs/src/modules/fileUpdateIntent.ts:164
list()(filters: FileUpdateIntentFilters) => Promise<FileUpdateIntent[]>List intentspackages/codeboltjs/src/modules/fileUpdateIntent.ts:68
update()(id: string, data: UpdateFileUpdateIntentRequest) => Promise<FileUpdateIntent>Update an existing intentpackages/codeboltjs/src/modules/fileUpdateIntent.ts:36