1.0.84 • Published 5 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.jsonunderdependencies:"@databased-ut/databased-company-object-1": "<current working version>", - Import the
buildCompanyfunction 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-apiyou can call this route:https://metrics.databased.com/comapny/:id - Construct a
Companyobject using the importedbuildCompanyas follows:buildCompany(res.userDtos, res.metricProfileIdToConfiguration)
How to modify and publish this package
- Make a merge request
- Once merge request into
masteris approved, go to your local machine and checkoutmaster. git pullthe latest changes- Go to
package.jsonand updateversionaccording to DataBased standards for incrementing versions. - Run
npm run build - Run
npm publishif 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.jsonaccordingly