Skip to content

feat: add Canada, US2, and Federal region support#1

Merged
asachs01 merged 1 commit intomainfrom
feat/add-regions
Mar 31, 2026
Merged

feat: add Canada, US2, and Federal region support#1
asachs01 merged 1 commit intomainfrom
feat/add-regions

Conversation

@asachs01
Copy link
Copy Markdown
Member

Summary

  • Add ca (Canada), us2 (US2), and fed (Federal) to the NinjaOneRegion type union
  • Add corresponding entries to the REGION_URLS map with correct base URLs
  • Update error messages and documentation to list all six valid regions

Test plan

  • Verify resolveConfig({ region: 'ca' }) returns https://ca.ninjarmm.com
  • Verify resolveConfig({ region: 'us2' }) returns https://us2.ninjarmm.com
  • Verify resolveConfig({ region: 'fed' }) returns https://fed.ninjarmm.com
  • Verify invalid region still throws with updated error message

🤖 Generated with Claude Code

Add ca (Canada), us2 (US2), and fed (Federal) to the NinjaOneRegion type
and REGION_URLS map. This is a config-only change with no architectural
modifications.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@asachs01 asachs01 merged commit 3161d15 into main Mar 31, 2026
3 checks passed
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