From 8f73e7aed3337fed18f7ba2752c80ad5cb4dc1e5 Mon Sep 17 00:00:00 2001 From: vamsimundra <85279195+vamsimundra@users.noreply.github.com> Date: Wed, 18 Aug 2021 11:49:56 -0700 Subject: [PATCH] fix: export all public TS types and interfaces (#423) * fix: making exports in the right format @W-9727845@ * chore: removing yarn changes --- src/client/index.ts | 40 +++++++++++++++--- src/collections/index.ts | 8 +++- src/common/index.ts | 2 +- src/convert/index.ts | 9 +++-- src/index.ts | 87 +++++++++++++++++++++++++++++++++------- src/registry/index.ts | 3 +- src/resolve/index.ts | 9 +++-- 7 files changed, 127 insertions(+), 31 deletions(-) diff --git a/src/client/index.ts b/src/client/index.ts index 89af6497cc..864594d5b6 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -13,15 +13,43 @@ export { } from './metadataApiRetrieve'; export { ToolingApi, ToolingDeployOptions, ToolingRetrieveOptions } from './toolingApi'; export { - AsyncResult, + ComponentDeployment, + ComponentRetrieval, + ComponentDiagnostic, FileResponse, + SourceApiResult, + AsyncResult, + SourceDeployResult, + RequestStatus, + MetadataRequestStatus, + RetrieveFailure, + RetrieveSuccess, + SourceRetrieveResult, MetadataApiDeployStatus, + DeployDetails, + RunTestResult, + CodeCoverage, + LocationsNotCovered, + CodeCoverageWarnings, + Failures, + Successes, + DeployMessage, + RetrieveRequest, + RetrieveMessage, + FileProperties, + ComponentStatus, MetadataApiRetrieveStatus, + PackageOption, + PackageOptions, RetrieveOptions, - SourceDeployResult, - RetrieveMessage, - SourceRetrieveResult, + ContainerAsyncRequest, ToolingDeployStatus, - ComponentStatus, - FileProperties, + QueryResult, + ApexRecord, + VFRecord, + AuraRecord, + LWCRecord, + ToolingCreateResult, + AuraDefinition, + LightningComponentResource, } from './types'; diff --git a/src/collections/index.ts b/src/collections/index.ts index 2d7f403218..edaf009018 100644 --- a/src/collections/index.ts +++ b/src/collections/index.ts @@ -6,4 +6,10 @@ */ export { LazyCollection } from './lazyCollection'; export { ComponentSet, DeploySetOptions, RetrieveSetOptions } from './componentSet'; -export { FromSourceOptions, FromManifestOptions } from './types'; +export { + PackageTypeMembers, + PackageManifestObject, + DestructiveChangesType, + FromSourceOptions, + FromManifestOptions, +} from './types'; diff --git a/src/common/index.ts b/src/common/index.ts index 7ad08d7d5f..18536f71d9 100644 --- a/src/common/index.ts +++ b/src/common/index.ts @@ -4,7 +4,7 @@ * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ -export { SourcePath, OptionalTreeRegistryOptions } from './types'; +export { SourcePath, TreeOptions, OptionalTreeRegistryOptions, RegistryOptions } from './types'; export { DEFAULT_PACKAGE_ROOT_SFDX, META_XML_SUFFIX, diff --git a/src/convert/index.ts b/src/convert/index.ts index a3a7272d5c..2de53d273f 100644 --- a/src/convert/index.ts +++ b/src/convert/index.ts @@ -6,10 +6,13 @@ */ export { MetadataConverter } from './metadataConverter'; export { - ConvertResult, - ConvertOutputConfig, - SfdxFileFormat, WriteInfo, WriterFormat, + DirectoryConfig, + ZipConfig, + MergeConfig, MetadataTransformer, + SfdxFileFormat, + ConvertOutputConfig, + ConvertResult, } from './types'; diff --git a/src/index.ts b/src/index.ts index 9fc00c0533..8bdfd87a76 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,45 +5,102 @@ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ export { - AsyncResult, MetadataApiDeploy, MetadataApiDeployOptions, + DeployResult, MetadataApiRetrieve, MetadataApiRetrieveOptions, RetrieveResult, ToolingApi, ToolingDeployOptions, ToolingRetrieveOptions, - DeployResult, + ComponentDeployment, + ComponentRetrieval, + ComponentDiagnostic, FileResponse, + SourceApiResult, + AsyncResult, + SourceDeployResult, + RequestStatus, + MetadataRequestStatus, + RetrieveFailure, + RetrieveSuccess, + SourceRetrieveResult, MetadataApiDeployStatus, + DeployDetails, + RunTestResult, + CodeCoverage, + LocationsNotCovered, + CodeCoverageWarnings, + Failures, + Successes, + DeployMessage, + RetrieveRequest, + RetrieveMessage, + FileProperties, + ComponentStatus, MetadataApiRetrieveStatus, + PackageOption, + PackageOptions, RetrieveOptions, - SourceDeployResult, - RetrieveMessage, - SourceRetrieveResult, + ContainerAsyncRequest, ToolingDeployStatus, - ComponentStatus, - FileProperties, + QueryResult, + ApexRecord, + VFRecord, + AuraRecord, + LWCRecord, + ToolingCreateResult, + AuraDefinition, + LightningComponentResource, } from './client'; -export { MetadataConverter, ConvertOutputConfig, ConvertResult } from './convert'; export { - MetadataComponent, - MetadataMember, + MetadataConverter, + WriteInfo, + WriterFormat, + DirectoryConfig, + ZipConfig, + MergeConfig, + MetadataTransformer, + SfdxFileFormat, + ConvertOutputConfig, + ConvertResult, +} from './convert'; +export { MetadataResolver, + ManifestResolver, + TreeContainer, + NodeFSTreeContainer, VirtualTreeContainer, ZipTreeContainer, SourceComponent, - TreeContainer, + MetadataComponent, + MetadataMember, + ComponentLike, + MetadataXml, + VirtualFile, VirtualDirectory, + SourceAdapter, ForceIgnore, } from './resolve'; -export { SourcePath } from './common'; +export { SourcePath, TreeOptions, OptionalTreeRegistryOptions, RegistryOptions } from './common'; export { + LazyCollection, ComponentSet, - FromManifestOptions, - FromSourceOptions, DeploySetOptions, RetrieveSetOptions, + PackageTypeMembers, + PackageManifestObject, + DestructiveChangesType, + FromSourceOptions, + FromManifestOptions, } from './collections'; -export { MetadataType, RegistryAccess, registry } from './registry'; +export { + RegistryAccess, + registry, + MetadataRegistry, + MetadataType, + DecompositionStrategy, + RecompositionStrategy, + TransformerStrategy, +} from './registry'; diff --git a/src/registry/index.ts b/src/registry/index.ts index bc49c83762..e9ce506849 100644 --- a/src/registry/index.ts +++ b/src/registry/index.ts @@ -7,8 +7,9 @@ export { registry } from './registry'; export { RegistryAccess } from './registryAccess'; export { - MetadataType, MetadataRegistry, + MetadataType, DecompositionStrategy, + RecompositionStrategy, TransformerStrategy, } from './types'; diff --git a/src/resolve/index.ts b/src/resolve/index.ts index 8ef76d25de..224008a384 100644 --- a/src/resolve/index.ts +++ b/src/resolve/index.ts @@ -14,11 +14,12 @@ export { } from './treeContainers'; export { SourceComponent } from './sourceComponent'; export { - MetadataXml, - SourceAdapter, - VirtualDirectory, MetadataComponent, - ComponentLike, MetadataMember, + ComponentLike, + MetadataXml, + VirtualFile, + VirtualDirectory, + SourceAdapter, } from './types'; export { ForceIgnore } from './forceIgnore';