xero-hero
Version:
Heroic utilities to simplify and enable your progress with the [xero-node](https://www.npmjs.com/package/xero-node) SDK.
14 lines • 407 B
JavaScript
// src/accounting/attachments/requests.ts
import { bufferToStream } from "tranquil-stream";
var createInvoiceAttachment = async (client, tenantId, { invoiceId, filename, contents }) => {
return client.accountingApi.createInvoiceAttachmentByFileName(
tenantId,
invoiceId,
filename,
bufferToStream(contents)
);
};
export {
createInvoiceAttachment
};
//# sourceMappingURL=requests.mjs.map