diff --git a/src/v2/providers/alerts/appDistribution.ts b/src/v2/providers/alerts/appDistribution.ts index 6e519a23e..512c3e95a 100644 --- a/src/v2/providers/alerts/appDistribution.ts +++ b/src/v2/providers/alerts/appDistribution.ts @@ -60,21 +60,14 @@ export interface InAppFeedbackPayload { /** Email of the tester */ testerEmail: string; /** - * Display version of the release. For an Android release, the display version - * is the `versionName`. For an iOS release, the display version is the - * `CFBundleShortVersionString`. + * Version consisting of `versionName` and `versionCode` for Android and + * `CFBundleShortVersionString` and `CFBundleVersion` for iOS. */ - displayVersion: string; - /** - * Build version of the release. For an Android release, the build version - * is the `versionCode`. For an iOS release, the build version is the - * `CFBundleVersion`. - */ - buildVersion: string; + appVersion: string; /** Text entered by the tester */ text: string; - /** URIs to download screenshot(s). These URIs are fast expiring. */ - screenshotUris: string[]; + /** URI to download screenshot. This URIs are is fast expiring. */ + screenshotUri?: string; } /** @@ -332,10 +325,7 @@ export function onInAppFeedbackPublished( const [opts, appId] = getOptsAndApp(appIdOrOptsOrHandler); const func = (raw: CloudEvent) => { - const event = raw as AppDistributionEvent; - // Consolidate the case of empty array and null array - event.data.payload.screenshotUris = event.data.payload.screenshotUris || []; - return handler(event); + return handler(raw as AppDistributionEvent); }; func.run = handler;