← back to Pattern Vault
wpb-uploaders/platforms/patternbank.js
16 lines
/* Patternbank uploader — brand: Designer Wallcoverings (permanent info@dw exception)
* DISARMED. Curated marketplace; account 'pending' (awaiting confirmation). Needs session +
* live DOM calibration before arming (Steve-gated). */
const path = require('path'), os = require('os');
module.exports = {
key: 'patternbank', name: 'Patternbank', brand: 'Designer Wallcoverings',
sessionFile: path.join(os.homedir(), 'Projects/pattern-vault/wpb-uploaders/sessions/patternbank-state.json'),
healthUrl: 'https://patternbank.com/dashboard',
uploadUrl: 'https://patternbank.com/designer/upload',
async uploadFn(pg, d, { rnd, sleep }) {
await pg.goto(this.uploadUrl, { waitUntil: 'domcontentloaded', timeout: 45000 }).catch(() => {});
await sleep(rnd(2500, 5000));
return { reason: 'patternbank uploadFn not yet calibrated — DISARMED stub (account pending; needs live DOM + Steve arm)' };
},
};