I have a question about app-owned metafield definitions declared via shopify.app.toml (no API-created definitions, no app-data metafields). The app is installed on a specific store via app distribution link (not published on the App Store).
If I uninstall and reinstall the same app (same client_id) on the store:
Are metafield values lost? Or do they persist and get re-associated with the new installation?
Do definitions get a new App ID namespace? (e.g. app--OLD_ID → app--NEW_ID) And if so, does the data follow?
Additionally: if I have metafields that need to be referenced by external integrations (theme Liquid, third-party tools), is it better to declare them as app-owned (via TOML with $app namespace) or as merchant-owned (e.g. custom namespace) to avoid dependency on the app lifecycle?