UNPKG

@agility/cli

Version:

Agility CLI for working with your content. (Public Beta)

22 lines (21 loc) 958 B
import * as mgmtApi from '@agility/management-sdk'; /** * Simple batch polling function - polls until batch status is 3 (complete) */ export declare function pollBatchUntilComplete(apiClient: mgmtApi.ApiClient, batchID: number, targetGuid: string, originalPayloads?: any[], // Original payloads for error matching maxAttempts?: number, // 10 minutes at 2s intervals - increased from 120 intervalMs?: number, // 2 seconds batchType?: string): Promise<any>; /** * Extract results from completed batch */ export declare function extractBatchResults(batch: any, originalItems: any[]): { successfulItems: any[]; failedItems: any[]; }; export declare function prettyException(error: string): void; /** * Enhanced error logging for batch items with payload matching * This helps identify which specific payload caused the error using FIFO matching */ export declare function logBatchError(batchItem: any, index: number, originalPayload?: any): void;