{"_id":"@11ma/billing-sdk","_rev":"17-335f7fb5780a9bffd06c2680e3da891d","name":"@11ma/billing-sdk","dist-tags":{"latest":"0.3.7"},"versions":{"0.1.1":{"name":"@11ma/billing-sdk","version":"0.1.1","keywords":["billing","ppa","solar","energy","dagql","sdk","export"],"author":{"name":"Micro Perceptron, Inc."},"license":"MIT","_id":"@11ma/billing-sdk@0.1.1","maintainers":[{"name":"snowcheetos","email":"cass@microperceptron.com"}],"homepage":"https://github.com/11-ma/11ma/tree/main/packages/billing-sdk#readme","bugs":{"url":"https://github.com/11-ma/11ma/issues"},"dist":{"shasum":"fba6bbc2c44cff43b05c3cdf7bfd673e2882391d","tarball":"https://registry.npmjs.org/@11ma/billing-sdk/-/billing-sdk-0.1.1.tgz","fileCount":5,"integrity":"sha512-FPY/rH1xF10oJO2c5nweQq2ziI0ZYqFRp34l8XPBALlwtxdfDwtcxc6ytMHGVzLLqs4YB42EsnHCWvCvvlQQ6g==","signatures":[{"sig":"MEUCIQCGotUOTcIJxQrt1aC5ar+nh77rlodKBOgH1UcnDoG3GwIgR1U0Z9kFEYbK/7l4KnuEyv5joqImA7xilTL50wu9pd0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45148},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"gitHead":"7b3d4ade810e936ee22cfb54d7d28bd1ead5eca9","scripts":{"build":"tsup","clean":"rm -rf dist","check-types":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"snowcheetos","email":"cass@microperceptron.com"},"repository":{"url":"git+https://github.com/11-ma/11ma.git","type":"git","directory":"packages/billing-sdk"},"_npmVersion":"11.9.0","description":"Billing export SDK — self-contained TypeScript client for PPA billing data over DAGQL","directories":{},"sideEffects":false,"_nodeVersion":"24.2.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","typescript":"^5.0.0","@11ma/dagql":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/billing-sdk_0.1.1_1776052248856_0.09867769669606741","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@11ma/billing-sdk","version":"0.1.2","keywords":["billing","ppa","solar","energy","dagql","sdk","export"],"author":{"name":"Micro Perceptron, Inc."},"license":"MIT","_id":"@11ma/billing-sdk@0.1.2","maintainers":[{"name":"snowcheetos","email":"cass@microperceptron.com"}],"homepage":"https://github.com/11-ma/11ma/tree/main/packages/billing-sdk#readme","bugs":{"url":"https://github.com/11-ma/11ma/issues"},"dist":{"shasum":"c60eec438fbefde14311b0c787039807e3fe38a2","tarball":"https://registry.npmjs.org/@11ma/billing-sdk/-/billing-sdk-0.1.2.tgz","fileCount":5,"integrity":"sha512-eM926gTxbpJwakKpWsTHK7LM54FgsQPX/SuuRaPi5XCuKYAM2lnxagGTOtnf1nSeOFGQtY4qktDse2FJWkWAOw==","signatures":[{"sig":"MEQCIFTupeRKCEEnvgiw0MluyV/ShkiRbRk8B63wwd4O+Cx4AiB2La/sUL5vWN84HDS/OKrTX0aQYT0PPjwLuAQvLlDEhQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45147},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"gitHead":"65ae3004239f89f3f5d627c06e003ec4238c9a6d","scripts":{"build":"tsup","clean":"rm -rf dist","check-types":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"snowcheetos","email":"cass@microperceptron.com"},"repository":{"url":"git+https://github.com/11-ma/11ma.git","type":"git","directory":"packages/billing-sdk"},"_npmVersion":"11.9.0","description":"Billing export SDK — self-contained TypeScript client for PPA billing data over DAGQL","directories":{},"sideEffects":false,"_nodeVersion":"24.2.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","typescript":"^5.0.0","@11ma/dagql":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/billing-sdk_0.1.2_1776052341185_0.6175095178312286","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@11ma/billing-sdk","version":"0.2.0","keywords":["billing","ppa","solar","energy","dagql","sdk","export"],"author":{"name":"Micro Perceptron, Inc."},"license":"MIT","_id":"@11ma/billing-sdk@0.2.0","maintainers":[{"name":"snowcheetos","email":"cass@microperceptron.com"}],"homepage":"https://github.com/11-ma/11ma/tree/main/packages/billing-sdk#readme","bugs":{"url":"https://github.com/11-ma/11ma/issues"},"dist":{"shasum":"072d8491c4a1af0dbed22825e70fc9e746db028d","tarball":"https://registry.npmjs.org/@11ma/billing-sdk/-/billing-sdk-0.2.0.tgz","fileCount":5,"integrity":"sha512-kC540lDUmbbMMG18+Sbc1tHL1O1RT6fLpEUWTJxkKCzpWIFg7VQAPDehG/ZUFm3Re6iN0O6Sbj/9rk2jR/ZISQ==","signatures":[{"sig":"MEUCIQDhIK0qkx8PAonF9MWBsUxXN6pZj1mG3QqQxkgLsXrnHQIgc92/xf4W4ZtoTAj6OYaYx09X/WvTeXdmpC3yY0+Fd7g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44061},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"gitHead":"429fc44133c6cbd4024638fd2609ad6f9251da73","scripts":{"build":"tsup","clean":"rm -rf dist","check-types":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"snowcheetos","email":"cass@microperceptron.com"},"repository":{"url":"git+https://github.com/11-ma/11ma.git","type":"git","directory":"packages/billing-sdk"},"_npmVersion":"11.14.1","description":"Billing export SDK — self-contained TypeScript client for PPA billing data over DAGQL","directories":{},"sideEffects":false,"_nodeVersion":"24.2.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","typescript":"^5.0.0","@11ma/dagql":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/billing-sdk_0.2.0_1778691566838_0.8963241187357511","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@11ma/billing-sdk","version":"0.2.1","keywords":["billing","ppa","solar","energy","dagql","sdk","export"],"author":{"name":"Micro Perceptron, Inc."},"license":"MIT","_id":"@11ma/billing-sdk@0.2.1","maintainers":[{"name":"snowcheetos","email":"cass@microperceptron.com"}],"homepage":"https://github.com/11-ma/11ma/tree/main/packages/billing-sdk#readme","bugs":{"url":"https://github.com/11-ma/11ma/issues"},"dist":{"shasum":"a1318bbe8ce345dfe6e3761cdcfc7d5b81cf3cab","tarball":"https://registry.npmjs.org/@11ma/billing-sdk/-/billing-sdk-0.2.1.tgz","fileCount":5,"integrity":"sha512-K5dssOte1cSmcu7pfcqNJY/gBupUASdNmgtUPC2ztEp7IRs+9ZkYenbEs4JhK8aWtFWCRQeH8QqScj3CjvTh3w==","signatures":[{"sig":"MEYCIQDDTYvmFYyNdMDdxhNhVuz1wj8yAQ55t1DrdKLrZP+fTQIhAKl3mqqXMt90P+LX5ab4jvjk6TBiaf/8TgzM3oBEI5sg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45725},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"gitHead":"7044603dce7248bc79918c2bb1a3b6d17804ec61","scripts":{"build":"tsup","clean":"rm -rf dist","check-types":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"snowcheetos","email":"cass@microperceptron.com"},"repository":{"url":"git+https://github.com/11-ma/11ma.git","type":"git","directory":"packages/billing-sdk"},"_npmVersion":"11.14.1","description":"Billing export SDK — self-contained TypeScript client for PPA billing data over DAGQL","directories":{},"sideEffects":false,"_nodeVersion":"24.2.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","typescript":"^5.0.0","@11ma/dagql":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/billing-sdk_0.2.1_1779387916708_0.3027300653376219","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@11ma/billing-sdk","version":"0.2.2","keywords":["billing","ppa","solar","energy","dagql","sdk","export"],"author":{"name":"Micro Perceptron, Inc."},"license":"MIT","_id":"@11ma/billing-sdk@0.2.2","maintainers":[{"name":"snowcheetos","email":"cass@microperceptron.com"}],"homepage":"https://github.com/11-ma/11ma/tree/main/packages/billing-sdk#readme","bugs":{"url":"https://github.com/11-ma/11ma/issues"},"dist":{"shasum":"64018a2330b1cf95c25f95b182b16d1f6158da44","tarball":"https://registry.npmjs.org/@11ma/billing-sdk/-/billing-sdk-0.2.2.tgz","fileCount":5,"integrity":"sha512-M7DKI+OisLPmNEqGGS6gzH1A6FDN0K2IvSvoctvS6FR9zfQSVTzU3ADAh2CAYI26nVFcE5GSkWpYu/Rd70GgIA==","signatures":[{"sig":"MEYCIQD2xywwaLIUm+RvEi/PKz4Um87d9VySmw4MrExi2kErYQIhALE0WWOJuILZoF6siTdJtxelVV+jZkVNXC4P6arYlcPv","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45908},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"gitHead":"f410d063cb1f668b9087312d6c854f17e05cfe1f","scripts":{"build":"tsup","clean":"rm -rf dist","check-types":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"snowcheetos","email":"cass@microperceptron.com"},"repository":{"url":"git+https://github.com/11-ma/11ma.git","type":"git","directory":"packages/billing-sdk"},"_npmVersion":"11.14.1","description":"Billing export SDK — self-contained TypeScript client for PPA billing data over DAGQL","directories":{},"sideEffects":false,"_nodeVersion":"24.2.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","typescript":"^5.0.0","@11ma/dagql":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/billing-sdk_0.2.2_1780348239987_0.04336721129852239","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@11ma/billing-sdk","version":"0.2.3","keywords":["billing","ppa","solar","energy","dagql","sdk","export"],"author":{"name":"Micro Perceptron, Inc."},"license":"MIT","_id":"@11ma/billing-sdk@0.2.3","maintainers":[{"name":"snowcheetos","email":"cass@microperceptron.com"}],"homepage":"https://github.com/11-ma/11ma/tree/main/packages/billing-sdk#readme","bugs":{"url":"https://github.com/11-ma/11ma/issues"},"dist":{"shasum":"1fadb588916618c4fd4fcc2f972af60be99f37d5","tarball":"https://registry.npmjs.org/@11ma/billing-sdk/-/billing-sdk-0.2.3.tgz","fileCount":5,"integrity":"sha512-hQUOJ2QlGqbh5CXCvsyHFXILeOnc1uy8YHIJoIvd43tPe5XMnrXp9Nx/6yeuxYKkbgWIlSLSS5WA1aqYcqPsEQ==","signatures":[{"sig":"MEQCIHbLxhqXFj4OsdscgSbkGZT998RgYGMxsgV34+n/jGS1AiB0Ezz39eFEqz3+r9nrxb85nP5B3AoR2zdhMOaPwD0QnA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46115},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"gitHead":"a8be906049498baba29916736a91f2a7ad60d506","scripts":{"build":"tsup","clean":"rm -rf dist","check-types":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"snowcheetos","email":"cass@microperceptron.com"},"repository":{"url":"git+https://github.com/11-ma/11ma.git","type":"git","directory":"packages/billing-sdk"},"_npmVersion":"11.14.1","description":"Billing export SDK — self-contained TypeScript client for PPA billing data over DAGQL","directories":{},"sideEffects":false,"_nodeVersion":"24.2.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","typescript":"^5.0.0","@11ma/dagql":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/billing-sdk_0.2.3_1780350024796_0.6662732627196013","host":"s3://npm-registry-packages-npm-production"}},"0.2.5":{"name":"@11ma/billing-sdk","version":"0.2.5","keywords":["billing","ppa","solar","energy","dagql","sdk","export"],"author":{"name":"Micro Perceptron, Inc."},"license":"MIT","_id":"@11ma/billing-sdk@0.2.5","maintainers":[{"name":"snowcheetos","email":"cass@microperceptron.com"}],"homepage":"https://github.com/11-ma/11ma/tree/main/packages/billing-sdk#readme","bugs":{"url":"https://github.com/11-ma/11ma/issues"},"dist":{"shasum":"ca931c9e03c6e88781cc1bd5c07d4157f85a9ed4","tarball":"https://registry.npmjs.org/@11ma/billing-sdk/-/billing-sdk-0.2.5.tgz","fileCount":5,"integrity":"sha512-7hBtS8fhPasbijs23zt8DMwX5scCXmb8Bcn31eWsD45NKFv5Wi+5AE5K4FF44iEjSRJVmyBT6CqJ8jkcvIYERA==","signatures":[{"sig":"MEQCIFFV2mn6wb92VhT7+e6DzR9UFWz+E3VYowd/pcjN6CyoAiATIzBlndtUXbL2amLEt0XA+u43ebzEJNPiemmGEehCng==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47974},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"gitHead":"f5cf6bfbcb87075968e6884ec459b0758de2ec50","scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","check-types":"tsc --noEmit","verify:export":"tsx scripts/verify-export.ts","prepublishOnly":"pnpm clean && pnpm build && pnpm test && pnpm verify:export"},"_npmUser":{"name":"snowcheetos","email":"cass@microperceptron.com"},"repository":{"url":"git+https://github.com/11-ma/11ma.git","type":"git","directory":"packages/billing-sdk"},"_npmVersion":"11.6.4","description":"Billing export SDK — self-contained TypeScript client for PPA billing data over DAGQL","directories":{},"sideEffects":false,"_nodeVersion":"24.1.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.21.0","tsup":"^8.5.1","vitest":"^4.0.18","typescript":"^5.0.0","@11ma/dagql":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/billing-sdk_0.2.5_1780429582666_0.7697689736182214","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@11ma/billing-sdk","version":"0.3.0","keywords":["billing","ppa","solar","energy","dagql","sdk","export"],"author":{"name":"Micro Perceptron, Inc."},"license":"MIT","_id":"@11ma/billing-sdk@0.3.0","maintainers":[{"name":"snowcheetos","email":"cass@microperceptron.com"}],"homepage":"https://github.com/11-ma/11ma/tree/main/packages/billing-sdk#readme","bugs":{"url":"https://github.com/11-ma/11ma/issues"},"dist":{"shasum":"d1d7ca420b2dd9b8115373e986072d447c732214","tarball":"https://registry.npmjs.org/@11ma/billing-sdk/-/billing-sdk-0.3.0.tgz","fileCount":5,"integrity":"sha512-0KiDd2HfmyHyy7uhz4w+kiJS7KE0e75WCWxE1o7Mn+X9gAn9svTlwQmgHrL1847Te8YU6TjWeyxc5cL3M6y7vQ==","signatures":[{"sig":"MEYCIQDsOGYriQyZSExeBBItgRqkQR5CJFVpQTpB43LNf5fLaQIhAKmh4xTeCMG9g4hB5XXB+TXg0u0jHWCcRrt5KAse1Ky4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":48065},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"gitHead":"e296b4728d4feef69a6828c1f8f0f4d7a5b20699","scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","check-types":"tsc --noEmit","verify:export":"tsx scripts/verify-export.ts","prepublishOnly":"pnpm clean && pnpm build && pnpm test"},"_npmUser":{"name":"snowcheetos","email":"cass@microperceptron.com"},"repository":{"url":"git+https://github.com/11-ma/11ma.git","type":"git","directory":"packages/billing-sdk"},"_npmVersion":"11.14.1","description":"Billing export SDK — self-contained TypeScript client for PPA billing data over DAGQL","directories":{},"sideEffects":false,"_nodeVersion":"24.2.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.21.0","tsup":"^8.5.1","vitest":"^4.0.18","typescript":"^5.0.0","@11ma/dagql":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/billing-sdk_0.3.0_1781130446848_0.31658524330976734","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@11ma/billing-sdk","version":"0.3.1","keywords":["billing","ppa","solar","energy","dagql","sdk","export"],"author":{"name":"Micro Perceptron, Inc."},"license":"MIT","_id":"@11ma/billing-sdk@0.3.1","maintainers":[{"name":"snowcheetos","email":"cass@microperceptron.com"}],"homepage":"https://github.com/11-ma/11ma/tree/main/packages/billing-sdk#readme","bugs":{"url":"https://github.com/11-ma/11ma/issues"},"dist":{"shasum":"3e1fd3eaa66f4d0c80ce0f0b66c3965b05622a6b","tarball":"https://registry.npmjs.org/@11ma/billing-sdk/-/billing-sdk-0.3.1.tgz","fileCount":5,"integrity":"sha512-l0BNljlCbD3IFg5ZsyuWZyBTzjZDpwj7acs4CIK5tbC5K+pAZ/v5xEzJfQowpXK/1rH1OIE2AWo1qf2ORNqGOg==","signatures":[{"sig":"MEQCICEydfKhMyUY46f+W/2dCOvLSB9IP+xXmxqk56ZsxOBQAiArIZaDZVa5xXlCNWu0LfWxfCGsoE/dFXGpwI8gqo2pPg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":48142},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"gitHead":"4670be8f90364589cfbe8b51824b3e26a46745d4","scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","check-types":"tsc --noEmit","verify:export":"tsx scripts/verify-export.ts","prepublishOnly":"pnpm clean && pnpm build && pnpm test"},"_npmUser":{"name":"snowcheetos","email":"cass@microperceptron.com"},"repository":{"url":"git+https://github.com/11-ma/11ma.git","type":"git","directory":"packages/billing-sdk"},"_npmVersion":"11.14.1","description":"Billing export SDK — self-contained TypeScript client for PPA billing data over DAGQL","directories":{},"sideEffects":false,"_nodeVersion":"24.2.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.21.0","tsup":"^8.5.1","vitest":"^4.0.18","typescript":"^5.0.0","@11ma/dagql":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/billing-sdk_0.3.1_1781131684494_0.2638513881225366","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@11ma/billing-sdk","version":"0.3.2","keywords":["billing","ppa","solar","energy","dagql","sdk","export"],"author":{"name":"11 Million Acres, LLC"},"license":"MIT","_id":"@11ma/billing-sdk@0.3.2","maintainers":[{"name":"casssheng","email":"cass@microperceptron.com"}],"homepage":"https://github.com/11-ma/11ma/tree/main/packages/billing-sdk#readme","bugs":{"url":"https://github.com/11-ma/11ma/issues"},"dist":{"shasum":"fbe524e7f2259d6fb646e2872714e6574d598597","tarball":"https://registry.npmjs.org/@11ma/billing-sdk/-/billing-sdk-0.3.2.tgz","fileCount":5,"integrity":"sha512-++M70bT5I3fmiN3H4gBlUizVw9DMkq3btsHkCIy12EHaZ5NDaShXyWMacW2WZcu35exAyVmATwRBgPuVTauKRA==","signatures":[{"sig":"MEUCIQDGENdh8sWiedMQ4MrIMT4fFac+w3oqdmcpCSsyCTLy+QIgVm73fN35N6oL3AOoFTOJHv0t7ToyuBEK+FeKulHnY8c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":65448},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"gitHead":"11b693525e4dc0eba9d4a05ce7c306a35e668106","scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","check-types":"tsc --noEmit","verify:export":"tsx scripts/verify-export.ts","prepublishOnly":"pnpm clean && pnpm build && pnpm test && pnpm verify:export"},"_npmUser":{"name":"casssheng","email":"cass@microperceptron.com"},"repository":{"url":"git+https://github.com/11-ma/11ma.git","type":"git","directory":"packages/billing-sdk"},"_npmVersion":"11.6.4","description":"Billing export SDK — self-contained TypeScript client for PPA billing data over DAGQL","directories":{},"sideEffects":false,"_nodeVersion":"24.1.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.21.0","tsup":"^8.5.1","vitest":"^4.0.18","typescript":"^5.0.0","@11ma/dagql":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/billing-sdk_0.3.2_1782241724118_0.9833360238422386","host":"s3://npm-registry-packages-npm-production"}},"0.3.5":{"name":"@11ma/billing-sdk","version":"0.3.5","keywords":["billing","ppa","solar","energy","dagql","sdk","export"],"author":{"name":"11 Million Acres, LLC"},"license":"MIT","_id":"@11ma/billing-sdk@0.3.5","maintainers":[{"name":"amonroe","email":"amonroe@11millionacres.com"}],"homepage":"https://github.com/11-ma/11ma/tree/main/packages/billing-sdk#readme","bugs":{"url":"https://github.com/11-ma/11ma/issues"},"dist":{"shasum":"db402ed14bd87b7e4d100a3fbee96902149f52bb","tarball":"https://registry.npmjs.org/@11ma/billing-sdk/-/billing-sdk-0.3.5.tgz","fileCount":5,"integrity":"sha512-mXhvqgDUmgCQprpN6g6uWWMAF2sRyoYuKUahD3JmWl+ZZrXwI13m/8SsxS4BKhh5hmx99yDrMMFZ3dmdMUCsQA==","signatures":[{"sig":"MEUCIQDAXQQXLvp4qroCo2T33mArYCklwFiAbChE3TNMbxLPowIgeqNEOwq0kIR1YqB82eLrRGUTHkGPvfBn/LfifJp46zQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":114315},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"gitHead":"e84bd3a52966a7e13272b793a48badab63e07794","scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","check-types":"tsc --noEmit","verify:export":"tsx scripts/verify-export.ts","prepublishOnly":"pnpm clean && pnpm build && pnpm test && pnpm verify:export"},"_npmUser":{"name":"amonroe","email":"amonroe@11millionacres.com"},"repository":{"url":"git+https://github.com/11-ma/11ma.git","type":"git","directory":"packages/billing-sdk"},"_npmVersion":"10.8.2","description":"Billing export SDK — self-contained TypeScript client for PPA billing data over DAGQL","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.21.0","tsup":"^8.5.1","vitest":"^4.0.18","typescript":"^5.0.0","@11ma/dagql":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/billing-sdk_0.3.5_1783661688210_0.8076168583352432","host":"s3://npm-registry-packages-npm-production"}},"0.3.7":{"name":"@11ma/billing-sdk","version":"0.3.7","keywords":["billing","ppa","solar","energy","dagql","sdk","export"],"author":{"name":"11 Million Acres, LLC"},"license":"MIT","_id":"@11ma/billing-sdk@0.3.7","maintainers":[{"name":"amonroe","email":"amonroe@11millionacres.com"}],"homepage":"https://github.com/11-ma/11ma/tree/main/packages/billing-sdk#readme","bugs":{"url":"https://github.com/11-ma/11ma/issues"},"dist":{"shasum":"0b3379b7ccc904e0b2579b75ff1908a04aa07763","tarball":"https://registry.npmjs.org/@11ma/billing-sdk/-/billing-sdk-0.3.7.tgz","fileCount":5,"integrity":"sha512-mNGwWlf8Isdbw8SueqHR/5BwR1KilhVWT7RQcL3NdAXQLukEJdkjh71G8NsZuIPw8LjJMUAtuYmWbsV0JGwsvA==","signatures":[{"sig":"MEQCIASEa0ar1onSmL3kOaBR1J9T/gSX3iXM9KVkqcJhwyEhAiB16jqp8TsOLDfWEmT2hJ6cAaiaFhJUUJ21zIEQt5O0iw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":126104},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"gitHead":"cf2219641688e99590d19ef89d872b65b917efb1","scripts":{"test":"vitest run","build":"tsup","clean":"rm -rf dist","check-types":"tsc --noEmit","verify:export":"tsx scripts/verify-export.ts","prepublishOnly":"pnpm clean && pnpm build && pnpm test && pnpm verify:export"},"_npmUser":{"name":"amonroe","email":"amonroe@11millionacres.com"},"repository":{"url":"git+https://github.com/11-ma/11ma.git","type":"git","directory":"packages/billing-sdk"},"_npmVersion":"10.8.2","description":"Billing export SDK — self-contained TypeScript client for PPA billing data over DAGQL","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"4.22.4","tsup":"^8.5.1","vitest":"^4.1.9","typescript":"^5.9.3","@11ma/dagql":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/billing-sdk_0.3.7_1784262124728_0.479047327924337","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-04-13T03:50:48.724Z","modified":"2026-07-20T14:30:30.184Z","0.1.1":"2026-04-13T03:50:48.993Z","0.1.2":"2026-04-13T03:52:21.338Z","0.2.0":"2026-05-13T16:59:26.985Z","0.2.1":"2026-05-21T18:25:16.893Z","0.2.2":"2026-06-01T21:10:40.141Z","0.2.3":"2026-06-01T21:40:24.958Z","0.2.5":"2026-06-02T19:46:22.816Z","0.3.0":"2026-06-10T22:27:26.993Z","0.3.1":"2026-06-10T22:48:04.636Z","0.3.2":"2026-06-23T19:08:44.261Z","0.3.5":"2026-07-10T05:34:48.352Z","0.3.7":"2026-07-17T04:22:04.867Z"},"bugs":{"url":"https://github.com/11-ma/11ma/issues"},"author":{"name":"11 Million Acres, LLC"},"license":"MIT","homepage":"https://github.com/11-ma/11ma/tree/main/packages/billing-sdk#readme","keywords":["billing","ppa","solar","energy","dagql","sdk","export"],"repository":{"url":"git+https://github.com/11-ma/11ma.git","type":"git","directory":"packages/billing-sdk"},"description":"Billing export SDK — self-contained TypeScript client for PPA billing data over DAGQL","maintainers":[{"email":"amonroe@11millionacres.com","name":"amonroe"},{"email":"jreeve@11millionacres.com","name":"jjriv"}],"readme":"# @11ma/billing-sdk\n\nSelf-contained TypeScript client for PPA billing over DAGQL — export, acknowledgements, and Trieve writebacks.\n\n## Install\n\n```bash\nnpm install @11ma/billing-sdk\n```\n\n## Quick Start\n\n```typescript\nimport { BillingClient } from \"@11ma/billing-sdk\"\n\nconst client = new BillingClient({\n  baseUrl: process.env.DAGQL_BASE_URL!,\n  apiKey: process.env.DAGQL_API_KEY!,\n  appSecret: process.env.DAGQL_APP_SECRET!,\n})\n\n// Pull billing data\nconst response = await client.export(\"2024-01\", { limit: 50 })\n\nfor await (const org of client.exportAll(\"2024-01\")) {\n  for (const site of org.sites) {\n    // ExpenseSmart identity fields on each site\n    console.log(\n      site.store_id,              // client store #\n      site.cass_account_number,   // e.g. 11MA-001-18352\n      site.full_service_address,  // single-line service address\n      site.total_usd,\n    )\n  }\n}\n\n// Acknowledge export receipt\nawait client.ack(\"2024-01\", orgId)\n\n// Cass ExpenseSmart account verified in Trieve\n// Accepts persisted Site.cass_account_number or export-derived 11MA-{facility_id}\nawait client.confirmCassAccount({\n  cassAccountNumber: \"11MA-FAC-001\",\n  status: \"ACTIVE\",\n})\n\n// Payment confirmed in ExpenseSmart + bank deposit\nawait client.reportPaymentStatus(\"2024-01\", orgId, siteId, \"PAID\", {\n  reference: \"trieve-inv-456\",\n  paidAt: \"2024-02-15T12:00:00.000Z\",\n  expenseSmartVerified: true,\n  bankDepositConfirmed: true,\n})\n```\n\n## API\n\n| Method | Description |\n|--------|-------------|\n| `client.export(period, options?)` | Fetch one page of billing data |\n| `client.exportAll(period, pageSize?)` | Auto-paginating async generator |\n| `client.ack(period, orgId, options?)` | Acknowledge receipt of billing export |\n| `client.confirmCassAccount(options)` | Update `Site.cass_account_status` after ExpenseSmart provisioning |\n| `client.reportPaymentStatus(period, orgId, siteId, status, options?)` | Record payment / verification via `ExternalSync` (`BillingPayment`) |\n\n### Integrator RBAC\n\nThe Trieve service account needs:\n\n- **Read** on organizations/sites (export, lookups)\n- **Write** on sites (`confirmCassAccount`)\n- **Write** on org-scoped `ExternalSync` rows (`ack`, `reportPaymentStatus`)\n\nAll writebacks are idempotent where noted in method docs.\n\n### Export tax & warnings\n\n- Tax rates are resolved **as-of the last instant of the billing month** (not period start), so a mid-month SureTax sync still applies to that month's export.\n- Prefer the DAGQL jurisdiction chain (`SiteInTaxJurisdiction` → `TaxJurisdiction` → `JurisdictionTaxRate`). When no rate is effective, `tax.rate_percent` is `0` and billable sites with a positive subtotal also get `warnings[]` with code `TAX_RATE_UNRESOLVED`.\n- Check `response.errors` / `response.warnings` (`ExportIssue`) before treating zeroed totals as valid bills — e.g. `SCHEDULE_NOT_BILLABLE`, `TAX_RATE_UNRESOLVED`.\n\n### ExpenseSmart identity fields\n\nEach exported site includes three identifiers Cass ExpenseSmart bill processors use to match a Dollar General (or other) store:\n\n| Field | Example | Source |\n|-------|---------|--------|\n| `store_id` | `\"18352\"` | Client-issued store number |\n| `cass_account_number` | `\"11MA-001-18352\"` | `Site.cass_account_number`, or `11MA-{facility_id}` fallback when unique in the export payload |\n| `cass_account_number_source` | `\"persisted\"` / `\"derived\"` | Provenance of the Cass account number (`null` when omitted) |\n| `full_service_address` | `\"4120 Highway 41, Goodlettsville, TN 37072\"` | Composed from service address + city/state/zip |\n\nStructured `address` remains available for layout; put `full_service_address` and `cass_account_number` on the PPA invoice.\n\n**Export vs writeback:** Export may synthesize `11MA-{facility_id}` for invoice print when the Site scalar is unset. `confirmCassAccount` resolves the same value via persisted `cass_account_number` first, then by `facility_id` when the number matches the canonical form, and always pins `cass_account_number` with the status update. Facility fallback refuses sites whose persisted cass already differs. If the synthetic value is already claimed by another site in the export payload, export emits `null` and a `CASS_ACCOUNT_COLLISION` warning — run Cass backfill before matching.\n\n## Rate Resolution\n\nPluggable strategies for escalation and rate structures:\n\n```typescript\nimport { BillingClient, compoundingEscalator, touRate } from \"@11ma/billing-sdk\"\n\nconst client = new BillingClient({\n  // ...auth config\n  resolution: {\n    escalator: compoundingEscalator,\n    rateStructure: touRate,\n  },\n})\n```\n\n## Documentation\n\nFull interactive docs with live credentials: `/billing-sdk/docs` in the PowerBuilDER app.\n\n**Operations & credentials (handoff / Treve / npm publish):**\n[docs/operations/billing-sdk-and-trieve-operations.md](../../docs/operations/billing-sdk-and-trieve-operations.md)\n\n### Migration from REST\n\nDeploy removes `GET /api/v1/trieve/export`, `POST /api/v1/trieve/ack`, and `POST /api/v1/cass/account-status` from `powerbuilder.ai`. Use this SDK against the **DAGQL host** (port 8080) instead:\n\n| Legacy REST | Billing SDK |\n|-------------|-------------|\n| `GET /api/v1/trieve/export` | `client.export(period)` |\n| `POST /api/v1/trieve/ack` | `client.ack(period, orgId)` |\n| `POST /api/v1/cass/account-status` | `client.confirmCassAccount(...)` |\n\n- **Auth:** `Authorization: Bearer` + `X-Password` (replaces `X-Trieve-Key` on powerbuilder.ai).\n- **Field renames:** `estimated_subtotal` / `estimated_tax` → `subtotal_usd` / `tax_usd`.\n- **Archival spec:** [docs/plans/trieve-data-export.md](../../docs/plans/trieve-data-export.md)\n\nProvision a scoped **service account** (Read on orgs/sites, Write on sites and org-scoped `ExternalSync`) before cutover. REST removal is not feature-flagged.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}