UNPKG

@adoratorio/demetra

Version:

Internal use library for wordpress API request

23 lines 891 B
import DemetraRequest from "./DemetraRequest"; import { WP_MODES, } from "../declarations"; class DemetraRequestArchive extends DemetraRequest { i18n; fields; pagination; filters; wpCache; localCache; constructor(id, options, lang, site, version) { super(WP_MODES.ARCHIVE, id, lang, site, version); if (typeof options === 'undefined') options = {}; this.i18n = options.i18n || true; this.fields = options.fields || []; this.pagination = options.pagination || { start: 0, count: -1 }; this.filters = options.filters || []; this.wpCache = typeof options.wpCache === 'undefined' ? true : options.wpCache; this.localCache = typeof options.localCache === 'undefined' ? false : options.localCache; } } export default DemetraRequestArchive; //# sourceMappingURL=DemetraRequestArchive.js.map