UNPKG

@flxbl-io/sfp

Version:

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

113 lines (112 loc) 3.29 kB
import { ApexSortedByType } from '../apex/parser/ApexTypeFetcher'; export type ApexClasses = Array<string>; declare class PackageInfo { id?: string; package_name: string; package_version_number?: string; package_version_id?: string; package_type?: string; test_coverage?: number; has_passed_coverage_check?: boolean; repository_url?: string; sourceVersion?: string; branch?: string; apextestsuite?: string; isApexFound?: boolean; assignPermSetsPreDeployment?: string[]; assignPermSetsPostDeployment?: string[]; apexTestClassses?: string[]; isPickListsFound?: boolean; isTriggerAllTests?: boolean; isProfilesFound?: boolean; isPermissionSetGroupFound?: boolean; isPromoted?: boolean; tag?: string; isDependencyValidated?: boolean; destructiveChanges?: any; destructiveChangesPath?: string; payload?: any; metadataCount?: number; sourceDir?: string; dependencies?: any; reconcileProfiles?: boolean; isPayLoadContainTypesSupportedByProfiles?: boolean; creation_details?: { creation_time?: number; timestamp?: number; }; deployments?: { target_org: string; sub_directory?: string; installation_time?: number; timestamp?: number; }[]; apiVersion?: string; postDeploymentScript?: string; preDeploymentScript?: string; apexClassWithOutTestClasses?: ApexClasses; triggers?: ApexClasses; configFilePath?: string; packageDescriptor?: any; commitSHAFrom?: string; commitSHATo?: string; packageDirectory?: string; apexClassesSortedByTypes?: ApexSortedByType; projectConfig?: any; changelogFilePath?: string; } export default class SfpPackage extends PackageInfo { projectDirectory: string; workingDirectory: string; mdapiDir: string; destructiveChangesPath: string; resolvedPackageDirectory: string; version: string; get packageName(): string; get versionNumber(): string; set versionNumber(versionNumber: string); get packageType(): string; set packageType(packageType: string); /** * Do not use this constructor directly, use SfPPackageBuilder * to build a package * */ constructor(); toJSON(): PackageInfo; } export declare enum PackageType { Unlocked = "unlocked", Source = "source", Data = "data", Diff = "diff" } export interface DiffPackageMetadata { sourceVersionFrom?: string; sourceVersionTo?: string; isProfilesFound?: boolean; apexTestClassses?: string[]; isApexFound?: boolean; isPicklistFound?: boolean; isPermissionSetGroupFound?: boolean; isPermissionSetFound?: boolean; payload?: any; metadataCount?: number; profilesToReconcile?: number; destructiveChanges?: any; sourceDir?: string; invalidatedTestClasses?: ApexClasses; isPayLoadContainTypesSupportedByProfiles?: boolean; } export interface SfpPackageParams { overridePackageTypeWith?: string; branch?: string; packageVersionNumber?: string; repositoryUrl?: string; sourceVersion?: string; configFilePath?: string; pathToReplacementForceIgnore?: string; revisionFrom?: string; revisionTo?: string; } export {};