The HelpDesk App Framework (BAF) SDK, currently at version 1.0.16, is a JavaScript library designed to streamline cross-frame communication for applications integrated into the HelpDesk helpdesk platform. It provides a unified interface for apps running within iframes to interact seamlessly with the host framework. Key capabilities include secure data access (retrieving and updating ticket, contact, and chat information), robust event handling for platform events, managing app instances, and accessing runtime context and metadata. This SDK primarily targets developers building custom applications that need to embed and interact deeply within the HelpDesk ecosystem, simplifying complex cross-origin communication patterns.
npm install helpdesk-app-framework-sdkVerified import paths — ran on the pinned version, not inferred.
Initializes the BAF SDK, logs basic context information, and demonstrates fetching data after successful initialization.
Always use `npm install helpdesk-app-framework-sdk` for installation.
Ensure your application is embedded as an iframe within the official HelpDesk app framework. Do not run it standalone for full functionality.
Always chain `.then()` and `.catch()` to Promise-returning methods or use `await` inside an `async` function.
For Node.js projects, ensure `type: 'module'` is set in `package.json` or use `.mjs` extensions. For older Node versions, consider a polyfill or stick to browser-only usage.
Ensure `<script src="path/to/baf_sdk.min.js"></script>` is loaded before your app script in HTML, or `import BAFClient from 'helpdesk-app-framework-sdk';` is at the top of your module.
Wrap asynchronous calls in `async/await` or chain `.then()` and `.catch()` to handle the Promise resolution.
Use the correct npm package name: `npm install helpdesk-app-framework-sdk`.
Verify that your app is properly embedded as an iframe within the HelpDesk platform and that the host page's origin is allowed for communication.
No dependency data recorded yet.