@kontent-ai/management-sdk
Version:
Official Kontent.ai management SDK
22 lines (18 loc) • 751 B
text/typescript
import { BaseQuery } from '../base-query';
import { BaseResponses } from '../../responses';
import { IManagementClientConfig } from '../../config';
import { ManagementQueryService } from '../../services';
export class DeleteEnvironmentQuery extends BaseQuery<BaseResponses.EmptyContentManagementResponse> {
constructor(
protected config: IManagementClientConfig,
protected queryService: ManagementQueryService
) {
super(config, queryService);
}
toPromise(): Promise<BaseResponses.EmptyContentManagementResponse> {
return this.queryService.deleteEnvironmentAsync(this.getUrl(), this.queryConfig);
}
protected getAction(): string {
return this.apiEndpoints.deleteEnvironment();
}
}