import type { TCollectionName, TFieldName, TFilter, TRow, TSchema } from '../../../templates'; import type { Caller, Collection, CompositeId, RecordData } from '@forestadmin/datasource-toolkit'; import CollectionCustomizationContext from '../../../context/collection-context'; export default class ActionContext = TCollectionName> extends CollectionCustomizationContext { readonly formValues: RecordData; readonly filter: TFilter; private _changedField; /** * @deprecated use `hasFieldChange` instead. [linked issue](https://github.com/ForestAdmin/agent-nodejs/issues/815). * @todo remove accessor */ get changedField(): string; private queries; private projection; hasFieldChanged: (fieldName: string) => boolean; constructor(collection: Collection, caller: Caller, formValue: RecordData, filter: TFilter, used?: Set, changedField?: string); /** * Get all the records selected by an action * @param fields An array of fields needed in the response * @example * .getRecords(['id', 'isActive', 'name']); */ getRecords(fields: TFieldName[]): Promise[]>; /** * Get all the records ids selected by an action */ getRecordIds(): Promise>; /** * Get all the records ids (when the collection uses composite keys) */ getCompositeRecordIds(): Promise; private runQuery; private reset; protected assertSomeRecordsMatch(records: any): void; } //# sourceMappingURL=base.d.ts.map