UNPKG

@flxbl-io/sfp

Version:

sfp is a CLI tool to help you manage your Salesforce projects in an artifact centric model

34 lines (33 loc) 965 B
export type IdFlagConfig = { /** * Can specify if the version must be 15 or 18 characters long or 'both'. Leave blank to allow either 15 or 18. */ length?: 15 | 18 | 'both'; /** * If the ID belongs to a certain sobject type, specify the 3 character prefix. */ startsWith?: string; }; /** * Id flag with built-in validation. Short character is `i` * * @example * * ``` * import { Flags } from '@salesforce/sf-plugins-core'; * public static flags = { * // set length or prefix * 'flag-name': salesforceId({ length: 15, startsWith: '00D' }), * // add flag properties * 'flag2': salesforceId({ * required: true, * description: 'flag2 description', * }), * // override the character i * 'flag3': salesforceId({ * char: 'j', * }), * } * ``` */ export declare const salesforceIdFlag: import("@oclif/core/lib/interfaces/parser").FlagDefinition<string, IdFlagConfig>;