Stochastic filtering of a pure jump process with predictable jumps and path-dependent local characteristics