| 38 | } |
| 39 | |
| 40 | export const validateFinal = (schemaAppRequest: InputData): true | string => { |
| 41 | if ( schemaAppRequest.hostingType === 'lambda' |
| 42 | && !schemaAppRequest.lambdaArn |
| 43 | && !schemaAppRequest.lambdaArnEU |
| 44 | && !schemaAppRequest.lambdaArnAP |
| 45 | && !schemaAppRequest.lambdaArnCN) { |
| 46 | return 'At least one lambda ARN is required.' |
| 47 | } |
| 48 | return true |
| 49 | } |
| 50 | |
| 51 | export const appLinksDefSummarize = (value?: ViperAppLinks): string => |
| 52 | clipToMaximum(`android: ${value?.android}, ios: ${value?.ios}`, maxItemValueLength) |