( data: Record<string, unknown>, session?: string, )
| 39 | const DEFAULT_SESSION_NAME = 'default'; |
| 40 | |
| 41 | export function normalizeDeployResult( |
| 42 | data: Record<string, unknown>, |
| 43 | session?: string, |
| 44 | ): AppDeployResult { |
| 45 | const bundleId = readOptionalString(data, 'bundleId'); |
| 46 | const pkg = readOptionalString(data, 'package'); |
| 47 | return { |
| 48 | app: readRequiredString(data, 'app'), |
| 49 | appPath: readRequiredString(data, 'appPath'), |
| 50 | platform: readRequiredPlatform(data, 'platform'), |
| 51 | appId: bundleId ?? pkg, |
| 52 | bundleId, |
| 53 | package: pkg, |
| 54 | identifiers: buildAppIdentifiers({ session, bundleId, packageName: pkg }), |
| 55 | }; |
| 56 | } |
| 57 | |
| 58 | export function normalizeInstallFromSourceResult( |
| 59 | data: Record<string, unknown>, |
no test coverage detected