UNPKG

xero-hero

Version:

Heroic utilities to simplify and enable your progress with the [xero-node](https://www.npmjs.com/package/xero-node) SDK.

16 lines (15 loc) 460 B
// src/utils/properties.ts var hasProperty = (object, property) => { if (Boolean(object) && typeof object === "object") { return property in object; } return false; }; // src/accounting/invoices/links.ts var getInvoiceLink = (invoice) => { return `https://invoicing.xero.com/view/${(hasProperty(invoice, "invoiceID") ? invoice.invoiceID : invoice) || "null-or-empty-invoice-id"}`; }; export { getInvoiceLink }; //# sourceMappingURL=links.mjs.map