(a, b, f)
| 412 | : q(a, b, c); |
| 413 | } |
| 414 | function q(a, b, f) { |
| 415 | f = f.validationSchema; |
| 416 | var h = []; |
| 417 | for (var i in f) |
| 418 | if (j.call(f, i)) { |
| 419 | var k = f[i], |
| 420 | l = b[i]; |
| 421 | if (k) { |
| 422 | if (k.isRequired != null && !j.call(b, i)) |
| 423 | return m({ |
| 424 | eventName: a, |
| 425 | param: i, |
| 426 | type: 'REQUIRED_PARAM_MISSING', |
| 427 | }); |
| 428 | if (k.type != null && typeof k.type === 'string') { |
| 429 | var o = !0; |
| 430 | switch (k.type) { |
| 431 | case d: |
| 432 | k = |
| 433 | (typeof l === 'string' || typeof l === 'number') && |
| 434 | c.test('' + l); |
| 435 | k && |
| 436 | Number(l) < 0 && |
| 437 | h.push({ |
| 438 | eventName: a ? a : 'null', |
| 439 | param: i, |
| 440 | type: 'NEGATIVE_EVENT_PARAM', |
| 441 | }); |
| 442 | o = k; |
| 443 | break; |
| 444 | case e: |
| 445 | o = typeof l === 'string' && !!g[l.toUpperCase()]; |
| 446 | break; |
| 447 | } |
| 448 | if (!o) |
| 449 | return m({ |
| 450 | eventName: a, |
| 451 | param: i, |
| 452 | type: 'INVALID_PARAM', |
| 453 | }); |
| 454 | } |
| 455 | } |
| 456 | } |
| 457 | return n(h); |
| 458 | } |
| 459 | function r(a, c) { |
| 460 | a = p(a, c); |
| 461 | a.error && b(a.error); |
no test coverage detected