@ndustrial/contxt-sdk
Advanced tools
Changelog
v1.2.0 (2019-05-30)
Added
Coordinator.permissions#getOneByOrganizationId
for getting a single user's permissions within an organizationChanged
Coordinator.permissions#getByOrganizationId
to Coordinator.permissions#getAllByOrganizationId
for getting every user's permissions within an organization.Changelog
v1.0.0 (2019-05-28)
Changed
Updated build process to only transpile source files instead of also concatenating into a single module
/lib
and /esm
, respectively) to be used directly by Node, Webpack, or the user's preferred bundling applicationimport ContxtSdk from 'contxt-sdk/es'
to import ContxtSdk from 'contxt-sdk/esm'
).babelrc
file to the package.json
so that the configuration can be shared with the Gulp build process and testing via Mocha. If upgrading to Babel 7, this should be moved to a babel.config.js
file (this functionality was added in 7).Added Browser versions of Message Bus related modules that indicate connecting to the Message Bus is not supported in browser environments at the moment.
Changed back to using UUIDv4s as IDs for Message Bus subscriptions and publications.
Refactored Auth0WebAuth to better handle access tokens provided by contxt-auth. Each API/audience now gets its own token instead of getting one big token that contained every possible API/audience combination.
Auth#getCurrentApiToken
(especially if not passing in the audience name/API name), pay extra attention to this update. The output has the same format, but the information that should be expected in the token is slightly different (there will be less information).Split Coordinator module into multiple submodules
//Applications Module
coordinator.createFavoriteApplication() -> coordinator.applications.addFavorite()
coordinator.getAllApplications() -> coordinator.applications.getAll()
coordinator.getFavoriteApplications() -> coordinator.applications.getFavorites()
coordinator.getFeaturedApplications() -> coordinator.applications.getFeatured()
coordinator.deleteFavoriteApplication() -> coordinator.applications.removeFavorite()
//Organizations Module
coordinator.getOrganizationById() -> coordinator.organizations.get()
coordinator.getAllOrganizations() -> coordinator.organizations.getAll()
//Permissions Module
coordinator.getUserPermissionsMap() -> coordinator.permissions.getByUserId()
//Users Module
coordinator.activateNewUser() -> coordinator.users.activate()
coordinator.getUser() -> coordinator.users.get()
coordinator.getUsersByOrganization() -> coordinator.users.getByOrganizationId()
coordinator.inviteNewUserToOrganization() -> coordinator.users.invite()
coordinator.removeUserFromOrganization() -> coordinator.users.remove()
Added
Permissions#getByOrganizationId
for fetching all user permissions for an entire organization.Users#addRole
for adding a role to a userUsers#removeRole
for removing a role from a userUsers#addApplication
for adding an application to a userUsers#removeApplication
for removing an application from a userUsers#addStack
for adding a stack to a userUsers#removeStack
for removing a stack from a user