@optimizely/opti-cli
Advanced tools
Comparing version 1.0.0-beta.3 to 1.0.0-beta.4
@@ -183,2 +183,6 @@ import { AppContext } from './AppContext'; | ||
} | ||
interface Shard { | ||
id: string; | ||
description: string; | ||
} | ||
function searchAccounts(term: string, shard: string): Promise<Account[]>; | ||
@@ -272,2 +276,6 @@ function whoami(): Promise<Developer>; | ||
function uploadCredentials(vendor: string, appId: string, version: string, checksum: string): Promise<AwsCredentials>; | ||
/** | ||
* List shards. | ||
*/ | ||
function shards(): Promise<Shard[]>; | ||
} |
@@ -235,3 +235,11 @@ "use strict"; | ||
Rivendell.uploadCredentials = uploadCredentials; | ||
/** | ||
* List shards. | ||
*/ | ||
async function shards() { | ||
const response = await RivendellApi_1.RivendellApi.get('shards'); | ||
return response.body; | ||
} | ||
Rivendell.shards = shards; | ||
})(Rivendell = exports.Rivendell || (exports.Rivendell = {})); | ||
//# sourceMappingURL=Rivendell.js.map |
@@ -645,2 +645,19 @@ { | ||
}, | ||
"availability": { | ||
"namespaces": {}, | ||
"commands": [ | ||
{ | ||
"path": "commands/availability/List.js", | ||
"className": "ListCommand", | ||
"key": "list", | ||
"command": "list", | ||
"aliases": [], | ||
"help": "List all availability zones", | ||
"documentation": "TBD", | ||
"flags": [], | ||
"options": [], | ||
"params": [] | ||
} | ||
] | ||
}, | ||
"env": { | ||
@@ -686,3 +703,3 @@ "namespaces": {}, | ||
"package": { | ||
"version": "1.0.0-beta.3", | ||
"version": "1.0.0-beta.4", | ||
"name": "@optimizely/opti-cli", | ||
@@ -689,0 +706,0 @@ "license": "Apache-2.0", |
{ | ||
"name": "@optimizely/opti-cli", | ||
"version": "1.0.0-beta.3", | ||
"version": "1.0.0-beta.4", | ||
"description": "Optimizely command line interface", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/ZaiusInc/opti-cli", |
@@ -211,2 +211,7 @@ import {RivendellApi} from './RivendellApi'; | ||
export interface Shard { | ||
id: string; | ||
description: string; | ||
} | ||
export async function searchAccounts(term: string, shard: string): Promise<Account[]> { | ||
@@ -399,2 +404,10 @@ const path = `${shard}/accounts/search?term=${encodeURIComponent(term)}`.replace(/^\//, ''); | ||
} | ||
/** | ||
* List shards. | ||
*/ | ||
export async function shards(): Promise<Shard[]> { | ||
const response = await RivendellApi.get<Shard[]>('shards'); | ||
return response.body; | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
421156
235
8168