amocrm-client
Version:
JS Library for AmoCRM
18 lines • 698 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasDeleteById = void 0;
const tslib_1 = require("tslib");
function hasDeleteById(Base) {
return class HasDeleteById extends Base {
deleteById(identity, options) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const url = this.getUrl('/' + identity);
const request = this.getRequest();
const { response } = yield request.delete(url, options);
return response.statusCode == 204;
});
}
};
}
exports.hasDeleteById = hasDeleteById;
//# sourceMappingURL=hasDeleteById.js.map