UNPKG

@forbespro/lead-agent

Version:
20 lines (19 loc) 533 B
import { normalize as p } from "./index143.js"; import { DefinedInfo as c } from "./index141.js"; import { Schema as a } from "./index136.js"; function l(r) { const s = {}, t = {}; for (const [e, m] of Object.entries(r.properties)) { const o = new c( e, r.transform(r.attributes || {}, e), m, r.space ); r.mustUseProperty && r.mustUseProperty.includes(e) && (o.mustUseProperty = !0), s[e] = o, t[p(e)] = e, t[p(o.attribute)] = e; } return new a(s, t, r.space); } export { l as create };