magicbell
Version:
MagicBell API wrapper
31 lines • 1.02 kB
JavaScript
;
// This file is generated. Do not update manually!
Object.defineProperty(exports, "__esModule", { value: true });
exports.Imports = void 0;
const resource_js_1 = require("../client/resource.js");
class Imports extends resource_js_1.Resource {
path = 'imports';
entity = 'import';
create(dataOrOptions, options) {
return this.request({
method: 'POST',
}, dataOrOptions, options);
}
/**
* Query the status of the import for a summary of imported records and failures
* for each record that could not be imported successfully.
*
* @param importId - ID of the import.
* The ID of the import is returned when the import is created.
* @param options - override client request options.
* @returns
**/
get(importId, options) {
return this.request({
method: 'GET',
path: '{import_id}',
}, importId, options);
}
}
exports.Imports = Imports;
//# sourceMappingURL=imports.js.map