-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #429 from HubSpot/feature/discoveriesForNewClients
Discoveries for new clients
- Loading branch information
Showing
22 changed files
with
391 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { | ||
createConfiguration, | ||
LandingPagesApi, | ||
RequestContext, | ||
ResponseContext, | ||
ServerConfiguration, | ||
SitePagesApi, | ||
} from '../../../../codegen/cms/pages/index' | ||
import { Observable } from '../../../../codegen/cms/pages/rxjsStub' | ||
import { ApiClientConfigurator } from '../../../configuration/ApiClientConfigurator' | ||
import IConfiguration from '../../../configuration/IConfiguration' | ||
import ApiDecoratorService from '../../../services/ApiDecoratorService' | ||
|
||
export default class PagesDiscovery { | ||
public landingPagesApi: LandingPagesApi | ||
public sitePagesApi: SitePagesApi | ||
|
||
constructor(config: IConfiguration) { | ||
const configuration = createConfiguration( | ||
ApiClientConfigurator.getParams< | ||
RequestContext, | ||
ResponseContext, | ||
Observable<RequestContext>, | ||
Observable<ResponseContext>, | ||
ServerConfiguration<{}> | ||
>(config, ServerConfiguration, Observable, Observable), | ||
) | ||
|
||
this.landingPagesApi = ApiDecoratorService.getInstance().apply<LandingPagesApi>(new LandingPagesApi(configuration)) | ||
this.sitePagesApi = ApiDecoratorService.getInstance().apply<SitePagesApi>(new SitePagesApi(configuration)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { | ||
createConfiguration, | ||
ListsApi, | ||
MembershipsApi, | ||
RequestContext, | ||
ResponseContext, | ||
ServerConfiguration, | ||
} from '../../../../codegen/crm/lists/index' | ||
import { Observable } from '../../../../codegen/crm/lists/rxjsStub' | ||
import { ApiClientConfigurator } from '../../../configuration/ApiClientConfigurator' | ||
import IConfiguration from '../../../configuration/IConfiguration' | ||
import ApiDecoratorService from '../../../services/ApiDecoratorService' | ||
|
||
export default class ListsDiscovery { | ||
public listsApi: ListsApi | ||
public membershipsApi: MembershipsApi | ||
|
||
constructor(config: IConfiguration) { | ||
const configuration = createConfiguration( | ||
ApiClientConfigurator.getParams< | ||
RequestContext, | ||
ResponseContext, | ||
Observable<RequestContext>, | ||
Observable<ResponseContext>, | ||
ServerConfiguration<{}> | ||
>(config, ServerConfiguration, Observable, Observable), | ||
) | ||
|
||
this.listsApi = ApiDecoratorService.getInstance().apply<ListsApi>(new ListsApi(configuration)) | ||
this.membershipsApi = ApiDecoratorService.getInstance().apply<MembershipsApi>(new MembershipsApi(configuration)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { createConfiguration } from '../../../../../codegen/crm/objects/goals/configuration' | ||
import { | ||
BasicApi, | ||
BatchApi, | ||
GDPRApi, | ||
PublicObjectApi, | ||
RequestContext, | ||
ResponseContext, | ||
SearchApi, | ||
ServerConfiguration, | ||
} from '../../../../../codegen/crm/objects/goals/index' | ||
import { Observable } from '../../../../../codegen/crm/objects/goals/rxjsStub' | ||
import { ApiClientConfigurator } from '../../../../configuration/ApiClientConfigurator' | ||
import IConfiguration from '../../../../configuration/IConfiguration' | ||
import ApiDecoratorService from '../../../../services/ApiDecoratorService' | ||
|
||
export default class GoalsDiscovery { | ||
public basicApi: BasicApi | ||
public batchApi: BatchApi | ||
public gdprApi: GDPRApi | ||
public publicObjectApi: PublicObjectApi | ||
public searchApi: SearchApi | ||
|
||
constructor(config: IConfiguration) { | ||
const configuration = createConfiguration( | ||
ApiClientConfigurator.getParams< | ||
RequestContext, | ||
ResponseContext, | ||
Observable<RequestContext>, | ||
Observable<ResponseContext>, | ||
ServerConfiguration<{}> | ||
>(config, ServerConfiguration, Observable, Observable), | ||
) | ||
|
||
this.basicApi = ApiDecoratorService.getInstance().apply<BasicApi>(new BasicApi(configuration)) | ||
this.batchApi = ApiDecoratorService.getInstance().apply<BatchApi>(new BatchApi(configuration)) | ||
this.gdprApi = ApiDecoratorService.getInstance().apply<GDPRApi>(new GDPRApi(configuration)) | ||
this.publicObjectApi = ApiDecoratorService.getInstance().apply<PublicObjectApi>(new PublicObjectApi(configuration)) | ||
this.searchApi = ApiDecoratorService.getInstance().apply<SearchApi>(new SearchApi(configuration)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { createConfiguration } from '../../../../../codegen/crm/objects/taxes/configuration' | ||
import { | ||
BasicApi, | ||
BatchApi, | ||
GDPRApi, | ||
PublicObjectApi, | ||
RequestContext, | ||
ResponseContext, | ||
SearchApi, | ||
ServerConfiguration, | ||
} from '../../../../../codegen/crm/objects/taxes/index' | ||
import { Observable } from '../../../../../codegen/crm/objects/taxes/rxjsStub' | ||
import { ApiClientConfigurator } from '../../../../configuration/ApiClientConfigurator' | ||
import IConfiguration from '../../../../configuration/IConfiguration' | ||
import ApiDecoratorService from '../../../../services/ApiDecoratorService' | ||
|
||
export default class TaxesDiscovery { | ||
public basicApi: BasicApi | ||
public batchApi: BatchApi | ||
public gdprApi: GDPRApi | ||
public publicObjectApi: PublicObjectApi | ||
public searchApi: SearchApi | ||
|
||
constructor(config: IConfiguration) { | ||
const configuration = createConfiguration( | ||
ApiClientConfigurator.getParams< | ||
RequestContext, | ||
ResponseContext, | ||
Observable<RequestContext>, | ||
Observable<ResponseContext>, | ||
ServerConfiguration<{}> | ||
>(config, ServerConfiguration, Observable, Observable), | ||
) | ||
|
||
this.basicApi = ApiDecoratorService.getInstance().apply<BasicApi>(new BasicApi(configuration)) | ||
this.batchApi = ApiDecoratorService.getInstance().apply<BatchApi>(new BatchApi(configuration)) | ||
this.gdprApi = ApiDecoratorService.getInstance().apply<GDPRApi>(new GDPRApi(configuration)) | ||
this.publicObjectApi = ApiDecoratorService.getInstance().apply<PublicObjectApi>(new PublicObjectApi(configuration)) | ||
this.searchApi = ApiDecoratorService.getInstance().apply<SearchApi>(new SearchApi(configuration)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { | ||
BehavioralEventsTrackingApi, | ||
createConfiguration, | ||
RequestContext, | ||
ResponseContext, | ||
ServerConfiguration, | ||
} from '../../../../codegen/events/send/index' | ||
import { Observable } from '../../../../codegen/events/send/rxjsStub' | ||
import { ApiClientConfigurator } from '../../../configuration/ApiClientConfigurator' | ||
import IConfiguration from '../../../configuration/IConfiguration' | ||
import ApiDecoratorService from '../../../services/ApiDecoratorService' | ||
|
||
export default class EventsDiscovery { | ||
public behavioralEventsTrackingApi: BehavioralEventsTrackingApi | ||
|
||
constructor(config: IConfiguration) { | ||
const configuration = createConfiguration( | ||
ApiClientConfigurator.getParams< | ||
RequestContext, | ||
ResponseContext, | ||
Observable<RequestContext>, | ||
Observable<ResponseContext>, | ||
ServerConfiguration<{}> | ||
>(config, ServerConfiguration, Observable, Observable), | ||
) | ||
|
||
this.behavioralEventsTrackingApi = ApiDecoratorService.getInstance().apply<BehavioralEventsTrackingApi>( | ||
new BehavioralEventsTrackingApi(configuration), | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.