contentful-management
Version:
Client for Contentful's Content Management API
16 lines (15 loc) • 796 B
TypeScript
import type { ReleaseActionProps, ReleaseActionTypes } from '../entities/release-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;
releaseId: string;
actionId: string;
};
/** Waits for a ReleaseAction status to be either succeeded or failed.
* Used by the Plain client */
export declare function waitForReleaseActionProcessing<T extends ReleaseActionTypes = any>({ plainClient, spaceId, environmentId, releaseId, actionId }: PlainOptions, options?: AsyncActionProcessingOptions): Promise<ReleaseActionProps<T>>;
export {};