Skip to content

Commit

Permalink
feat: migrate subdomain shortcuts (#752) (#770)
Browse files Browse the repository at this point in the history
Also mark as deprecated.
  • Loading branch information
childish-sambino authored Jun 29, 2022
1 parent 014ac43 commit 34f61d1
Show file tree
Hide file tree
Showing 96 changed files with 1,369 additions and 3,877 deletions.
30 changes: 0 additions & 30 deletions lib/rest/Accounts.d.ts

This file was deleted.

72 changes: 0 additions & 72 deletions lib/rest/Accounts.js

This file was deleted.

33 changes: 33 additions & 0 deletions lib/rest/Accounts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import {AuthTokenPromotionListInstance} from './accounts/v1/authTokenPromotion';
import {CredentialListInstance} from './accounts/v1/credential';
import {SecondaryAuthTokenListInstance} from './accounts/v1/secondaryAuthToken';
import AccountsBase from './AccountsBase';

export default class Accounts extends AccountsBase {
/**
* @deprecated - Use v1.authTokenPromotion; instead
*/
get authTokenPromotion(): AuthTokenPromotionListInstance {
console.warn('authTokenPromotion is deprecated. Use v1.authTokenPromotion; instead.');
return this.v1.authTokenPromotion;

}

/**
* @deprecated - Use v1.credentials; instead
*/
get credentials(): CredentialListInstance {
console.warn('credentials is deprecated. Use v1.credentials; instead.');
return this.v1.credentials;

}

/**
* @deprecated - Use v1.secondaryAuthToken; instead
*/
get secondaryAuthToken(): SecondaryAuthTokenListInstance {
console.warn('secondaryAuthToken is deprecated. Use v1.secondaryAuthToken; instead.');
return this.v1.secondaryAuthToken;

}
}
76 changes: 0 additions & 76 deletions lib/rest/Api.d.ts

This file was deleted.

Loading

0 comments on commit 34f61d1

Please sign in to comment.