import { DatapackDeploymentRecord } from './datapackDeploymentRecord'; import { DatapackkDeploymentState } from './datapackDeploymentStatus'; export declare class DatapackDeploymentRecordGroup implements Iterable { readonly key: string; readonly records: DatapackDeploymentRecord[]; get datapackType(): string; get datapackKey(): string; /** * Total number of records in this group */ get size(): number; /** * Number of failed records in this group */ get failedCount(): number; /** * Get the deployment group status based on the status of the individual records in teh group */ get status(): DatapackkDeploymentState; /** * Create a new group instance. * @param key Key of this group * @param records Records */ constructor(key: string, records?: DatapackDeploymentRecord[]); [Symbol.iterator](): ArrayIterator; /** * Adds an a new record to the */ push(record: DatapackDeploymentRecord): void; /** * Determines if this group has any pending records */ hasPendingRecords(): boolean; /** * Determines if the deployment of this record group has already started or if all records are still pending. */ isStarted(): boolean; /** * Determines if there were errors deploying this record group. */ hasErrors(): boolean; /** * Get the first record of the specified SObject type, checks for both NS prefixed and non-prefixed records if the sobjectType does not have a prefix. * Does not replace namespace placeholders. The matching is case-sensitive * @see {@link DatapackDeploymentRecord.isMatch} for the matching logic * @param sobjectType Type of sobject to look for as string or Regular expression */ getRecordOfType(sobjectType: string | RegExp): DatapackDeploymentRecord | undefined; /** * Get akk records of the specified SObject type, checks for both NS prefixed and non-prefixed records if the sobjectType does not have a prefix. * Does not replace namespace placeholders. The matching is case-sensitive * @see {@link DatapackDeploymentRecord.isMatch} for the matching logic * @param sobjectType Type of sobject to look for as string or Regular expression */ getRecordsOfType(sobjectType: string | RegExp): DatapackDeploymentRecord[]; /** * Get a deployment record with the specified record id. * @param id Salesforce record id * @returns The deployment record matching the specified ID or undefined */ getRecordById(id: string): DatapackDeploymentRecord | undefined; } //# sourceMappingURL=datapackDeploymentRecordGroup.d.ts.map