@kontent-ai/management-sdk
Version:
Official Kontent.ai management SDK
19 lines (15 loc) • 765 B
text/typescript
import { IManagementClientConfig } from '../../config';
import { EnvironmentResponses } from '../../responses';
import { ManagementQueryService } from '../../services';
import { BaseQuery } from '../base-query';
export class EnvironmentInformationQuery extends BaseQuery<EnvironmentResponses.EnvironmentInformationResponse> {
constructor(protected config: IManagementClientConfig, protected queryService: ManagementQueryService) {
super(config, queryService);
}
toPromise(): Promise<EnvironmentResponses.EnvironmentInformationResponse> {
return this.queryService.environmentInformationAsync(this.getUrl(), this.queryConfig);
}
protected getAction(): string {
return this.apiEndpoints.environmentInformation();
}
}