Usage Examples
6 items
Get Started
<Badges data={[
Importing Types
Every public interface and type of the SDK is re-exported from the package root and from a dedicated oneentry/types entry point, so deep oneentry/dist/... paths are no longer required.
Attribute Values
Attributes are how OneEntry describes content: a page, product, block, user, order or form field carries a map of attribute values keyed by marker. The SDK normalizes every attribute of every response to the same shape, so the same field looks the same no matter which module returned it.
Time Intervals
A timeInterval attribute is a recurrence rule, not a list of slots: an anchor date, daily time ranges and repeat flags. Resolve it into concrete [start, end] pairs for the window you actually render with the top-level helpers expandAttributeTimeIntervals, expandTimeIntervals and the type guard isTimeIntervalAttribute.
Bundle Size & Module Formats
The SDK ships both a CommonJS and an ESM build, and keeps its two heavy dependencies — Zod and socket.io-client — out of the import graph until they are actually used. A project that calls a single method, leaves validation off and never opens a socket loads 43 kB minified (9.7 kB gzip), down from 536 kB (110 kB gzip).
mtls
Setting up and configuring mTLS certificate for Platform OneEntry using tokens and mTLS, as well as deploying the application on a server with Nginx, Docker, and GitLab