Skip to content

feat: add cloud service resources for feature-, customer-, and user-management - #1047

Open
jordan-a-young wants to merge 1 commit into
masterfrom
feature/cloud-service-resources
Open

jordan-a-young wants to merge 1 commit into
masterfrom
feature/cloud-service-resources

Conversation

@jordan-a-young

Copy link
Copy Markdown
Member

Summary

Adds SDK resources for three Availity cloud services, with helper methods for the most common API calls.

New Resources

AvFeatureManagement / AvFeatureManagementApi

  • Path: cloud/web/appl/feature-management
  • getPermissions(permissionId, region) — query user permissions by ID(s) and region
  • hasPermission(permissionId, region) → boolean
  • getAuthorizedOrganizations(permissionId, region) → org array

AvCustomerManagement / AvCustomerManagementApi

  • Path: cloud/web/appl/customer-management
  • Organization: getOrganization, getOrganizations, getOrganizationData, searchByName, searchByTaxId
  • Regions: getRegions, getRegion, getCurrentRegion, setCurrentRegion

AvUserManagement / AvUserManagementApi

  • Path: cloud/web/appl/user-management
  • me(), getUser(akaName), getMe(), getUserId(), getAkaName(), getCurrentRegion()

What was tested

  • 64 new tests across 6 test files
  • Full suite: 89 files, 1038 tests passing
  • Lint: 0 errors
  • tsc: 0 errors
  • Both packages build clean (dist/ generated)

Notes

  • All constructors set version: '' since the version is embedded in the resource path
  • AvCustomerManagement handles two different sub-paths on the same service via internal config builders (orgsConfig / regionsConfig)
  • Types added to api-core/src/types.d.ts and exported from both package indexes

…anagement

- Add AvFeatureManagement / AvFeatureManagementApi with getPermissions,
  hasPermission, and getAuthorizedOrganizations helpers
- Add AvCustomerManagement / AvCustomerManagementApi with org helpers
  (getOrganization, getOrganizations, getOrganizationData, searchByName,
  searchByTaxId) and region helpers (getRegions, getRegion,
  getCurrentRegion, setCurrentRegion)
- Add AvUserManagement / AvUserManagementApi with me, getUser, getMe,
  getUserId, getAkaName, getCurrentRegion helpers
- Add TypeScript type definitions and export all types from index
- Add 64 tests across 6 test files (89 files, 1038 tests total passing)
- Update README docs for both api-core and api-axios packages

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant