scanLocalPlatformEventSubscriptions
scanLocalPlatformEventSubscriptions(
sourceDirs):PlatformEventSubscriptionLocalScanResult
Defined in: packages/simply-aep-core/src/at4dxPlatformEventSubscriptionLocalScan.ts:106
Scan local Salesforce DX source directories for AT4DX PlatformEvents_Subscription__mdt records,
parsing each CustomMetadata component’s <values> pairs directly — the same approach
at4dxLocalScan.ts/at4dxFieldSetInclusionLocalScan.ts use.
Unlike an org (see at4dxPlatformEventSubscriptionOrgScan.ts), local source gives no signal for
“this Custom Metadata Type doesn’t exist” independent of “zero records exist for it” — a missing
customMetadata folder and an empty one look identical to ComponentSet.fromSource. Callers treat
an empty result (no records and no malformed) as “AT4DX isn’t configured here.”
Parameters
Section titled “Parameters”sourceDirs
Section titled “sourceDirs”string[]
The source directories to scan.
Returns
Section titled “Returns”PlatformEventSubscriptionLocalScanResult
The discovered records, plus the malformed diagnostic validatePlatformEventSubscriptions consumes.