@kontent-ai/management-sdk
Version:
Official Kontent.ai management SDK
17 lines • 539 B
JavaScript
import { BaseQuery } from '../base-query';
export class PatchQuery extends BaseQuery {
constructor(config, queryService, action, data) {
super(config, queryService);
this.config = config;
this.queryService = queryService;
this.action = action;
this.data = data;
}
toPromise() {
return this.queryService.genericPatchResponseAsync(this.getUrl(), this.data, this.queryConfig);
}
getAction() {
return this.action;
}
}
//# sourceMappingURL=patch-query.class.js.map