[object Object]

← back to Designer Wallcoverings

Add in-place updater for Houses We Represent CC draft

a006b5df814bb1cd8d990374532ad7ebdee7e0c6 · 2026-09-09 12:13:03 -0700 · Steve

Files touched

Diff

commit a006b5df814bb1cd8d990374532ad7ebdee7e0c6
Author: Steve <steve@designerwallcoverings.com>
Date:   Wed Sep 9 12:13:03 2026 -0700

    Add in-place updater for Houses We Represent CC draft
---
 mailers/cc-api/update-houses-we-represent.js | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/mailers/cc-api/update-houses-we-represent.js b/mailers/cc-api/update-houses-we-represent.js
new file mode 100644
index 00000000..dc234b09
--- /dev/null
+++ b/mailers/cc-api/update-houses-we-represent.js
@@ -0,0 +1,17 @@
+const fs = require('fs'); const path = require('path'); const os = require('os');
+const cc = require('./cc-client');
+const CONFIRM = process.argv.includes('--confirm');
+const ACTIVITY_ID = '16f445b7-1df0-49f6-9237-f9584e785668';
+const html = fs.readFileSync(path.join(os.homedir(),'Projects/dw-vendor-mailer/mailer.html'),'utf8');
+(async () => {
+  const r = await cc.updateCampaignActivity(ACTIVITY_ID, {
+    subject: 'New: The Houses We Represent — order any pattern as a sample',
+    preheader: 'Six ateliers we represent — a few new arrivals from each. Order any pattern as a sample.',
+    fromName: 'Designer Wallcoverings',
+    fromEmail: 'steve@designerwallcoverings.com',
+    replyTo: 'info@designerwallcoverings.com',
+    htmlContent: html,
+    physicalAddress: { address_line1:'15442 Ventura Bl', city:'Sherman Oaks', state_code:'CA', postal_code:'91403', country_code:'US' },
+  }, CONFIRM);
+  console.log('update result:', r && (r.__mock ? 'MOCK (gate closed)' : 'OK — draft updated in place'));
+})().catch(e => { console.error('ERR', e.message); process.exit(1); });

← dca1d308 Add Houses We Represent CC campaign builder (draft-creates v  ·  back to Designer Wallcoverings  ·  auto-data-snapshot: 2026-09-09T14:29:35 (2 data files) — scr b6f3fbdc →