Skip to content

resolvePackageNamesByApiName

resolvePackageNamesByApiName(connection, apiNames, options): Promise<Map<string, string>>

Defined in: packages/simply-core/src/metadata/packageAttribution.ts:128

Resolve the publishing package of each named object, via EntityDefinition.Publisher.Name.

This covers managed packages and standard objects; unlocked-package components need resolvePackageNamesBySubjectId instead.

Connection

The org connection to query against.

readonly string[]

Object API names to resolve.

ResolvePackageNamesByApiNameOptions

Chunk size, failure tolerance, and the no-publisher label.

Promise<Map<string, string>>

Package label by object API name, for every object the query returned.