Filters in cascade three optionset value: parent > first level child > second level child
This TypeScript class, DependentOptionsetTwoLevels.ts, allows for cascading filtering of three Option-Sets. XrmDefinitivelyTyped is used here in order to work with types. The filters are defined with a JSON schema.