nexus-react-core
Version:
A comprehensive React toolkit with services, hooks, and Redux store management
43 lines • 1.24 kB
TypeScript
export interface ImageAssignment {
id: string;
imageUrl: string;
imageKey: string;
assignedAt: string;
expiresAt: string;
attempts: number;
}
export interface MissionInfo {
id: string;
title: string;
description: string;
instructions: string;
platform: string;
}
export interface GetBatchResponse {
success: boolean;
data: {
assignments: ImageAssignment[];
count: number;
mission: MissionInfo;
} | null;
message?: string;
}
export interface SkipResponse {
success: boolean;
message: string;
data?: any;
}
/**
* Fetches a batch of image assignments for a specific mission
* @param missionId The ID of the mission
* @param count Optional number of images to fetch (default: 3)
*/
export declare const getImageAssignmentBatch: (missionId: string, count?: number) => Promise<GetBatchResponse>;
/**
* Skips an image assignment
* @param missionId The ID of the mission
* @param imageKey The key of the image to skip
* @param reason Optional reason for skipping
*/
export declare const skipImageAssignment: (missionId: string, imageKey: string, reason?: string) => Promise<SkipResponse>;
//# sourceMappingURL=imageAssignmentService.d.ts.map