contentful-management
Version:
Client for Contentful's Content Management API
15 lines (14 loc) • 753 B
TypeScript
import type { BulkActionPayload, BulkActionProps } from '../entities/bulk-action';
import type { PlainClientAPI } from '../plain/common-types';
import type { AsyncActionProcessingOptions } from './action';
type PlainOptions = {
/** Used by the PlainClient to perform a poll for the BulkAction status */
plainClient: PlainClientAPI;
spaceId: string;
environmentId: string;
bulkActionId: string;
};
/** Waits for a BulkAction status to be either succeeded or failed.
* Used by the Plain client */
export declare function waitForBulkActionProcessing<T extends BulkActionPayload = any>({ plainClient, spaceId, environmentId, bulkActionId }: PlainOptions, options?: AsyncActionProcessingOptions): Promise<BulkActionProps<T>>;
export {};