This template mirrors the core SDK structure and conventions:
- Models live in
src/models/** - Operation types in
src/models/operations/** - Funcs in
src/funcs/** - SDK classes in
src/sdk/** - Exports in
src/index.ts
- Public types should not expose
_linksor_embedded. - Use Zod
.transform()to map_links->linksand_embeddedto typed fields. - Use
.loose()for forward compatibility.
- Use
buildPaginated()andapplyPaginationParams()from@ominity/api-typescript/models. - Page/limit are optional; API defaults to page 1 / limit 20.
- Export
bookingsModule()(factory) andBookingsModule(prebuilt instance). - Use module augmentation so
ominity.modules.bookingsis typed.