UNPKG

@salesforce/plugin-org

Version:

Commands to interact with Salesforce orgs

30 lines (29 loc) 1.41 kB
import { SfCommand } from '@salesforce/sf-plugins-core'; export type AgentUserCreateResponse = { userId: string; username: string; profileId: string; permissionSetsAssigned: string[]; permissionSetErrors: Array<{ permissionSet: string; error: string; }>; }; export default class OrgCreateAgentUser extends SfCommand<AgentUserCreateResponse> { static readonly summary: string; static readonly description: string; static readonly examples: string[]; static readonly flags: { 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>; 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>; 'base-username': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>; 'first-name': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>; 'last-name': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>; }; run(): Promise<AgentUserCreateResponse>; private generateUsername; private checkAgentUserLicenses; private getProfileId; private createAgentUser; private assignPermissionSets; }