Commit Graph

4 Commits

Author SHA1 Message Date
823f9107fd auto-claude: subtask-3-4 - Implement command methods (complete, uncomplete, skip)
Adds gRPC command methods to GrpcCqrsApiClient for delivery operations:
- completeDelivery: Mark delivery as completed with optional timestamp
- markDeliveryAsUncompleted: Revert completed delivery to pending
- skipDelivery: Skip a delivery that cannot be completed

All methods follow the Result<T> pattern for consistent error handling,
check CommandResponse.success flag, and map error messages appropriately.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 13:06:08 -05:00
7c1832dd4f auto-claude: subtask-3-3 - Implement getDeliveries query method 2026-01-20 13:04:25 -05:00
66d337315b auto-claude: subtask-3-2 - Implement getDeliveryRoutes query method 2026-01-20 13:02:56 -05:00
f6ecc8b1ae auto-claude: subtask-3-1 - Create GrpcCqrsApiClient class with channel management
Implements the foundational gRPC client class with:
- Lazy ClientChannel initialization with proper credentials
- DeliveryServiceClient lazy initialization
- Authentication via Bearer token in gRPC metadata
- CallOptions builder with token injection
- gRPC error to ApiError mapping (status codes -> HTTP equivalents)
- Token refresh on UNAUTHENTICATED errors (single retry)
- Proper channel shutdown/terminate methods

The core _executeWithAuth and _executeCommandWithAuth methods provide
the foundation for query and command methods in subsequent subtasks.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 13:00:55 -05:00