Logotipo Hedhog

Get Hedhog updates in your inbox

New releases, fresh recipes, and breaking changes — no spam.

operations Submodule

contracts-approvals

Contract lifecycle, AI/legal helper actions, and approval workflows.

Source path: libraries/operations/src/controllers/operations-contracts.controller.ts, operations-approvals.controller.ts

Module file: operations.module.ts

Introduction

Contracts are one of the most specialized areas of Operations. Besides CRUD, the module exposes helper actions for draft extraction, source extraction, content generation, legal review, and PDF generation.

Approvals are documented alongside contracts because many contract flows culminate in approval steps. The approvals surface itself is generic enough to support other business processes too.

HTTP Endpoints

11 endpoints

List contracts.

Return contract stats.

Get one contract.

Params
id (int)

Create a contract.

Update a contract.

Params
id (int)

Delete a contract.

Params
id (int)

Generate a contract PDF.

Params
id (int)

List approvals.

Get one approval.

Params
id (int)

Approve a pending approval item.

Params
id (int)

Reject a pending approval item.

Params
id (int)