@availity/authorizations-axios
Availity authorizations react logic
Last updated 3 months ago by availity-bot-cicd .
MIT · Original npm · Tarball · package.json
$ cnpm install @availity/authorizations-axios 
SYNC missed versions from official npm registry.

authorizations-axios

A package providing a base authorizations class to help check which permissions a user has.

Version

Install

NPM

$ npm install @availity/authorizations-axios

Yarn

$ yarn add @availity/authorizations-axios

Configuration

AvAuthorizations uses AvPermissions, and AvRegions from Api-Axios. To configure their default options, AvAuthorizations takes in an options object that is passed onto them.

import AvAuthorizations from '@availity/authorizations-axios';
new AvAuthorizations(config);

Methods

For all methods, if no region is passed in, defaults to current region.

isAuthorized

isAuthorized(permissionId, region) resolves to true or false if the current user has access to this permissionId in this region.

isAnyAuthorized

isAnyAuthorized(permissionIds, region) resolves to true or false if the current user has access to any of these permissionIds in this region.

getPermission

getPermission(permissionId, region) resolves to the permission object for this permissionId in this region.

getPermissions

getPermissions(permissionIds, region) resolves to an array of permission objects for these permissionIds in this region.

getOrganizations

getOrganizations(permissionId, region) resolves to the organizations array for this permissionId, will be empty if not authorized

getPayers

getPayers(permissionId, organizationId, region) will check permissionId for an organization with organizationId and resolve to its resources or an empty array.

Authors

Kasey Powers

License

MIT

Current Tags

  • 5.0.40-alpha.1                                ...           canary (2 months ago)
  • 5.0.39                                ...           latest (3 months ago)

63 Versions

  • 5.0.40-alpha.1                                ...           2 months ago
  • 5.0.40-alpha.0                                ...           2 months ago
  • 5.0.39                                ...           3 months ago
  • 5.0.39-alpha.2                                ...           4 months ago
  • 5.0.39-alpha.1                                ...           4 months ago
  • 5.0.38                                ...           5 months ago
  • 5.0.37                                ...           5 months ago
  • 5.0.36                                ...           5 months ago
  • 5.0.35                                ...           6 months ago
  • 5.0.34                                ...           6 months ago
  • 5.0.33                                ...           6 months ago
  • 5.0.32                                ...           6 months ago
  • 5.0.31                                ...           6 months ago
  • 5.1.0-alpha.9                                ...           6 months ago
  • 6.0.0-alpha.9                                ...           6 months ago
  • 5.0.30                                ...           7 months ago
  • 5.0.29                                ...           7 months ago
  • 5.0.28                                ...           7 months ago
  • 5.0.27                                ...           7 months ago
  • 5.0.26                                ...           8 months ago
  • 5.0.25                                ...           8 months ago
  • 5.0.24                                ...           8 months ago
  • 5.0.23                                ...           8 months ago
  • 5.0.22                                ...           9 months ago
  • 5.0.21                                ...           9 months ago
  • 5.0.20                                ...           9 months ago
  • 5.0.19                                ...           9 months ago
  • 5.0.18                                ...           9 months ago
  • 5.0.15                                ...           9 months ago
  • 5.0.13                                ...           9 months ago
  • 5.0.10                                ...           10 months ago
  • 5.0.9                                ...           10 months ago
  • 5.0.8                                ...           10 months ago
  • 5.0.7                                ...           10 months ago
  • 5.0.6                                ...           a year ago
  • 5.0.5                                ...           a year ago
  • 5.0.4                                ...           a year ago
  • 6.0.0-alpha.10                                ...           a year ago
  • 6.0.0-alpha.2                                ...           a year ago
  • 5.0.4-alpha.0                                ...           a year ago
  • 5.0.3                                ...           a year ago
  • 5.0.2                                ...           a year ago
  • 5.0.1                                ...           a year ago
  • 5.0.1-alpha.7                                ...           a year ago
  • 5.0.0                                ...           a year ago
  • 4.0.14                                ...           a year ago
  • 4.0.13                                ...           a year ago
  • 4.0.12                                ...           a year ago
  • 4.0.11                                ...           a year ago
  • 4.0.10                                ...           a year ago
  • 4.0.9                                ...           a year ago
  • 4.0.8                                ...           a year ago
  • 4.0.7                                ...           2 years ago
  • 4.0.6                                ...           2 years ago
  • 4.0.5                                ...           2 years ago
  • 4.0.4                                ...           2 years ago
  • 4.0.3                                ...           2 years ago
  • 4.0.2                                ...           2 years ago
  • 4.0.1                                ...           2 years ago
  • 4.0.1-alpha.4                                ...           2 years ago
  • 4.0.1-alpha.3                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
Downloads
Today 0
This Week 63
This Month 126
Last Day 0
Last Week 0
Last Month 34
Dependencies (1)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |