(payload: ApiCallPayload)
| 138 | } |
| 139 | |
| 140 | export function verifyCallApi(payload: ApiCallPayload) { |
| 141 | switch (payload.type) { |
| 142 | case 'regular': |
| 143 | return verifyRegularCallApiParams(payload); |
| 144 | case 'http-signed-data-gateway': |
| 145 | return verifyHttpSignedCallApiParams(payload); |
| 146 | default: |
| 147 | return null; |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | export function verifyRegularCallApiParams(payload: RegularApiCallPayload) { |
| 152 | const verifications = [verifyRequestId, verifyTemplateId]; |
no test coverage detected