import EntriesMigrationService from './EntriesMigrationService'; import { EntriesResult, MigrateRequest, UpdateFieldResult } from '../models/Operations'; declare class UpdateFieldService extends EntriesMigrationService { fieldId: string; find: string; replace: string; constructor(payload: MigrateRequest, preview: boolean); /** * Find a specific value in an entry field and replace it with another */ UpdateFieldContent: () => Promise; /** * Validate inputs and hydrate the internal Contensis repositories * TODO: Resolve each content type fieldId in source and destinationId in target repository */ Initialise: () => Promise; /** * Add the new field value to the source entries, * applying transformations to the field value * and/or applying any provided template to modify the value * overwrites any existing data in destination field */ TransformEntries: () => Promise; /** * Add additional info regarding the copy operation to the entries migration result * @param entriesResult The result of the entries migration * @returns The result of the copy field operation */ MapUpdateFieldResult: (entriesResult: EntriesResult) => UpdateFieldResult; } export default UpdateFieldService;