feat(config): add mapToName to BaseReadConfigObject#358
Open
RajatPawar wants to merge 1 commit into
Open
Conversation
Mirrors the manifest's IntegrationObject.mapToName so installations can rename a read object's delivered name per-customer. Optional; the server will fall through to the manifest's mapToName if the install doesn't set one. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds optional
mapToNametoBaseReadConfigObjectso an installation can rename a read object's delivered name per-customer (mirrors the existing manifest-level field onIntegrationObject).Motivation
Today object-level
mapToNameonly exists on the manifest. Builders who want per-customer object aliases — e.g. Aurasell delivering custom event types under their internal naming scheme — have to either declare every variant in the manifest or accept the provider object name on the wire.This is the first half of the install-level
mapToNamework. The server PR ([amp-labs/server#TBD]) consumes the new field by updatinggetMappedObjectNameto consult the installation'sReadConfigObject.MapToNamefirst, falling back to the revision's mapping.Changes
config/config.yaml— addmapToNametoBaseReadConfigObject.config/generated/config.json— regen.api/generated/api.json— regen (inlined references).Test plan
make lint)