Skip to content

Commit c428a52

Browse files
committed
AP-6527 # Added OneBlink US tenant
1 parent 3e3dccd commit c428a52

5 files changed

Lines changed: 44 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- OneBlink US tenant
13+
1014
## [3.5.9] - 2025-08-11
1115

1216
## [3.5.8] - 2025-07-10

docs/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@ npm install -g @oneblink/cli
1515

1616
This CLI is the entry point for all OneBlink Productivity tenants. The tenant used by the CLI is determined by the entry point command. The available tenants are:
1717

18-
- [OneBlink Console](https://console.oneblink.io)
18+
- [OneBlink Console (AU)](https://console.oneblink.io)
1919

2020
```sh
2121
oneblink --help
2222
```
2323

24+
- [OneBlink Console (US)](https://console.us.oneblink.io)
25+
26+
```sh
27+
oneblink-us --help
28+
```
29+
2430
- [CivicOptimize Productivity](https://console.transform.civicplus.com)
2531

2632
```sh

src/bin/oneblink-us.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env node
2+
3+
import commands from '../commands.js'
4+
import { TENANTS } from '../config.js'
5+
6+
commands(TENANTS.ONEBLINK_US)

src/config.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ function getOneBlinkLoginClientId() {
1919
}
2020
}
2121

22+
function getOneBlinkUSLoginClientId() {
23+
switch (environment) {
24+
case 'test': {
25+
return '1h0762m6b89hi71gln76vs3doc'
26+
}
27+
default: {
28+
return 'UNKNOWN'
29+
}
30+
}
31+
}
32+
2233
function getCivicPlusLoginClientId() {
2334
switch (environment) {
2435
case 'test': {
@@ -33,6 +44,7 @@ function getCivicPlusLoginClientId() {
3344
const TENANTS: {
3445
ONEBLINK: Tenant
3546
CIVICPLUS: Tenant
47+
ONEBLINK_US: Tenant
3648
} = {
3749
ONEBLINK: {
3850
id: 'ONEBLINK',
@@ -62,6 +74,20 @@ const TENANTS: {
6274
loginClientId: getCivicPlusLoginClientId(),
6375
loginCallbackUrl: `https://console${subdomainSuffix}.transform.civicplus.com/cli-tools-callback`,
6476
},
77+
ONEBLINK_US: {
78+
id: 'ONEBLINK_US',
79+
command: 'oneblink-us',
80+
label: 'OneBlink-US',
81+
productLongName: 'OneBlink LcS',
82+
productShortName: 'OneBlink LcS',
83+
consoleOrigin: `https://console${subdomainSuffix}.us.oneblink.io`,
84+
origin: `https://auth-api${subdomainSuffix}.us.oneblink.io`,
85+
apiHostingBucket: `oneblink-us-api-hosting-deployments-${environment}`,
86+
region: 'us-east-1',
87+
loginUrl: `https://login${subdomainSuffix}.us.oneblink.io`,
88+
loginClientId: getOneBlinkUSLoginClientId(),
89+
loginCallbackUrl: `https://console${subdomainSuffix}.us.oneblink.io/cli-tools-callback`,
90+
},
6591
}
6692

6793
export { TENANTS, USER_AGENT }

src/types/common.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare type Tenant = {
2-
id: 'ONEBLINK' | 'CIVICPLUS'
2+
id: 'ONEBLINK' | 'CIVICPLUS' | 'ONEBLINK_US'
33
command: string
44
label: string
55
productShortName: string

0 commit comments

Comments
 (0)