1.0.84 • Published 4 years ago
@databased-ut/databased-company-object-1 v1.0.84
Company
This package builds a company object from which user performance, user profile history, user manager history, company hierarchy data can be retrieved.
Current Working Version
1.0.8
How to use
You will need to be logged in as a valid npm user. Please reach out to Dustin for the login info:
npm whoami
npm login
Username: databased-npm-ut
pass: <ask Dustin>
- Include this in your
package.json
underdependencies
:"@databased-ut/databased-company-object-1": "<current working version>",
- Import the
buildCompany
function from this package:import { buildCompany } from '@databased-ut/databased-company-object-1'
- Get the requisite DTOs to build a company. If you are not on the
metrics-rest-api
you can call this route:https://metrics.databased.com/comapny/:id
- Construct a
Company
object using the importedbuildCompany
as follows:buildCompany(res.userDtos, res.metricProfileIdToConfiguration)
How to modify and publish this package
- Make a merge request
- Once merge request into
master
is approved, go to your local machine and checkoutmaster
. git pull
the latest changes- Go to
package.json
and updateversion
according to DataBased standards for incrementing versions. - Run
npm run build
- Run
npm publish
if no errors appear, it was successful. You can verify the version was properly updated by logging into the DataBased npm account. - If the changes were breaking, go to any DataBased code repository that depends on this package and update the
package.json
accordingly