@salesforce/acu-pack
Version:
SFDX CLI Extensions
28 lines (27 loc) • 1.41 kB
TypeScript
import { flags } from '@salesforce/command';
import { CommandBase } from '../../../lib/command-base';
import { ObjectDetail, FieldDetail, PermissionSet, MetadataDetail } from '../../../lib/sfdx-permission';
export default class Permissions extends CommandBase {
static defaultReportPath: string;
static defaultMetadataFolders: string[];
static description: string;
static examples: string[];
protected static flagsConfig: {
source: flags.Discriminated<flags.String>;
report: flags.Discriminated<flags.String>;
folders: flags.Discriminated<flags.String>;
};
protected static requiresProject: boolean;
protected defaultReportHeaderName: string;
protected objectMetadata: Map<string, ObjectDetail>;
protected fieldMetadata: Map<string, FieldDetail>;
protected permissions: Map<string, PermissionSet>;
protected reportHeaders: string[];
protected runInternal(): Promise<void>;
protected buildSheet(permCollectionPropertyName: string, metadataDetails?: Map<string, MetadataDetail>): string[][];
protected getObjectDetails(name: string): ObjectDetail;
protected getFieldDetails(name: string): FieldDetail;
protected processObjectMeta(filePath: string, json: string): void;
protected processFieldMeta(filePath: string, json: string): void;
protected processPermissionSetMeta(filePath: string, json: string): void;
}