Skip to content

Commit

Permalink
chore: ran prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Aug 14, 2024
1 parent 1999b3c commit d485b37
Show file tree
Hide file tree
Showing 6 changed files with 336 additions and 239 deletions.
48 changes: 24 additions & 24 deletions src/rest/Iam.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
import IamBase from "./IamBase";
import {ApiKeyListInstance} from "./iam/v1/apiKey";
import {GetApiKeysListInstance} from "./iam/v1/getApiKeys";
import {KeyListInstance} from "./iam/v1/key";
import { ApiKeyListInstance } from "./iam/v1/apiKey";
import { GetApiKeysListInstance } from "./iam/v1/getApiKeys";
import { KeyListInstance } from "./iam/v1/key";

class Iam extends IamBase {
/**
* @deprecated - Use v1.apiKey instead
*/
get apiKey(): ApiKeyListInstance {
console.warn("apiKey is deprecated. Use v1.apiKey instead.");
return this.v1.apiKey;
}
/**
* @deprecated - Use v1.apiKey instead
*/
get apiKey(): ApiKeyListInstance {
console.warn("apiKey is deprecated. Use v1.apiKey instead.");
return this.v1.apiKey;
}

/**
* @deprecated - Use v1.getApiKeys instead
*/
get getApiKeys(): GetApiKeysListInstance {
console.warn("getApiKeys is deprecated. Use v1.getApiKeys instead.");
return this.v1.getApiKeys;
}
/**
* @deprecated - Use v1.getApiKeys instead
*/
get getApiKeys(): GetApiKeysListInstance {
console.warn("getApiKeys is deprecated. Use v1.getApiKeys instead.");
return this.v1.getApiKeys;
}

/**
* @deprecated - Use v1.keys instead
*/
get keys(): KeyListInstance {
console.warn("keys is deprecated. Use v1.keys instead.");
return this.v1.keys;
}
/**
* @deprecated - Use v1.keys instead
*/
get keys(): KeyListInstance {
console.warn("keys is deprecated. Use v1.keys instead.");
return this.v1.keys;
}
}

export = Iam;
5 changes: 1 addition & 4 deletions src/rest/Twilio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,7 @@ class Twilio extends Client {
}
/** Getter for (Twilio.FrontlineApi) domain */
get iam(): Iam {
return (
this._iam ??
(this._iam = new (require("./Iam"))(this))
);
return this._iam ?? (this._iam = new (require("./Iam"))(this));
}
/** Getter for (Twilio.Insights) domain */
get insights(): Insights {
Expand Down
1 change: 0 additions & 1 deletion src/rest/iam/V1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,4 @@ export default class V1 extends Version {
this._keys = this._keys || KeyListInstance(this);
return this._keys;
}

}
Loading

0 comments on commit d485b37

Please sign in to comment.