Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
2 lines
507 B
Plaintext
2 lines
507 B
Plaintext
import{isSystemCollection as e}from"../../utils/is-system-collection.js";const t=(t,n,r)=>()=>{let i=String(t);if(e(i))throw Error(`Cannot use createItems for core collections`);return{path:`/items/${i}`,params:r??{},body:JSON.stringify(n),method:`POST`}},n=(t,n,r)=>()=>{let i=String(t);if(e(i))throw Error(`Cannot use createItem for core collections`);return{path:`/items/${i}`,params:r??{},body:JSON.stringify(n),method:`POST`}};export{n as createItem,t as createItems};
|
|
//# sourceMappingURL=items.js.map |