[object Object]

← back to York Reprice 2026 08

auto-save: 2026-07-12T09:47:28 (1 files) — bolt-check.mjs

dc28b440077b7c9ce1896c064d74608b0362fb5d · 2026-07-12 09:47:32 -0700 · Steve Abrams

Files touched

Diff

commit dc28b440077b7c9ce1896c064d74608b0362fb5d
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Sun Jul 12 09:47:32 2026 -0700

    auto-save: 2026-07-12T09:47:28 (1 files) — bolt-check.mjs
---
 bolt-check.mjs | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/bolt-check.mjs b/bolt-check.mjs
new file mode 100644
index 0000000..58c2b9b
--- /dev/null
+++ b/bolt-check.mjs
@@ -0,0 +1,9 @@
+import fs from 'node:fs';
+const SHOP='designer-laboratory-sandbox.myshopify.com',VER='2024-10';
+const TOKEN=(fs.readFileSync(process.env.HOME+'/Projects/secrets-manager/.env','utf8').match(/^SHOPIFY_ADMIN_TOKEN=(.+)$/m)||[])[1].trim();
+const gql=async(q)=>{const r=await fetch(`https://${SHOP}/admin/api/${VER}/graphql.json`,{method:'POST',headers:{'X-Shopify-Access-Token':TOKEN,'Content-Type':'application/json'},body:JSON.stringify({query:q})});return r.json();};
+// existing live grasscloth priced per yard, NOT DWJS-915xx/92xxx (my new ones)
+const j=await gql(`query{products(first:30,query:"vendor:'Jeffrey Stevens' status:active grasscloth"){nodes{title variants(first:4){nodes{sku title price}} uom:metafield(namespace:"global",key:"unit_of_measure"){value} mn:metafield(namespace:"global",key:"v_prods_quantity_order_min"){value} un:metafield(namespace:"global",key:"v_prods_quantity_order_units"){value}}}}`);
+const rows=j.data.products.nodes.filter(p=>{const s=p.variants.nodes.find(v=>!/sample/i.test(v.sku||''))?.sku||'';const n=parseInt((s.match(/DWJS-(\d+)/)||[])[1]||0);return n<91508;}); // existing only
+console.log('existing live JS grasscloth — unit / min / step / roll-option:');
+for(const p of rows.slice(0,12)){const roll=p.variants.nodes.find(v=>!/sample/i.test(v.sku||''));console.log(`  ${p.title.slice(0,30)} | uom=${p.uom?.value||'-'} | min=${p.mn?.value||'-'} step=${p.un?.value||'-'} | opt="${roll?.title}"`);}

← 989c0ef auto-save: 2026-07-12T08:17:05 (1 files) — clear-cadence-4.m  ·  back to York Reprice 2026 08  ·  auto-save: 2026-07-12T10:47:45 (1 files) — show-grass.mjs b3345ad →