UNPKG

amocrm-client

Version:
18 lines 698 B
"use strict"; 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