File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,11 @@ import { getAxiosConfig } from '../http/getAxiosConfig';
22import http from '../http' ;
33import { ENVIRONMENTS } from '../constants/environments' ;
44import { Environment } from '../types/Config' ;
5- import { ScopeData , AccessTokenResponse } from '../types/Accounts' ;
5+ import {
6+ ScopeData ,
7+ AccessTokenResponse ,
8+ EnabledFeaturesResponse ,
9+ } from '../types/Accounts' ;
610import axios from 'axios' ;
711import { PublicAppInstallationData } from '../types/Apps' ;
812
@@ -59,3 +63,9 @@ export async function fetchAppInstallationData(
5963 } ,
6064 } ) ;
6165}
66+
67+ export async function fetchEnabledFeatures ( accountId : number ) {
68+ return http . get < EnabledFeaturesResponse > ( accountId , {
69+ url : `${ LOCALDEVAUTH_API_AUTH_PATH } /enabled-features` ,
70+ } ) ;
71+ }
Original file line number Diff line number Diff line change @@ -140,6 +140,10 @@ export type AccessTokenResponse = {
140140 accountType : ValueOf < typeof HUBSPOT_ACCOUNT_TYPES > ;
141141} ;
142142
143+ export type EnabledFeaturesResponse = {
144+ enabledFeatures : { [ key : string ] : boolean } ;
145+ } ;
146+
143147export type UpdateAccountConfigOptions =
144148 Partial < FlatAccountFields_DEPRECATED > & {
145149 environment ?: Environment ;
You can’t perform that action at this time.
0 commit comments