Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- OneBlink US tenant

## [3.5.9] - 2025-08-11

## [3.5.8] - 2025-07-10
Expand Down
8 changes: 7 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@ npm install -g @oneblink/cli

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:

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

```sh
oneblink --help
```

- [OneBlink Console (US)](https://console.us.oneblink.io)

```sh
oneblink-us --help
```

- [CivicOptimize Productivity](https://console.transform.civicplus.com)

```sh
Expand Down
6 changes: 6 additions & 0 deletions src/bin/oneblink-us.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env node

import commands from '../commands.js'
import { TENANTS } from '../config.js'

commands(TENANTS.ONEBLINK_US)
26 changes: 26 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ function getOneBlinkLoginClientId() {
}
}

function getOneBlinkUSLoginClientId() {
switch (environment) {
case 'test': {
return '1h0762m6b89hi71gln76vs3doc'
}
default: {
return 'UNKNOWN'
}
}
}

function getCivicPlusLoginClientId() {
switch (environment) {
case 'test': {
Expand All @@ -33,6 +44,7 @@ function getCivicPlusLoginClientId() {
const TENANTS: {
ONEBLINK: Tenant
CIVICPLUS: Tenant
ONEBLINK_US: Tenant
} = {
ONEBLINK: {
id: 'ONEBLINK',
Expand Down Expand Up @@ -62,6 +74,20 @@ const TENANTS: {
loginClientId: getCivicPlusLoginClientId(),
loginCallbackUrl: `https://console${subdomainSuffix}.transform.civicplus.com/cli-tools-callback`,
},
ONEBLINK_US: {
id: 'ONEBLINK_US',
command: 'oneblink-us',
label: 'OneBlink-US',
productLongName: 'OneBlink LcS',
productShortName: 'OneBlink LcS',
consoleOrigin: `https://console${subdomainSuffix}.us.oneblink.io`,
origin: `https://auth-api${subdomainSuffix}.us.oneblink.io`,
apiHostingBucket: `oneblink-us-api-hosting-deployments-${environment}`,
region: 'us-east-1',
loginUrl: `https://login${subdomainSuffix}.us.oneblink.io`,
loginClientId: getOneBlinkUSLoginClientId(),
loginCallbackUrl: `https://console${subdomainSuffix}.us.oneblink.io/cli-tools-callback`,
},
}

export { TENANTS, USER_AGENT }
2 changes: 1 addition & 1 deletion src/types/common.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare type Tenant = {
id: 'ONEBLINK' | 'CIVICPLUS'
id: 'ONEBLINK' | 'CIVICPLUS' | 'ONEBLINK_US'
command: string
label: string
productShortName: string
Expand Down