Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
finops-andrew-sdk
Advanced tools
I have wrapped up the SDK to hide a lot of the functionality to help make it clearer how to use the sdk.
The current approach should give you intellisense via typescript defintions. However the functionality needed to give proper type checking on the client side via the use of typescript isn't yet functional. It won't be hard to implement however I didn't have time to figure out how to expose that while keeping the SDK api clean and simple to understand.
There are 3 endpoints you can hit:
However I would suggest just using the 3rd one. This is an endpoint which allows you to provide a usage along with either a ProductName
or ProductId
. If you provide a ProductName
and there is no Product object in the DB it will automatically create it for you.
I think this is a nicer workflow which then allows the accountants to view all the automatically created products and assign the correct business area and pricing to it etc.
Basically this should be all the code you need to implement it into teammo
const SDK = require('finops-andrew-sdk')
const client = new SDK.Client()
const callback = (err, res) => {
if (err) console.error(err);
if (res) console.log(res);
}
client.registerUsageOfProduct({
productName:'TeammoPaymentTypeX',
usage:{
name: 'A usage', // Required
code: '1234' // Optional
metadata: { // Optional
"Key": "Value", // Must be a string value
"Key2": "Value2"
}
}
}, callback)
FAQs
## How to use
We found that finops-andrew-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.