
# Service Library - `employeeProfile`

This document provides a complete reference of the custom code library for the `employeeProfile` service. It includes all library functions, edge functions with their REST endpoints, templates, and assets.


## Library Functions

Library functions are reusable modules available to all business APIs and other custom code within the service via `require("lib/<moduleName>")`.


### `isDocumentExpired.js`

```js
module.exports = function isDocumentExpired(document) {
  // Checks if validUntil is set and before now
  if (!document.validUntil) return false;
  return new Date(document.validUntil) < new Date();
}
```














---

*This document was generated from the service library configuration and should be kept in sync with design changes.*
