MCPcopy Index your code
hub / github.com/dataease/SQLBot / definitionsForRequirements

Function definitionsForRequirements

frontend/public/swagger-ui-bundle.js:32114–32138  ·  view source on GitHub ↗
(s, o = (0, ze.List)())

Source from the content-addressed store, hash-verified

32112 },
32113 definitionsForRequirements =
32114 (s, o = (0, ze.List)()) =>
32115 ({ authSelectors: s }) => {
32116 const i = s.definitionsToAuthorize() || (0, ze.List)()
32117 let a = (0, ze.List)()
32118 return (
32119 i.forEach((s) => {
32120 let i = o.find((o) => o.get(s.keySeq().first()))
32121 i &&
32122 (s.forEach((o, a) => {
32123 if ('oauth2' === o.get('type')) {
32124 const u = i.get(a)
32125 let _ = o.get('scopes')
32126 ze.List.isList(u) &&
32127 ze.Map.isMap(_) &&
32128 (_.keySeq().forEach((s) => {
32129 u.contains(s) || (_ = _.delete(s))
32130 }),
32131 (s = s.set(a, o.set('scopes', _))))
32132 }
32133 }),
32134 (a = a.push(s)))
32135 }),
32136 a
32137 )
32138 },
32139 Jt = Ut(state, (s) => s.get('authorized') || (0, ze.Map)()),
32140 isAuthorized =
32141 (s, o) =>

Callers

nothing calls this directly

Calls 8

containsMethod · 0.80
getMethod · 0.65
forEachMethod · 0.45
findMethod · 0.45
firstMethod · 0.45
deleteMethod · 0.45
setMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected