/
Accounts.ts
36 lines (32 loc) · 1.08 KB
/
Accounts.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { AuthTokenPromotionListInstance } from "./accounts/v1/authTokenPromotion";
import { CredentialListInstance } from "./accounts/v1/credential";
import { SecondaryAuthTokenListInstance } from "./accounts/v1/secondaryAuthToken";
import AccountsBase from "./AccountsBase";
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;
}
}
export = Accounts;