Skip to content

Commit

Permalink
Merge pull request #32 from jleon-alertlogic/master
Browse files Browse the repository at this point in the history
Reverting getChildUserDetailsById
  • Loading branch information
mcnielsen authored Mar 2, 2020
2 parents ff03304 + a548750 commit 8d92c44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@al/aims",
"version": "1.1.5",
"version": "1.1.6",
"license": "MIT",
"description": "A client for interacting with the Alert Logic AIMS Public API",
"author": {
Expand Down
18 changes: 1 addition & 17 deletions src/aims-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class AIMSClientInstance {
}

/**
* Get user details from the given account_id
* Get user details
* GET
* /aims/v1/:account_id/users/:user_id
* "https://api.cloudinsight.alertlogic.com/aims/v1/12345678/users/715A4EC0-9833-4D6E-9C03-A537E3F98D23"
Expand All @@ -63,22 +63,6 @@ export class AIMSClientInstance {
return userDetails as AIMSUser;
}

/**
* Gets user details on any child chain
* GET
* /aims/v1/:account_id/users/:user_id
* "https://api.cloudinsight.alertlogic.com/aims/v1/user/715A4EC0-9833-4D6E-9C03-A537E3F98D23"
*/
async getChildUserDetailsById(accountId: string, userId: string) {
const userDetails = await this.client.get({
service_name: this.serviceName,
path: `/user/${userId}`,
retry_count: 5,
ttl: 2 * 60 * 1000
});
return userDetails as AIMSUser;
}

/**
* Get user permissions
* GET
Expand Down

0 comments on commit 8d92c44

Please sign in to comment.