Files
defiQUG e8ae376e90 Enhance API services with validation and error handling improvements
- Integrated Zod validation schemas across various API routes to ensure input integrity and improve error handling.
- Updated `mapping-service`, `orchestrator`, `packet-service`, and `webhook-service` to utilize validation middleware for request parameters and bodies.
- Improved error handling in webhook management, packet generation, and compliance routes to provide clearer feedback on request failures.
- Added new validation schemas for various endpoints, enhancing overall API robustness and maintainability.
- Updated dependencies in `package.json` to include the new validation library.
2025-12-12 20:23:45 -08:00
..

Packet Service

Packet generation and dispatch service for non-scheme integration.

Features

  • PDF packet generation from triggers
  • AS4 XML packet generation
  • Email dispatch with attachments
  • Portal dispatch
  • Acknowledgement tracking
  • Event publishing

Channels

  • PDF - PDF document generation
  • AS4 - AS4 XML message generation
  • EMAIL - Email dispatch with attachments
  • PORTAL - Portal notification

API Endpoints

  • POST /v1/packets - Generate packet
  • GET /v1/packets/:packetId - Get packet
  • GET /v1/packets - List packets
  • GET /v1/packets/:packetId/download - Download packet file
  • POST /v1/packets/:packetId/dispatch - Dispatch packet
  • POST /v1/packets/:packetId/ack - Record acknowledgement

Configuration

  • REST_API_URL - Main REST API URL (default: http://localhost:3000)
  • SMTP_HOST - SMTP server
  • SMTP_PORT - SMTP port
  • SMTP_USER - SMTP username
  • SMTP_PASS - SMTP password
  • AS4_ENDPOINT - AS4 gateway endpoint