@salesforce/acu-pack
Version:
SFDX CLI Extensions
65 lines (64 loc) • 2.88 kB
TypeScript
export declare class SfdxEntity {
id: string;
parentId: string;
name: string;
}
export declare class SfdxSeupEntityAccess {
setupEntityId: string;
setupEntityType: string;
}
export declare class SfdxFolder extends SfdxEntity {
developerName: string;
type: string;
}
export declare class SfdxPermissionSet extends SfdxEntity {
isOwnedByProfile: boolean;
profileName: string;
}
export declare abstract class SfdxPermission extends SfdxEntity {
permissionsEdit: boolean;
permissionsRead: boolean;
abstract permissionType: string;
}
export declare class SfdxFieldPermission extends SfdxPermission {
permissionType: string;
field: string;
}
export declare class SfdxObjectPermission extends SfdxPermission {
permissionType: string;
permissionsCreate: boolean;
permissionsDelete: boolean;
permissionsModifyAllRecords: boolean;
permissionsViewAllRecords: boolean;
}
export declare class SfdxCodeCoverage {
codeCoverage: SfdxCodeCoverageItem[];
totalCoveredLines: number;
totalUncoveredLines: number;
codeCoveragePercent: number;
constructor();
calculateCodeCoverage(): void;
}
export declare class SfdxCodeCoverageItem extends SfdxEntity {
codeCoverage: number;
coveredLines: number[];
uncoveredLines: number[];
constructor();
getCodeCoveragePercent(): number;
}
export declare class SfdxQuery {
static MAX_QUERY_LIMIT: number;
static getCustomApplications(usernameOrAlias: string): Promise<SfdxEntity[]>;
static getSetupEntityTypes(usernameOrAlias: string): Promise<string[]>;
static getFolders(usernameOrAlias: string): Promise<SfdxFolder[]>;
static getPermissions(usernameOrAlias: string): Promise<Map<string, SfdxPermissionSet>>;
static getObjectPermissions(usernameOrAlias: string, customObjectTypeName: string): Promise<SfdxObjectPermission[]>;
static getFieldPermissions(usernameOrAlias: string, customObjectTypeName: string): Promise<SfdxFieldPermission[]>;
static getSetupEntityAccessForTypes(usernameOrAlias: string, setupEntityTypeNames: string[]): Promise<SfdxSeupEntityAccess[]>;
static doSoqlQuery(usernameOrAlias: string, query: string, recordOffset?: number, recordLimit?: number, isToolingAPIQuery?: boolean): Promise<any[]>;
static getApexTestClasses(usernameOrAlias: string, namespacePrefixes?: string[]): Promise<SfdxEntity[]>;
static getCodeCoverage(usernameOrAlias: string): Promise<SfdxCodeCoverage>;
static waitForRecordCount(usernameOrAlias: string, query: string, recordCount?: number, maxWaitSeconds?: number, sleepMiliseconds?: number): AsyncGenerator<number, void, void>;
static waitForApexTests(username: string, waitCountMaxSeconds?: number, createdDate?: string): AsyncGenerator<number, number, void>;
static getInClause(values?: string[], isValueNumeric?: boolean): string;
}