UNPKG

efficy-enterprise-api

Version:

The Efficy Enterprise API is developed for server-side usage in a Node.js environment (e.g. for integrations) and also bundled for usage inside an Efficy browser session for client-side JSON RPC requests.

32 lines (27 loc) 493 B
/** * Class representing a remotely fetched Attachment */ class AttachmentObject { key; #stream; constructor(key) { this.key = key; } setStream(stream) { this.#stream = stream; } /** * get the base64 encoded attachment stream * @type {string} */ get base64Stream() { return this.#stream; } get func() { const func = {}; func["@name"] = "attachment"; func["key"] = this.key; return func; }; } export default AttachmentObject;