>
-```
-
-This creates or updates `.cdsrc-private.json` with a `[hybrid]` profile entry pointing to the CF service instance and its service key. The file should not be committed to version control as it contains environment-specific binding references.
-
-**Step 3 - Compile and run with the hybrid profile:**
-
-```bash
-cd samples/bookshop
-mvn compile
-cds bind --exec mvn spring-boot:run
-```
-
-The plugin will resolve the Document AI service binding at startup, construct an OAuth2-authenticated destination, and activate extraction processing.
-
-The `AdminService` exposes a `Books` entity with a bound action `extractDocumentData()` illustrating how to trigger extraction from a CAP action. The `Attachments` composition on `Books` provides a Fiori UI for file upload and is used here purely as a convenient way to supply documents in the sample. The CAP Attachments plugin is not a dependency of this plugin - document storage and retrieval are outside the scope of `cds-feature-sap-document-ai`, which is concerned solely with submitting documents to SAP Document AI and delivering the extracted results.
-
-A sample PDF invoice (`dummy invoice.pdf`) is included in the `samples/bookshop/` directory. You can upload it via the Fiori UI and trigger `extractDocumentData()` to see the full extraction flow end-to-end without needing your own test document.
-
----
-
-## How It Works
-
-The plugin follows a fire-and-forget event model with asynchronous result delivery:
-
-1. **Application emits** a `DocumentExtraction` event containing the document bytes and extraction options.
-2. **Plugin submits** the document to the Document AI REST API and persists an `ExtractionJob` in `SUBMITTED` status.
-3. **Plugin polls** the Document AI service via the CDS persistent outbox until the job reaches a terminal status.
-4. **Plugin emits** a `DocumentExtractionResult` event containing the raw extraction JSON once the job completes.
-5. **Application handles** the result event and processes the extracted fields.
-
-### Job Status Flow
-
-```
-PENDING --> SUBMITTED --> RUNNING --> DONE
- | | |
- +------------>+----------->+-------> FAILED
-```
-
-- `PENDING` - job created, awaiting submission (Document AI may be unavailable)
-- `SUBMITTED` - document accepted by Document AI
-- `RUNNING` - Document AI is processing the document
-- `DONE` - extraction completed successfully; result delivered
-- `FAILED` - unrecoverable error at any stage
-
-See [Architecture Overview](docs/architecture.md) for the full component breakdown and lifecycle diagram.
-
----
-
-## Configuration
-
-### Document AI Service Binding
-
-The plugin resolves Document AI credentials from the SAP BTP service binding environment at startup. It searches for a binding with the service label `sap-document-information-extraction`.
-
-**SAP BTP (Cloud Foundry / Kubernetes):** Bind the application to a Document AI service instance by referring to [Cloud Foundry](https://help.sap.com/docs/document-ai/sap-document-ai/enabling-service-in-cloud-foundry-environment?locale=en-US&q=submit+document) or [Kuberenetes](https://help.sap.com/docs/document-ai/sap-document-ai/enabling-service-in-kyma-environment?locale=en-US&q=submit+document) documentation. The plugin discovers the binding, constructs an OAuth2-authenticated HTTP destination via the SAP Cloud SDK, and activates extraction processing.
-
-**Local development:** The plugin starts in degraded mode when no binding is present (see [Degraded Operation](#degraded-operation)). A local binding can be simulated via `VCAP_SERVICES` or a service binding file bearing the label `sap-document-information-extraction`.
-
-If the binding is present but the destination cannot be initialised (for example, due to a network or configuration error), the plugin logs a warning and disables extraction until the application is restarted.
-
-### Outbox
-
-The plugin relies on the CDS persistent outbox to schedule polling cycles. The following configuration is required in `application.yaml`:
-
-```yaml
-cds:
- outbox:
- persistent:
- scheduler:
- enabled: true
-```
-
-Without the persistent outbox, documents are submitted to Document AI but results are never retrieved.
-
-The plugin submits a polling task named `document-ai-poll-extraction-jobs` to the outbox at 3-second intervals (default) while active jobs exist. Polling stops automatically once all jobs reach a terminal status (`DONE` or `FAILED`) and resumes upon the next document submission.
-
-The poll interval can be configured in `application.yaml`:
-
-```yaml
-cds:
- document-ai:
- polling:
- interval-seconds: 3 # default
-```
-
-The outbox retry limit can be adjusted alongside other outbox services:
-
-```yaml
-cds:
- outbox:
- services:
- DefaultOutboxUnordered:
- maxAttempts: 10
-```
-
-### Degraded Operation
-
-The plugin is designed to accept events and preserve job state even when dependent services are unavailable.
-
-| Condition | Behaviour |
-| ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
-| No Document AI service binding found at startup | `DocumentExtraction` events are accepted; jobs are created with status `PENDING`; polling is not scheduled |
-| Document AI binding present but destination initialisation fails | Same as above; a warning is logged |
-| Persistent outbox not configured | Documents are submitted to Document AI; the polling task is not persisted and results are not delivered |
-| Document AI returns a non-2xx HTTP response | The affected job is marked `FAILED`; an error is logged |
-| Concurrent status update detected | The update is skipped; the later writer's state is preserved (optimistic locking) |
-
----
-
-## Architecture Overview
-
-For a detailed description of the plugin's design, component responsibilities, extraction lifecycle, and status state machine, see [here](docs/architecture.md).
-
----
-
-## Supported Plans and APIs
-
-The plugin communicates with the SAP Document Information Extraction service via its **REST API** (`document-information-extraction/v1`). This is supported across all available Document AI service plans.
-
-| Document AI Service Plan | Supported |
-| ------------------------ | ------------------ |
-| All plans | Yes - via REST API |
-
-**Future:** Support for the Document AI **OData API** is planned for a future release. This would enable richer query capabilities over extraction results directly through the CAP OData layer.
-
----
-
-## Known Limitations
-
-- **Multi-tenancy** — not implemented; all jobs run in a single-tenant context. Planned for a future release.
-- **Annotation-based triggering** — document extraction can only be initiated programmatically via event emission; declarative triggering is not yet supported.
-
----
-
-## Monitoring and Logging
-
-All plugin log statements are prefixed with `[sap-document-ai]` to facilitate log filtering. The plugin uses SLF4J and is configured through the standard logging framework of the host application.
-
-| Level | Logged events |
-| ------- | -------------------------------------------------------------------------------------------------------------------- |
-| `INFO` | Service binding resolution, job creation, status transitions, result emission |
-| `WARN` | Missing binding, unavailable outbox, jobs skipped due to missing Document AI job ID, concurrent update conflicts |
-| `ERROR` | Submission failures, non-2xx Document AI responses, polling exceptions |
-| `DEBUG` | Per-cycle active job counts, Document AI status poll responses, idempotent update skips, poll schedule confirmations |
-
-To enable debug-level logging for the plugin, add the following to `application.yaml`:
-
-```yaml
-logging:
- level:
- com.sap.cds.feature.documentai: DEBUG
-```
-
----
-
-## References
-
-- [Getting Started with CAP](https://cap.cloud.sap/docs/get-started/)
-- [CAP Java](https://cap.cloud.sap/docs/java/)
-- [Service Consumption using Service Bindings](https://cap.cloud.sap/docs/java/cqn-services/remote-services#native-consumption)
-- [Outbox](https://cap.cloud.sap/docs/java/outbox#concepts)
- - [Technical Outbox API](https://cap.cloud.sap/docs/java/outbox#technical-outbox-api)
-- [SAP Document AI Docs](https://help.sap.com/docs/document-ai?locale=en-US)
-- [Enabling Document AI Service Instance on SAP BTP Cloud Foundry](https://help.sap.com/docs/document-ai/sap-document-ai/enabling-service-in-cloud-foundry-environment?locale=en-US)
-
----
-
-## Support, Feedback, Contributing
-
-- Bug reports and feature requests should be submitted as issues in this project repository.
-- Pull requests are welcome. All contributions must pass `mvn verify`, which enforces Spotless code formatting (Google Java Format), PMD static analysis, and a minimum JaCoCo instruction coverage of 85%.
-
----
-
-## Integration Tests
-
-Spring Boot tests are implemented in the `integration-tests/` folder. The tests are executed during the build of the project in the GitHub Actions.
-
-The folder contains a simple Spring Boot application backed by an in-memory H2 database. No Document AI service binding is required - the tests use a stub `DocumentAiClient` that returns controlled responses.
-
-The following scenarios are covered:
-
-- Plugin startup - service catalog registration and schema initialisation
-- Document submission via the CAP event API
-- Full extraction lifecycle (PENDING → SUBMITTED → RUNNING → DONE and FAILED paths)
-- Parallel document processing in a single poll cycle
-- Poll cycle resilience when one job's Document AI call fails
-- Graceful degradation when no Document AI binding is present
-- Rejection of invalid state machine transitions
-- `DocumentExtractionResult` CAP event emission on job completion
-
-To run the tests locally, first install the plugin snapshot, then run `mvn verify` from the `integration-tests/` folder:
-
-```bash
-cd sap-document-ai && mvn install -DskipTests
-cd ../integration-tests && npm install && mvn verify
-```
diff --git a/cds-feature-sap-document-ai/docs/architecture.md b/cds-feature-sap-document-ai/docs/architecture.md
deleted file mode 100644
index 146f830..0000000
--- a/cds-feature-sap-document-ai/docs/architecture.md
+++ /dev/null
@@ -1,226 +0,0 @@
-# Implementation Details
-
-## Table of Contents
-
-- [Links](#links)
-- [Folder Structure](#folder-structure)
-- [Feature](#feature)
- - [CDS Model](#cds-model)
- - [Configuration](#configuration)
- - [Handlers](#handlers)
- - [Services](#services)
- - [Outbox and Polling](#outbox-and-polling)
- - [Exceptions](#exceptions)
-- [Extraction Lifecycle](#extraction-lifecycle)
-- [Status State Machine](#status-state-machine)
-- [Tests](#tests)
- - [Unit Tests](#unit-tests)
-- [Quality Tools](#quality-tools)
-
----
-
-## Links
-
-- [CAP Java Plugin Concept](https://cap.cloud.sap/docs/java/building-plugins#building-plugins)
-- [CAP Java Outbox Documentation](https://cap.cloud.sap/docs/java/outbox#outboxing-cap-service-events)
-- [SAP Document AI Documentation](https://help.sap.com/docs/document-ai?locale=en-US)
-- [Enabling Document AI Service on SAP BTP Cloud Foundry](https://help.sap.com/docs/document-ai/sap-document-ai/enabling-service-in-cloud-foundry-environment?locale=en-US)
-- [CAP Java Getting Started](https://cap.cloud.sap/docs/java/getting-started)
-
----
-
-## Folder Structure
-
-| Folder | Description |
-| ------------------------------------------------------ | -------------------------------------------------------------------------- |
-| `sap-document-ai` | Core implementation of the Document AI plugin |
-| `sap-document-ai/src/main/java` | Java source files for handlers, services, configuration, and model classes |
-| `sap-document-ai/src/main/resources/cds` | CDS model files shipped with the plugin |
-| `sap-document-ai/src/main/resources/META-INF/services` | Java `ServiceLoader` registration for `CdsRuntimeConfiguration` |
-| `sap-document-ai/src/test/java` | Unit tests |
-| `bookshop` | Sample CAP Java application demonstrating plugin integration |
-| `bookshop/srv` | Spring Boot application module for the sample |
-| `bookshop/db` | CDS data model for the sample |
-| `bookshop/app` | Fiori UI applications for the sample |
-| `docs` | Design and architecture documentation |
-
----
-
-## Feature
-
-The plugin is implemented in the `sap-document-ai` module. The following Java packages make up the implementation:
-
-| Package | Description |
-| --------------------------------------------------- | ----------------------------------------------------------------------------------- |
-| `com.sap.cds.feature.documentai.configuration` | Bootstraps all plugin components and registers them with the CDS runtime at startup |
-| `com.sap.cds.feature.documentai.handlers` | CDS event handlers for document submission and outbox-driven polling |
-| `com.sap.cds.feature.documentai.service` | Core extraction service, processing service, status enum, and transition validator |
-| `com.sap.cds.feature.documentai.service.client` | HTTP client abstraction for the Document AI REST API |
-| `com.sap.cds.feature.documentai.service.model` | Immutable value objects used as internal data transfer types |
-| `com.sap.cds.feature.documentai.service.exceptions` | Typed exceptions for error classification |
-| `com.sap.cds.feature.documentai.service.utils` | Utility classes |
-
-### CDS Model
-
-The CDS model is defined in:
-
-```
-sap-document-ai/src/main/resources/cds/com.sap.cds/sap-document-ai/
-```
-
-Per the [CAP Java plugin concept](https://cap.cloud.sap/docs/java/building-plugins#building-plugins), this path makes the model available to consuming applications via the `cds-maven-plugin` `resolve` goal.
-
-The model contains the following files:
-
-| File | Description |
-| ------------------------- | -------------------------------------------------------------------------------------------------------------------- |
-| `document-ai-service.cds` | Defines `DocumentAiService` with the `DocumentExtraction` (inbound) and `DocumentExtractionResult` (outbound) events |
-| `extraction-job.cds` | Defines the internal `ExtractionJob` entity used to persist job state across the extraction lifecycle |
-| `index.cds` | Entry point that imports both files; resolved by the CAP plugin mechanism |
-
-The `ExtractionJob` entity uses `cuid` (auto-generated UUID primary key) and `managed` (auto-populated audit fields). It tracks the job `status`, `tenantId`, the Document AI-assigned `documentAiJobId`, and the raw `extractionResult`. The table is deployed automatically as part of the consuming application's CDS schema deployment - no manual DDL is required.
-
-### Configuration
-
-`DocumentAiServiceConfiguration` implements `CdsRuntimeConfiguration` and is the plugin's sole entry point into the CDS runtime. It is discovered automatically via the Java `ServiceLoader` mechanism.
-
-At startup it:
-
-- Registers `ExtractionServiceImpl` as a named CDS service in the service catalog.
-- Resolves the Document AI service binding from the environment by the label `sap-document-information-extraction`.
-- Constructs an OAuth2-authenticated HTTP destination via the SAP Cloud SDK if a binding is found.
-- Wires all resolved dependencies into `ExtractionServiceImpl`.
-- Registers `DocumentSubmissionHandler` unconditionally.
-- Registers `ExtractionPollingHandler` only when a valid Document AI client was successfully built.
-
-If no binding is found or the destination cannot be initialised, the plugin starts in degraded mode - events are accepted and jobs are queued as `PENDING`, but no extraction processing occurs.
-
-### Handlers
-
-| Handler | Description |
-| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `DocumentSubmissionHandler` | Listens for `DocumentExtraction` events on any `ApplicationService`. Service-name-agnostic by design - consumers emit events from their own service without coupling to the plugin's internal service name. Delegates to `ExtractionService` and completes the event context. |
-| `ExtractionPollingHandler` | Registered against the persistent unordered outbox. Polls the Document AI service for all active jobs on each invocation. Self-reschedules after the configured interval if jobs remain active. Stops automatically when all jobs reach a terminal status. |
-
-### Services
-
-| Service / Class | Description |
-| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `ExtractionService` | CAP service interface registered in the service catalog. Exposes `triggerExtraction()` for new submissions and `updateExtractionResult()` for poll-driven status updates. |
-| `ExtractionServiceImpl` | Central orchestrator. Creates and persists extraction jobs, coordinates submission via the processing service, schedules polling via the outbox, and enforces the status state machine on every update using optimistic locking. |
-| `DocumentAiProcessingService` | Abstraction over the HTTP client. Provides an `isAvailable()` check that allows `ExtractionServiceImpl` to degrade gracefully when no Document AI binding is present. |
-| `DefaultDocumentAiClient` | Concrete HTTP client. Submits documents to Document AI via a multipart `POST` and polls job status via `GET`. All Document AI communication is authenticated via SAP Cloud SDK OAuth2 destinations. |
-| `StatusTransitionValidator` | Stateless utility that enforces the permitted status transitions. Called before every status update to prevent invalid state machine transitions. |
-
-### Outbox and Polling
-
-The plugin uses the CDS **persistent unordered outbox** for all polling scheduling rather than a background thread or fixed scheduler. This design choice means:
-
-- Polling is entirely **event-driven** - it runs only when there are active jobs.
-- No background thread or fixed scheduler is active when the system is idle.
-- Resilience across restarts is guaranteed - if the application restarts mid-poll, the outbox re-delivers the pending event automatically.
-- Polling stops automatically when all jobs reach a terminal status (`DONE` or `FAILED`) and resumes when the next document is submitted.
-
-The poll interval defaults to 3 seconds and is configurable via `cds.document-ai.polling.interval-seconds` in `application.yaml`.
-
-### Exceptions
-
-Errors from Document AI interactions are classified into three typed exceptions nested under `DocumentAiException`:
-
-| Exception | Condition |
-| ---------------------------------- | --------------------------------------------------------------------------------- |
-| `DocumentAiException.Connectivity` | Network-level failure reaching Document AI (timeout, DNS, etc.) |
-| `DocumentAiException.Request` | Non-2xx HTTP response from Document AI; carries the status code and response body |
-| `DocumentAiException.Processing` | Malformed or missing fields in the Document AI response |
-
-Two additional exceptions govern internal state management:
-
-| Exception | Condition |
-| ---------------------------------- | --------------------------------------------------------------------------------------------------- |
-| `ConcurrentJobUpdateException` | Raised when an optimistic lock update detects that a concurrent writer has already advanced the job |
-| `IllegalStatusTransitionException` | Raised when a requested status transition is not permitted by the state machine |
-
----
-
-## Extraction Lifecycle
-
-```
-Application
- └─ emit DocumentExtraction(fileName, mimeType, content, options)
- │
- ▼
-DocumentSubmissionHandler
- └─ ExtractionService.triggerExtraction()
- │
- ├─ Persist ExtractionJob (status=PENDING)
- │
- ├─ Document AI unavailable ──► return PENDING result
- │
- └─ Document AI available
- └─ POST multipart document to Document AI
- └─ receive dieJobId
- └─ update job → SUBMITTED
- └─ submit poll task to outbox
- │
- ▼ (after configured interval, via outbox)
- ExtractionPollingHandler
- └─ GET Document AI job status for each SUBMITTED / RUNNING job
- ├─ RUNNING → update job → RUNNING, reschedule
- ├─ DONE → update job → DONE
- │ emit DocumentExtractionResult
- │ └─ consumer @On handler invoked
- └─ FAILED → update job → FAILED (terminal)
-```
-
----
-
-## Status State Machine
-
-```
-PENDING ──► SUBMITTED ──► RUNNING ──► DONE
- │ │ │
- └────────►────┴────────►───┴──────► FAILED
-```
-
-| Transition | Trigger |
-| --------------------- | --------------------------------------------------------------------- |
-| `PENDING → SUBMITTED` | Document successfully submitted to Document AI |
-| `PENDING → FAILED` | Unrecoverable error during submission |
-| `SUBMITTED → RUNNING` | Document AI reports that the job is in progress |
-| `SUBMITTED → DONE` | Document AI reports completion without an intermediate RUNNING status |
-| `SUBMITTED → FAILED` | Document AI reports a processing failure |
-| `RUNNING → DONE` | Document AI processing completed successfully |
-| `RUNNING → FAILED` | Document AI reports a processing failure |
-
-`DONE` and `FAILED` are terminal states. No further transitions are permitted from either status.
-
----
-
-## Tests
-
-### Unit Tests
-
-Unit tests are located in `sap-document-ai/src/test/java`. Each production class has a corresponding test class. The following test classes are implemented:
-
-| Test Class | What is tested |
-| ------------------------------------ | --------------------------------------------------------------------------------------------------------- |
-| `DocumentSubmissionHandlerTest` | Event handler delegation, PENDING and FAILED logging |
-| `ExtractionServiceImplTest` | Job creation, submission flow, concurrent update handling, failure marking, outbox scheduling |
-| `ExtractionPollingHandlerTest` | Poll cycle logic, Document AI status mapping, result emission, self-rescheduling, per-job error isolation |
-| `DefaultDocumentAiClientTest` | HTTP submit and poll calls, response parsing, error wrapping for all three exception types |
-| `DocumentAiServiceConfigurationTest` | Startup wiring, binding resolution, conditional handler registration |
-| `StatusTransitionValidatorTest` | All valid and invalid transitions |
-| `ExceptionsTest` | Exception message and cause propagation |
-
-Tests use Mockito for dependencies and AssertJ for assertions. The `jacoco-maven-plugin` enforces a minimum instruction coverage of **85%** across the plugin bundle (generated code excluded).
-
----
-
-## Quality Tools
-
-| Tool | Definition | Description |
-| -------------- | ------------------------- | ------------------------------------------------------------------------------------------------ |
-| Spotless | `sap-document-ai/pom.xml` | Enforces Google Java Format and SAP license headers on all source files |
-| PMD / CPD | `sap-document-ai/pom.xml` | Static analysis and copy-paste detection; SAP Cloud SDK ruleset applied; generated code excluded |
-| JaCoCo | `sap-document-ai/pom.xml` | Enforces 85% minimum instruction coverage; generated code excluded |
-| Maven Compiler | `sap-document-ai/pom.xml` | Enforces Java 17 (`--release 17`) |
diff --git a/cds-feature-sap-document-ai/docs/handover.md b/cds-feature-sap-document-ai/docs/handover.md
deleted file mode 100644
index 91d377b..0000000
--- a/cds-feature-sap-document-ai/docs/handover.md
+++ /dev/null
@@ -1,178 +0,0 @@
-# Handover Document - SAP Document AI CAP Java Plugin
-
-This document captures what has been built, where things stand today, and directions for where the project should go next - based on my understanding (Samyuktha Prabhu [samyuktha.prabhu@sap.com]) at the time of handover.
-
-## Table of Contents
-
-- [Getting Started](#getting-started)
-- [What Is Built](#what-is-built)
-- [Current Capabilities & Limitations](#current-capabilities--limitations)
-- [Implementation Notes](#implementation-notes)
-- [Suggested Future Work](#suggested-future-work)
-
----
-
-## Getting Started
-
-### Read the docs in this order
-
-1. **[README.md](../README.md)** - start here. Covers what the plugin does, how to integrate it into a CAP Java application, configuration options, and how to run the bookshop sample locally.
-2. **[architecture.md](architecture.md)** - read this second. Covers the component breakdown, the extraction lifecycle diagram, and the job status state machine. Gives you the internal picture once the README has explained the external API.
-3. **This document (handover.md)** - read last. Covers current maturity, known limitations, implementation notes, and suggestions for future work. Most relevant if you are continuing development rather than just consuming the plugin.
-
----
-
-## What Is Built
-
-The plugin is a CAP Java plugin that lets any CAP Spring Boot application send documents to SAP Document AI service on BTP for information extraction and receive the results back - all without writing any HTTP, polling, or job management code.
-
-### Current Maturity: Alpha / MVP
-
-| Implemented | Not yet implemented |
-| ------------------------------------------------------------------- | --------------------------- |
-| Core asynchronous extraction workflow | Multitenancy |
-| Event-based API (`DocumentExtraction` / `DocumentExtractionResult`) | Annotation-based triggering |
-| Persistent outbox polling with configurable interval | Automatic field mapping |
-| Unit and integration tests (85% coverage enforced) | Job recovery on restart |
-| Working reference app (`bookshop`) | Richer local mock mode |
-
----
-
-## Current Capabilities & Limitations
-
-This is an alpha release. The core extraction pipeline works end-to-end, and the foundation has been laid for a number of possible extensions. The table below summarises what is and isn't in scope today. See [Suggested Future Work](#suggested-future-work) for ideas on where things could go next.
-
-| # | Area | Where things stand |
-| --- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| S1 | **Multitenancy** | `tenantId` is stored on `ExtractionJob` as groundwork, but polling and the HTTP client are not yet tenant-aware. Single-tenant use only for now. |
-| S2 | **Triggering** | Programmatic triggering (emit `DocumentExtraction` from code) works fully. Declarative triggering via a CDS annotation + Fiori Elements button is not yet implemented. |
-| S3 | **Document storage** | The plugin is focused on extraction only. Applications are responsible for storing documents using their preferred mechanism. **Design Decision**: The plugin accepts document bytes directly on the `DocumentExtraction` event and has no knowledge of where those bytes came from. The plugin's job is extraction, not storage. A hard dependency on `@cap-java/cds-feature-attachments` would couple two independent plugins and create version compatibility overhead. Keeping the plugin storage-agnostic means it works with any document source - the Attachments plugin, a custom entity, an external store, or a direct upload. Each consuming application can choose its own storage strategy and feed documents into the plugin through the same event API regardless. |
-| S4 | **Custom schema sync** | Standard document types work out of the box. CDS-annotation-driven sync of custom extraction schemas to Document AI is not yet implemented. |
-| S5 | **Field mapping** | Results are delivered as raw JSON for maximum flexibility. Automatic mapping to CDS entity properties and Fiori form pre-fill is not yet implemented. |
-| S6 | **Job recovery** | Graceful degradation works (no binding → jobs stay `PENDING`). Automatic recovery of stuck or in-flight jobs on startup is not yet implemented. |
-| S7 | **Local development** | Degraded mode works without a binding. A richer mock that returns configurable static results is not yet implemented. |
-| S8 | **Malware scanning** | Not yet assessed or implemented. |
-| S9 | **CLI scaffolding** | Setup is manual and documented in the README. A `cds add document-ai` command is not yet implemented. |
-| S10 | **OData API** | REST API works across all plans. OData support for higher-tier plans is a future enhancement. |
-| S11 | **Job cleanup** | Job records are kept for observability. A configurable retention policy is not yet implemented. |
-
----
-
-## Implementation Notes
-
-### Poll cycle queries all tenants
-
-The poll query fetches all active jobs across all tenants. In a multitenant deployment, jobs from different tenants get polled under the same credentials - which is incorrect. This is something to keep in mind if multitenancy becomes a priority.
-
-### Service binding is resolved once at startup
-
-If a binding is added after the app starts, it won't be picked up until a restart. The plugin resolves bindings once, at startup.
-
-### Optimistic lock uses two database round-trips
-
-`ExtractionServiceImpl.updateExtractionJob()` does a `SELECT` to read the current status, then an `UPDATE … WHERE status = currentStatus`. This is correct and safe, but the SELECT is an extra round-trip that could be eliminated by collapsing into a single read-modify-write statement, which would reduce the conflict window under high concurrency.
-
----
-
-## Suggested Future Work
-
-These are ideas and suggestions and not a fixed plan. The ordering reflects what felt most important at the time of writing, but the incoming team should feel free to reprioritise based on their own context and stakeholder needs.
-
-### 1. Multitenancy _(S1)_ - Priority
-
-A natural first area to tackle would be making each tenant use its own Document AI credentials with isolated jobs. The polling logic and HTTP client would need to become tenant-aware - the `tenantId` field is already on `ExtractionJob`, so no schema migration is needed.
-
-**Tracking issue:** [#98](https://github.com/cap-java/cds-ai/issues/98)
-
-### 2. Annotation-Based Triggering _(S2)_ - Priority
-
-One possible enhancement is to allow developers to annotate a CDS entity field with `@DocumentAI` to automatically trigger extraction - removing the need for boilerplate event emission. This could cover both the backend (plugin reacts to annotated field writes) and the Fiori Elements UI (an "Upload & Extract" button injected automatically on the Object Page).
-
-**Tracking issue:** [#97](https://github.com/cap-java/cds-ai/issues/97)
-
-### 3. Job Recovery on Startup _(S6)_
-
-A useful addition could be a startup check for any jobs left in `PENDING`, `SUBMITTED`, or `RUNNING` status from before a restart, resuming polling for them automatically rather than waiting for a new submission to arrive.
-
-**Tracking issue:** [#100](https://github.com/cap-java/cds-ai/issues/100)
-
-### 4. Extraction Progress Indicator
-
-The backend already tracks `SUBMITTED` and `RUNNING` states - it could be worth surfacing that status in the Fiori Elements Object Page as a visible progress indicator or status strip so users have feedback while extraction is running.
-
-**Tracking issue:** [#108](https://github.com/cap-java/cds-ai/issues/108)
-
-### 5. Automatic Field Mapping _(S5)_
-
-One idea is to have the plugin match extracted fields to CDS entity properties by name convention and pre-fill the Fiori form automatically. Fields below a configurable confidence threshold could be visually flagged (e.g. amber highlight) so users know what to double-check before saving.
-
-**Tracking issue:** [#101](https://github.com/cap-java/cds-ai/issues/101)
-
-### 6. Document Viewer with Extraction Highlights and Human-in-the-Loop Verification
-
-A more exploratory idea is to visualise extracted fields on the document itself - bounding boxes colour-coded by confidence level, with click-to-focus between the document viewer and the form. Bounding box coordinates come back from Document AI and would need to be stored alongside the extraction result and exposed to a UI viewer component.
-
-It could also be worth visually marking AI-extracted fields in the Fiori form (e.g. a distinct badge or icon) so users always know which values were filled by the model. This distinction could persist until a human explicitly confirms or edits the value.
-
-A further possibility is a human-in-the-loop confirmation step: the user reviews the extracted fields, corrects any errors, and explicitly confirms the result. This confirmed payload could be submitted back to Document AI as ground-truth feedback to activate the [instant learning](https://help.sap.com/docs/document-ai/sap-document-ai/instant-learning?locale=en-US) feature, improving model accuracy for that schema over time.
-
-**Tracking issue:** [#109](https://github.com/cap-java/cds-ai/issues/109)
-
-### 7. Document AI Outbound Channels - Push-Based Result Delivery
-
-Document AI supports outbound channels at the schema level: notification channels (status pushes) and extension channels (callbacks triggered after prediction). One option worth exploring is registering the plugin as a target so Document AI pushes results to it directly, eliminating the need to poll. The `DocumentAiClient` interface and `ExtractionService.updateExtractionResult()` are already the right place to plug this in.
-
-**Tracking issue:** [#106](https://github.com/cap-java/cds-ai/issues/106)
-
-### 8. Custom Schema Synchronisation _(S4)_
-
-One possible enhancement is to let developers define custom document type extraction schemas in the CDS model via annotations, with the plugin syncing these to Document AI automatically at deploy time or startup - removing the need for manual configuration in the Document AI workspace.
-
-**Tracking issue:** [#107](https://github.com/cap-java/cds-ai/issues/107)
-
-### 9. Customisable Extraction Templates
-
-Right now, every submission requires constructing the Document AI `options` JSON by hand. A template mechanism could let developers define named configurations - document type, schema ID, field selection, confidence thresholds - declaratively in the CDS model or `application.yaml`, and just reference the template name at submission time.
-
-**Tracking issue:** [#116](https://github.com/cap-java/cds-ai/issues/116)
-
-### 10. Local Mock Mode _(S7)_
-
-A mock mode returning configurable static extraction results without a real Document AI binding would make local development more convenient.
-
-**Tracking issue:** [#102](https://github.com/cap-java/cds-ai/issues/102)
-
-### 11. Configurable result delivery channels
-
-The plugin currently delivers results only via the `DocumentExtractionResult` CDS event. It could be worth exploring additional delivery channels so consuming applications can receive results through whatever channel fits their architecture.
-
-**Tracking issue:** [#115](https://github.com/cap-java/cds-ai/issues/115)
-
-### 12. `cds add document-ai` Scaffold Command _(S9)_
-
-A `cds add document-ai` CLI command could set up the Document AI service binding in `mta.yaml`, enable the persistent outbox in `application.yaml`, and generate boilerplate handler stubs - lowering the barrier significantly for new adopters.
-
-**Tracking issue:** [#105](https://github.com/cap-java/cds-ai/issues/105)
-
-### 13. OData API Support _(S10)_
-
-For applications on higher-tier plans, it could be worth exploring the Document AI OData API as an alternative transport, enabling richer querying and result navigation.
-
-**Tracking issue:** [#99](https://github.com/cap-java/cds-ai/issues/99)
-
-### 14. Terminal Job Cleanup _(S11)_
-
-A configurable retention policy that deletes or archives `ExtractionJob` rows after they've been in `DONE` or `FAILED` status for a set period would prevent unbounded table growth on high-volume deployments.
-
-**Tracking issue:** [#103](https://github.com/cap-java/cds-ai/issues/103)
-
-### 15. Malware Scanning _(S8)_
-
-It may be worth assessing whether documents should be scanned via SAP Malware Scanning Service before being forwarded to Document AI - particularly for multitenant deployments where uploaded content is less trusted.
-
-**Tracking issue:** [#104](https://github.com/cap-java/cds-ai/issues/104)
-
-
----
-
-The plugin is stable at MVP level and provides a solid foundation for further development. The core extraction lifecycle, persistence model, and event-based architecture are in place. The suggestions in this document reflect the state of the project at the time of handover and are intended to provide context, not prescribe a roadmap.
diff --git a/cds-feature-sap-document-ai/package-lock.json b/cds-feature-sap-document-ai/package-lock.json
deleted file mode 100644
index 8b5bf8e..0000000
--- a/cds-feature-sap-document-ai/package-lock.json
+++ /dev/null
@@ -1,1861 +0,0 @@
-{
- "name": "cds-feature-sap-document-ai-cds",
- "version": "1.0.0",
- "lockfileVersion": 3,
- "requires": true,
- "packages": {
- "": {
- "name": "cds-feature-sap-document-ai-cds",
- "version": "1.0.0",
- "devDependencies": {
- "@sap/cds-dk": "9.9.1"
- }
- },
- "node_modules/@sap/cds-dk": {
- "version": "9.9.1",
- "resolved": "https://registry.npmjs.org/@sap/cds-dk/-/cds-dk-9.9.1.tgz",
- "integrity": "sha512-cZoHI/ZhEVffmLo2k9Y/HMR5X+aGCpk60PwJJcZgoat8Kwk6dDl3mUDERhZORQUhp9FwOiyWmNujmNCV8YWWCg==",
- "dev": true,
- "hasShrinkwrap": true,
- "license": "SEE LICENSE IN LICENSE",
- "dependencies": {
- "@cap-js/asyncapi": "^1.0.0",
- "@cap-js/openapi": "^1.0.0",
- "@sap/cds": "^8.3 || ^9",
- "@sap/cds-mtxs": "^2 || ^3",
- "@sap/hdi-deploy": "^5",
- "express": "^4.22.1 || ^5",
- "hdb": "^2.0.0",
- "livereload-js": "^4.0.1",
- "mustache": "^4.0.1",
- "ws": "^8.4.2",
- "xml-js": "^1.6.11",
- "yaml": "^2"
- },
- "bin": {
- "cds": "bin/cds.js",
- "cds-ts": "bin/cds-ts.js",
- "cds-tsx": "bin/cds-tsx.js"
- },
- "optionalDependencies": {
- "@cap-js/sqlite": ">=1"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/@cap-js/asyncapi": {
- "version": "1.0.3",
- "integrity": "sha512-vZSWKAe+3qfvZDXV5SSFiObGWmqyS9MDyEADb5PLVT8kzO39qGaSDPv/GzI/gwvRfCayGAjU4ThiBKrFA7Gclg==",
- "dev": true,
- "license": "SEE LICENSE IN LICENSE",
- "peerDependencies": {
- "@sap/cds": ">=7.6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/@cap-js/db-service": {
- "version": "2.11.0",
- "integrity": "sha512-sl33LcxZYAJgMCQZDw4lMGe4kWYq6685Xc6ze4qcoM+rd6aqiyVsSC6C7XH5yerXs7cVHhRC+Dgo8AsaapFzlQ==",
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "dependencies": {
- "generic-pool": "^3.9.0"
- },
- "peerDependencies": {
- "@sap/cds": ">=9.8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/@cap-js/openapi": {
- "version": "1.4.0",
- "integrity": "sha512-/LRSwn4SDxAi3qKwl09zoOhEVGaPGlYOPz/0S3UBnaMJVvaLyPiKbbaOtOnrrgulUX5OXt+ujPIQznOsbTzuAw==",
- "dev": true,
- "license": "Apache-2.0",
- "dependencies": {
- "pluralize": "^8.0.0"
- },
- "peerDependencies": {
- "@sap/cds": ">=7.6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/@cap-js/sqlite": {
- "version": "2.4.0",
- "integrity": "sha512-Ao+AzIN6BWHNpLbGxAzF79OezFNHzDG2srwiBABs0FYxIxEGkc2hg6ETo79pTTt66gcWtx7pWh/N9xk2M6SFBQ==",
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "dependencies": {
- "@cap-js/db-service": "^2.11.0",
- "better-sqlite3": "^12.0.0"
- },
- "peerDependencies": {
- "@sap/cds": ">=9.8",
- "sql.js": "^1.13.0"
- },
- "peerDependenciesMeta": {
- "sql.js": {
- "optional": true
- }
- }
- },
- "node_modules/@sap/cds-dk/node_modules/@eslint/js": {
- "version": "10.0.1",
- "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "engines": {
- "node": "^20.19.0 || ^22.13.0 || >=24"
- },
- "funding": {
- "url": "https://eslint.org/donate"
- },
- "peerDependencies": {
- "eslint": "^10.0.0"
- },
- "peerDependenciesMeta": {
- "eslint": {
- "optional": true
- }
- }
- },
- "node_modules/@sap/cds-dk/node_modules/@sap/cds": {
- "version": "9.9.1",
- "integrity": "sha512-GqdsBsRkZThhpOyzj8ihf/jDmf/2zprZFgaun6ZymUw4/ahzjK/bbdd6eQ8txDuv88pnUl2HPFjvUVq3O/6hCA==",
- "dev": true,
- "license": "SEE LICENSE IN LICENSE",
- "dependencies": {
- "@sap/cds-compiler": "^6.4",
- "@sap/cds-fiori": "^2",
- "express": "^4.22.1 || ^5",
- "yaml": "^2"
- },
- "bin": {
- "cds-deploy": "bin/deploy.js",
- "cds-serve": "bin/serve.js"
- },
- "engines": {
- "node": ">=20"
- },
- "peerDependencies": {
- "@eslint/js": "^9 || ^10",
- "tar": "^7.5.6"
- },
- "peerDependenciesMeta": {
- "tar": {
- "optional": true
- }
- }
- },
- "node_modules/@sap/cds-dk/node_modules/@sap/cds-compiler": {
- "version": "6.9.1",
- "integrity": "sha512-j5C61t1mPhMW3vpD3LIRVn40DMiIF2XahOPeJIPjRpUiGMbQPdVreqAhiRHg39GYhSK6etlr5/MIx3a2ljtqHg==",
- "dev": true,
- "license": "SEE LICENSE IN LICENSE",
- "bin": {
- "cdsc": "bin/cdsc.js",
- "cdshi": "bin/cdshi.js",
- "cdsse": "bin/cdsse.js"
- },
- "engines": {
- "node": ">=20"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/@sap/cds-fiori": {
- "version": "2.3.0",
- "integrity": "sha512-6oWov+DSpFrSTgxXR0dZhak6aZ/IVRZvaHERMi0EgSTzIJdlvZlpw3Kf18ePMcTrRrtEXwD4RIjKt8pbs0g2Hg==",
- "dev": true,
- "license": "SEE LICENSE IN LICENSE",
- "peerDependencies": {
- "@sap/cds": ">=8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/@sap/cds-mtxs": {
- "version": "3.9.0",
- "integrity": "sha512-U9H9NXQxlxSNwSD/6U59+Egn9LIE2SRdu8i5bZqEG2GB4xEU6csduy0kY4EWvi8XXD8onbFSgw4AA9SB4pN0Yg==",
- "dev": true,
- "license": "SEE LICENSE IN LICENSE",
- "dependencies": {
- "@sap/hdi-deploy": "^5"
- },
- "bin": {
- "cds-mtx": "bin/cds-mtx.js",
- "cds-mtx-migrate": "bin/cds-mtx-migrate.js"
- },
- "peerDependencies": {
- "@sap/cds": ">=9"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/@sap/hdi": {
- "version": "4.8.0",
- "integrity": "sha512-tkJmY2ffm6mt4/LFwRBihlQkMxNAXa3ngvRe2N/6+qLIsUNdrH/M03S5mkygXq56K+KoVVZYuradajCusMWwsw==",
- "dev": true,
- "license": "See LICENSE file",
- "dependencies": {
- "async": "^3.2.3"
- },
- "engines": {
- "node": ">=18"
- },
- "peerDependencies": {
- "@sap/hana-client": "^2 >= 2.5",
- "hdb": "^2 || ^0"
- },
- "peerDependenciesMeta": {
- "@sap/hana-client": {
- "optional": true
- },
- "hdb": {
- "optional": true
- }
- }
- },
- "node_modules/@sap/cds-dk/node_modules/@sap/hdi-deploy": {
- "version": "5.6.1",
- "integrity": "sha512-+qQ7qwG8lko303L5yRj2dud/nDAVuVblV/mmzJT44oPbF0Nry18eD2LUS23hFeuxjRa7rYK5YKQ8ffGgWxVrYQ==",
- "dev": true,
- "license": "See LICENSE file",
- "dependencies": {
- "@sap/hdi": "^4.8.0",
- "@sap/xsenv": "^6.0.0",
- "async": "^3.2.6",
- "dotenv": "^16.4.5",
- "handlebars": "^4.7.8",
- "micromatch": "^4.0.8"
- },
- "engines": {
- "node": ">=18.x"
- },
- "peerDependencies": {
- "@sap/hana-client": "^2 >= 2.6",
- "hdb": "^2 || ^0"
- },
- "peerDependenciesMeta": {
- "@sap/hana-client": {
- "optional": true
- },
- "hdb": {
- "optional": true
- }
- }
- },
- "node_modules/@sap/cds-dk/node_modules/@sap/xsenv": {
- "version": "6.2.0",
- "integrity": "sha512-8jrsX1OAM3YUqGU+4deggqvkxrBrHAPYEllBX0YJfWNffgxSZKHG75bRd/RV6hxPwulPL0DeHfd2eYJMeY5gdw==",
- "dev": true,
- "license": "SEE LICENSE IN LICENSE file",
- "dependencies": {
- "debug": "4.4.3",
- "node-cache": "^5.1.2",
- "verror": "1.10.1"
- },
- "engines": {
- "node": "^20.0.0 || ^22.0.0 || ^24.0.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/accepts": {
- "version": "2.0.0",
- "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "mime-types": "^3.0.0",
- "negotiator": "^1.0.0"
- },
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/assert-plus": {
- "version": "1.0.0",
- "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=0.8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/async": {
- "version": "3.2.6",
- "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@sap/cds-dk/node_modules/base64-js": {
- "version": "1.5.1",
- "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "license": "MIT",
- "optional": true
- },
- "node_modules/@sap/cds-dk/node_modules/better-sqlite3": {
- "version": "12.9.0",
- "integrity": "sha512-wqUv4Gm3toFpHDQmaKD4QhZm3g1DjUBI0yzS4UBl6lElUmXFYdTQmmEDpAFa5o8FiFiymURypEnfVHzILKaxqQ==",
- "dev": true,
- "hasInstallScript": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "bindings": "^1.5.0",
- "prebuild-install": "^7.1.1"
- },
- "engines": {
- "node": "20.x || 22.x || 23.x || 24.x || 25.x"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/bindings": {
- "version": "1.5.0",
- "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "file-uri-to-path": "1.0.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/bl": {
- "version": "4.1.0",
- "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "buffer": "^5.5.0",
- "inherits": "^2.0.4",
- "readable-stream": "^3.4.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/body-parser": {
- "version": "2.2.2",
- "integrity": "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "bytes": "^3.1.2",
- "content-type": "^1.0.5",
- "debug": "^4.4.3",
- "http-errors": "^2.0.0",
- "iconv-lite": "^0.7.0",
- "on-finished": "^2.4.1",
- "qs": "^6.14.1",
- "raw-body": "^3.0.1",
- "type-is": "^2.0.1"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/braces": {
- "version": "3.0.3",
- "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "fill-range": "^7.1.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/buffer": {
- "version": "5.7.1",
- "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "base64-js": "^1.3.1",
- "ieee754": "^1.1.13"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/bytes": {
- "version": "3.1.2",
- "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/call-bind-apply-helpers": {
- "version": "1.0.2",
- "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "es-errors": "^1.3.0",
- "function-bind": "^1.1.2"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/call-bound": {
- "version": "1.0.4",
- "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "call-bind-apply-helpers": "^1.0.2",
- "get-intrinsic": "^1.3.0"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/chownr": {
- "version": "1.1.4",
- "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
- "dev": true,
- "license": "ISC",
- "optional": true
- },
- "node_modules/@sap/cds-dk/node_modules/clone": {
- "version": "2.1.2",
- "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=0.8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/content-disposition": {
- "version": "1.1.0",
- "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/content-type": {
- "version": "1.0.5",
- "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/cookie": {
- "version": "0.7.2",
- "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/cookie-signature": {
- "version": "1.2.2",
- "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=6.6.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/core-util-is": {
- "version": "1.0.2",
- "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@sap/cds-dk/node_modules/debug": {
- "version": "4.4.3",
- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "ms": "^2.1.3"
- },
- "engines": {
- "node": ">=6.0"
- },
- "peerDependenciesMeta": {
- "supports-color": {
- "optional": true
- }
- }
- },
- "node_modules/@sap/cds-dk/node_modules/decompress-response": {
- "version": "6.0.0",
- "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "mimic-response": "^3.1.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/deep-extend": {
- "version": "0.6.0",
- "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "engines": {
- "node": ">=4.0.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/depd": {
- "version": "2.0.0",
- "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/detect-libc": {
- "version": "2.1.2",
- "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/dotenv": {
- "version": "16.6.1",
- "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
- "dev": true,
- "license": "BSD-2-Clause",
- "engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://dotenvx.com"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/dunder-proto": {
- "version": "1.0.1",
- "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "call-bind-apply-helpers": "^1.0.1",
- "es-errors": "^1.3.0",
- "gopd": "^1.2.0"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/ee-first": {
- "version": "1.1.1",
- "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@sap/cds-dk/node_modules/encodeurl": {
- "version": "2.0.0",
- "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/end-of-stream": {
- "version": "1.4.5",
- "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "once": "^1.4.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/es-define-property": {
- "version": "1.0.1",
- "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/es-errors": {
- "version": "1.3.0",
- "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/es-object-atoms": {
- "version": "1.1.1",
- "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "es-errors": "^1.3.0"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/escape-html": {
- "version": "1.0.3",
- "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@sap/cds-dk/node_modules/etag": {
- "version": "1.8.1",
- "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/expand-template": {
- "version": "2.0.3",
- "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",
- "dev": true,
- "license": "(MIT OR WTFPL)",
- "optional": true,
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/express": {
- "version": "5.2.1",
- "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "accepts": "^2.0.0",
- "body-parser": "^2.2.1",
- "content-disposition": "^1.0.0",
- "content-type": "^1.0.5",
- "cookie": "^0.7.1",
- "cookie-signature": "^1.2.1",
- "debug": "^4.4.0",
- "depd": "^2.0.0",
- "encodeurl": "^2.0.0",
- "escape-html": "^1.0.3",
- "etag": "^1.8.1",
- "finalhandler": "^2.1.0",
- "fresh": "^2.0.0",
- "http-errors": "^2.0.0",
- "merge-descriptors": "^2.0.0",
- "mime-types": "^3.0.0",
- "on-finished": "^2.4.1",
- "once": "^1.4.0",
- "parseurl": "^1.3.3",
- "proxy-addr": "^2.0.7",
- "qs": "^6.14.0",
- "range-parser": "^1.2.1",
- "router": "^2.2.0",
- "send": "^1.1.0",
- "serve-static": "^2.2.0",
- "statuses": "^2.0.1",
- "type-is": "^2.0.1",
- "vary": "^1.1.2"
- },
- "engines": {
- "node": ">= 18"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/extsprintf": {
- "version": "1.4.1",
- "integrity": "sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==",
- "dev": true,
- "engines": [
- "node >=0.6.0"
- ],
- "license": "MIT"
- },
- "node_modules/@sap/cds-dk/node_modules/file-uri-to-path": {
- "version": "1.0.0",
- "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
- "dev": true,
- "license": "MIT",
- "optional": true
- },
- "node_modules/@sap/cds-dk/node_modules/fill-range": {
- "version": "7.1.1",
- "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "to-regex-range": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/finalhandler": {
- "version": "2.1.1",
- "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "debug": "^4.4.0",
- "encodeurl": "^2.0.0",
- "escape-html": "^1.0.3",
- "on-finished": "^2.4.1",
- "parseurl": "^1.3.3",
- "statuses": "^2.0.1"
- },
- "engines": {
- "node": ">= 18.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/forwarded": {
- "version": "0.2.0",
- "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/fresh": {
- "version": "2.0.0",
- "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/fs-constants": {
- "version": "1.0.0",
- "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
- "dev": true,
- "license": "MIT",
- "optional": true
- },
- "node_modules/@sap/cds-dk/node_modules/function-bind": {
- "version": "1.1.2",
- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/generic-pool": {
- "version": "3.9.0",
- "integrity": "sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "engines": {
- "node": ">= 4"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/get-intrinsic": {
- "version": "1.3.0",
- "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "call-bind-apply-helpers": "^1.0.2",
- "es-define-property": "^1.0.1",
- "es-errors": "^1.3.0",
- "es-object-atoms": "^1.1.1",
- "function-bind": "^1.1.2",
- "get-proto": "^1.0.1",
- "gopd": "^1.2.0",
- "has-symbols": "^1.1.0",
- "hasown": "^2.0.2",
- "math-intrinsics": "^1.1.0"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/get-proto": {
- "version": "1.0.1",
- "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "dunder-proto": "^1.0.1",
- "es-object-atoms": "^1.0.0"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/github-from-package": {
- "version": "0.0.0",
- "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==",
- "dev": true,
- "license": "MIT",
- "optional": true
- },
- "node_modules/@sap/cds-dk/node_modules/gopd": {
- "version": "1.2.0",
- "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/handlebars": {
- "version": "4.7.9",
- "integrity": "sha512-4E71E0rpOaQuJR2A3xDZ+GM1HyWYv1clR58tC8emQNeQe3RH7MAzSbat+V0wG78LQBo6m6bzSG/L4pBuCsgnUQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "minimist": "^1.2.5",
- "neo-async": "^2.6.2",
- "source-map": "^0.6.1",
- "wordwrap": "^1.0.0"
- },
- "bin": {
- "handlebars": "bin/handlebars"
- },
- "engines": {
- "node": ">=0.4.7"
- },
- "optionalDependencies": {
- "uglify-js": "^3.1.4"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/has-symbols": {
- "version": "1.1.0",
- "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/hasown": {
- "version": "2.0.3",
- "integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "function-bind": "^1.1.2"
- },
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/hdb": {
- "version": "2.27.1",
- "integrity": "sha512-xYL/W+fq2TyGHyzm8muolQnw8tdh4+2NQ8mQP2FpLSuhfJ8l0jQNSUZoAXic7NfMEan1Jvf8V1L4blwkgTc6+A==",
- "dev": true,
- "license": "Apache-2.0",
- "dependencies": {
- "iconv-lite": "0.7.0"
- },
- "engines": {
- "node": ">= 18"
- },
- "optionalDependencies": {
- "lz4-wasm-nodejs": "0.9.2"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/hdb/node_modules/iconv-lite": {
- "version": "0.7.0",
- "integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "safer-buffer": ">= 2.1.2 < 3.0.0"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/http-errors": {
- "version": "2.0.1",
- "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "depd": "~2.0.0",
- "inherits": "~2.0.4",
- "setprototypeof": "~1.2.0",
- "statuses": "~2.0.2",
- "toidentifier": "~1.0.1"
- },
- "engines": {
- "node": ">= 0.8"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/iconv-lite": {
- "version": "0.7.2",
- "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "safer-buffer": ">= 2.1.2 < 3.0.0"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/ieee754": {
- "version": "1.2.1",
- "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "license": "BSD-3-Clause",
- "optional": true
- },
- "node_modules/@sap/cds-dk/node_modules/inherits": {
- "version": "2.0.4",
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
- "dev": true,
- "license": "ISC"
- },
- "node_modules/@sap/cds-dk/node_modules/ini": {
- "version": "1.3.8",
- "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
- "dev": true,
- "license": "ISC",
- "optional": true
- },
- "node_modules/@sap/cds-dk/node_modules/ipaddr.js": {
- "version": "1.9.1",
- "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.10"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/is-number": {
- "version": "7.0.0",
- "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=0.12.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/is-promise": {
- "version": "4.0.0",
- "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@sap/cds-dk/node_modules/livereload-js": {
- "version": "4.0.2",
- "integrity": "sha512-Fy7VwgQNiOkynYyNBTo3v9hQUhcW5pFAheJN148+DTgpShjsy/22pLHKKwDK5v0kOsZsJBK+6q1PMgLvRmrwFQ==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@sap/cds-dk/node_modules/lz4-wasm-nodejs": {
- "version": "0.9.2",
- "integrity": "sha512-hSwgJPS98q/Oe/89Y1OxzeA/UdnASG8GvldRyKa7aZyoAFCC8VPRtViBSava7wWC66WocjUwBpWau2rEmyFPsw==",
- "dev": true,
- "license": "MIT",
- "optional": true
- },
- "node_modules/@sap/cds-dk/node_modules/math-intrinsics": {
- "version": "1.1.0",
- "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/media-typer": {
- "version": "1.1.0",
- "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/merge-descriptors": {
- "version": "2.0.0",
- "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/micromatch": {
- "version": "4.0.8",
- "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "braces": "^3.0.3",
- "picomatch": "^2.3.1"
- },
- "engines": {
- "node": ">=8.6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/micromatch/node_modules/picomatch": {
- "version": "2.3.2",
- "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=8.6"
- },
- "funding": {
- "url": "https://github.com/sponsors/jonschlinkert"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/mime-db": {
- "version": "1.54.0",
- "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/mime-types": {
- "version": "3.0.2",
- "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "mime-db": "^1.54.0"
- },
- "engines": {
- "node": ">=18"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/mimic-response": {
- "version": "3.1.0",
- "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/minimist": {
- "version": "1.2.8",
- "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/mkdirp-classic": {
- "version": "0.5.3",
- "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
- "dev": true,
- "license": "MIT",
- "optional": true
- },
- "node_modules/@sap/cds-dk/node_modules/ms": {
- "version": "2.1.3",
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@sap/cds-dk/node_modules/mustache": {
- "version": "4.2.0",
- "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==",
- "dev": true,
- "license": "MIT",
- "bin": {
- "mustache": "bin/mustache"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/napi-build-utils": {
- "version": "2.0.0",
- "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==",
- "dev": true,
- "license": "MIT",
- "optional": true
- },
- "node_modules/@sap/cds-dk/node_modules/negotiator": {
- "version": "1.0.0",
- "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/neo-async": {
- "version": "2.6.2",
- "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@sap/cds-dk/node_modules/node-abi": {
- "version": "3.92.0",
- "integrity": "sha512-KdHvFWZjEKDf0cakgFjebl371GPsISX2oZHcuyKqM7DtogIsHrqKeLTo8wBHxaXRAQlY2PsPlZmfo+9ZCxEREQ==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "semver": "^7.3.5"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/node-cache": {
- "version": "5.1.2",
- "integrity": "sha512-t1QzWwnk4sjLWaQAS8CHgOJ+RAfmHpxFWmc36IWTiWHQfs0w5JDMBS1b1ZxQteo0vVVuWJvIUKHDkkeK7vIGCg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "clone": "2.x"
- },
- "engines": {
- "node": ">= 8.0.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/object-inspect": {
- "version": "1.13.4",
- "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/on-finished": {
- "version": "2.4.1",
- "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "ee-first": "1.1.1"
- },
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/once": {
- "version": "1.4.0",
- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
- "dev": true,
- "license": "ISC",
- "dependencies": {
- "wrappy": "1"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/parseurl": {
- "version": "1.3.3",
- "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/path-to-regexp": {
- "version": "8.4.2",
- "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==",
- "dev": true,
- "license": "MIT",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/pluralize": {
- "version": "8.0.0",
- "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/prebuild-install": {
- "version": "7.1.3",
- "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==",
- "deprecated": "No longer maintained. Please contact the author of the relevant native addon; alternatives are available.",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "detect-libc": "^2.0.0",
- "expand-template": "^2.0.3",
- "github-from-package": "0.0.0",
- "minimist": "^1.2.3",
- "mkdirp-classic": "^0.5.3",
- "napi-build-utils": "^2.0.0",
- "node-abi": "^3.3.0",
- "pump": "^3.0.0",
- "rc": "^1.2.7",
- "simple-get": "^4.0.0",
- "tar-fs": "^2.0.0",
- "tunnel-agent": "^0.6.0"
- },
- "bin": {
- "prebuild-install": "bin.js"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/proxy-addr": {
- "version": "2.0.7",
- "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "forwarded": "0.2.0",
- "ipaddr.js": "1.9.1"
- },
- "engines": {
- "node": ">= 0.10"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/pump": {
- "version": "3.0.4",
- "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "end-of-stream": "^1.1.0",
- "once": "^1.3.1"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/qs": {
- "version": "6.15.1",
- "integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==",
- "dev": true,
- "license": "BSD-3-Clause",
- "dependencies": {
- "side-channel": "^1.1.0"
- },
- "engines": {
- "node": ">=0.6"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/range-parser": {
- "version": "1.2.1",
- "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/raw-body": {
- "version": "3.0.2",
- "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "bytes": "~3.1.2",
- "http-errors": "~2.0.1",
- "iconv-lite": "~0.7.0",
- "unpipe": "~1.0.0"
- },
- "engines": {
- "node": ">= 0.10"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/rc": {
- "version": "1.2.8",
- "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
- "dev": true,
- "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
- "optional": true,
- "dependencies": {
- "deep-extend": "^0.6.0",
- "ini": "~1.3.0",
- "minimist": "^1.2.0",
- "strip-json-comments": "~2.0.1"
- },
- "bin": {
- "rc": "cli.js"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/readable-stream": {
- "version": "3.6.2",
- "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "inherits": "^2.0.3",
- "string_decoder": "^1.1.1",
- "util-deprecate": "^1.0.1"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/router": {
- "version": "2.2.0",
- "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "debug": "^4.4.0",
- "depd": "^2.0.0",
- "is-promise": "^4.0.0",
- "parseurl": "^1.3.3",
- "path-to-regexp": "^8.0.0"
- },
- "engines": {
- "node": ">= 18"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/safe-buffer": {
- "version": "5.2.1",
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "license": "MIT",
- "optional": true
- },
- "node_modules/@sap/cds-dk/node_modules/safer-buffer": {
- "version": "2.1.2",
- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@sap/cds-dk/node_modules/sax": {
- "version": "1.6.0",
- "integrity": "sha512-6R3J5M4AcbtLUdZmRv2SygeVaM7IhrLXu9BmnOGmmACak8fiUtOsYNWUS4uK7upbmHIBbLBeFeI//477BKLBzA==",
- "dev": true,
- "license": "BlueOak-1.0.0",
- "engines": {
- "node": ">=11.0.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/semver": {
- "version": "7.7.4",
- "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
- "dev": true,
- "license": "ISC",
- "optional": true,
- "bin": {
- "semver": "bin/semver.js"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/send": {
- "version": "1.2.1",
- "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "debug": "^4.4.3",
- "encodeurl": "^2.0.0",
- "escape-html": "^1.0.3",
- "etag": "^1.8.1",
- "fresh": "^2.0.0",
- "http-errors": "^2.0.1",
- "mime-types": "^3.0.2",
- "ms": "^2.1.3",
- "on-finished": "^2.4.1",
- "range-parser": "^1.2.1",
- "statuses": "^2.0.2"
- },
- "engines": {
- "node": ">= 18"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/serve-static": {
- "version": "2.2.1",
- "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "encodeurl": "^2.0.0",
- "escape-html": "^1.0.3",
- "parseurl": "^1.3.3",
- "send": "^1.2.0"
- },
- "engines": {
- "node": ">= 18"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/express"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/setprototypeof": {
- "version": "1.2.0",
- "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
- "dev": true,
- "license": "ISC"
- },
- "node_modules/@sap/cds-dk/node_modules/side-channel": {
- "version": "1.1.0",
- "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "es-errors": "^1.3.0",
- "object-inspect": "^1.13.3",
- "side-channel-list": "^1.0.0",
- "side-channel-map": "^1.0.1",
- "side-channel-weakmap": "^1.0.2"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/side-channel-list": {
- "version": "1.0.1",
- "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "es-errors": "^1.3.0",
- "object-inspect": "^1.13.4"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/side-channel-map": {
- "version": "1.0.1",
- "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "call-bound": "^1.0.2",
- "es-errors": "^1.3.0",
- "get-intrinsic": "^1.2.5",
- "object-inspect": "^1.13.3"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/side-channel-weakmap": {
- "version": "1.0.2",
- "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "call-bound": "^1.0.2",
- "es-errors": "^1.3.0",
- "get-intrinsic": "^1.2.5",
- "object-inspect": "^1.13.3",
- "side-channel-map": "^1.0.1"
- },
- "engines": {
- "node": ">= 0.4"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/simple-concat": {
- "version": "1.0.1",
- "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "license": "MIT",
- "optional": true
- },
- "node_modules/@sap/cds-dk/node_modules/simple-get": {
- "version": "4.0.1",
- "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
- "dev": true,
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "decompress-response": "^6.0.0",
- "once": "^1.3.1",
- "simple-concat": "^1.0.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/source-map": {
- "version": "0.6.1",
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
- "dev": true,
- "license": "BSD-3-Clause",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/statuses": {
- "version": "2.0.2",
- "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/string_decoder": {
- "version": "1.3.0",
- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "safe-buffer": "~5.2.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/strip-json-comments": {
- "version": "2.0.1",
- "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/tar-fs": {
- "version": "2.1.4",
- "integrity": "sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "chownr": "^1.1.1",
- "mkdirp-classic": "^0.5.2",
- "pump": "^3.0.0",
- "tar-stream": "^2.1.4"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/tar-stream": {
- "version": "2.2.0",
- "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "bl": "^4.0.3",
- "end-of-stream": "^1.4.1",
- "fs-constants": "^1.0.0",
- "inherits": "^2.0.3",
- "readable-stream": "^3.1.1"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/to-regex-range": {
- "version": "5.0.1",
- "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "is-number": "^7.0.0"
- },
- "engines": {
- "node": ">=8.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/toidentifier": {
- "version": "1.0.1",
- "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=0.6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/tunnel-agent": {
- "version": "0.6.0",
- "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "dependencies": {
- "safe-buffer": "^5.0.1"
- },
- "engines": {
- "node": "*"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/type-is": {
- "version": "2.0.1",
- "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "content-type": "^1.0.5",
- "media-typer": "^1.1.0",
- "mime-types": "^3.0.0"
- },
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/uglify-js": {
- "version": "3.19.3",
- "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==",
- "dev": true,
- "license": "BSD-2-Clause",
- "optional": true,
- "bin": {
- "uglifyjs": "bin/uglifyjs"
- },
- "engines": {
- "node": ">=0.8.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/unpipe": {
- "version": "1.0.0",
- "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/util-deprecate": {
- "version": "1.0.2",
- "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
- "dev": true,
- "license": "MIT",
- "optional": true
- },
- "node_modules/@sap/cds-dk/node_modules/vary": {
- "version": "1.1.2",
- "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/verror": {
- "version": "1.10.1",
- "integrity": "sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "assert-plus": "^1.0.0",
- "core-util-is": "1.0.2",
- "extsprintf": "^1.2.0"
- },
- "engines": {
- "node": ">=0.6.0"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/wordwrap": {
- "version": "1.0.0",
- "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==",
- "dev": true,
- "license": "MIT"
- },
- "node_modules/@sap/cds-dk/node_modules/wrappy": {
- "version": "1.0.2",
- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
- "dev": true,
- "license": "ISC"
- },
- "node_modules/@sap/cds-dk/node_modules/ws": {
- "version": "8.20.0",
- "integrity": "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=10.0.0"
- },
- "peerDependencies": {
- "bufferutil": "^4.0.1",
- "utf-8-validate": ">=5.0.2"
- },
- "peerDependenciesMeta": {
- "bufferutil": {
- "optional": true
- },
- "utf-8-validate": {
- "optional": true
- }
- }
- },
- "node_modules/@sap/cds-dk/node_modules/xml-js": {
- "version": "1.6.11",
- "integrity": "sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "sax": "^1.2.4"
- },
- "bin": {
- "xml-js": "bin/cli.js"
- }
- },
- "node_modules/@sap/cds-dk/node_modules/yaml": {
- "version": "2.8.4",
- "integrity": "sha512-ml/JPOj9fOQK8RNnWojA67GbZ0ApXAUlN2UQclwv2eVgTgn7O9gg9o7paZWKMp4g0H3nTLtS9LVzhkpOFIKzog==",
- "dev": true,
- "license": "ISC",
- "bin": {
- "yaml": "bin.mjs"
- },
- "engines": {
- "node": ">= 14.6"
- },
- "funding": {
- "url": "https://github.com/sponsors/eemeli"
- }
- }
- }
-}
diff --git a/cds-feature-sap-document-ai/package.json b/cds-feature-sap-document-ai/package.json
deleted file mode 100644
index e2011fa..0000000
--- a/cds-feature-sap-document-ai/package.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "cds-feature-sap-document-ai-cds",
- "version": "1.0.0",
- "private": true,
- "description": "CDS build dependencies for cds-feature-sap-document-ai. Pulled in by Maven (cds-maven-plugin npm goal) so a fresh `mvn install` is hermetic and does not require a globally installed @sap/cds-dk.",
- "devDependencies": {
- "@sap/cds-dk": "9.9.1"
- }
-}
diff --git a/cds-feature-sap-document-ai/pom.xml b/cds-feature-sap-document-ai/pom.xml
deleted file mode 100644
index 484cf19..0000000
--- a/cds-feature-sap-document-ai/pom.xml
+++ /dev/null
@@ -1,155 +0,0 @@
-
-
- 4.0.0
-
-
- com.sap.cds
- cds-ai-root
- ${revision}
-
-
- cds-feature-sap-document-ai
- jar
-
- CDS Feature SAP Document AI
- SAP Document AI (Document Information Extraction) integration for CAP Java
-
-
-
- com.sap.cds
- cds-services-api
-
-
-
- com.sap.cds
- cds-services-utils
-
-
-
- com.sap.cds
- cds4j-core
- ${cds.services.version}
- provided
-
-
-
- com.sap.cloud.sdk.cloudplatform
- connectivity-apache-httpclient5
-
-
-
-
- com.sap.cds
- cds-services-impl
- test
-
-
-
- org.awaitility
- awaitility
- 4.2.2
- test
-
-
-
-
- ${project.artifactId}
-
-
- com.sap.cds
- cds-maven-plugin
-
-
- cds.install-node
-
- install-node
-
-
-
- cds.npm-ci
-
- npm
-
-
- ci
-
-
-
- cds.build
-
- cds
-
-
- ./src/main/resources/cds/com.sap.cds/sap-document-ai
-
- build --for java --src ./ --dest ../../../../../../gen/srv
-
-
-
-
- cds.generate
-
- generate
-
-
- com.sap.cds.feature.documentai.generated.cds4j
- ${project.basedir}/src/gen/srv/src/main/resources/edmx/csn.json
-
- sap.document.ai.**
-
-
-
-
-
-
-
- maven-clean-plugin
-
-
-
- ./
-
- .flattened-pom.xml
-
-
-
-
-
-
- auto-clean
-
- clean
-
- clean
-
-
-
-
-
- org.jacoco
- jacoco-maven-plugin
-
-
- **/feature/documentai/generated/**
-
-
-
-
- jacoco-initialize
-
- prepare-agent
-
-
-
- jacoco-site-report
-
- report
-
- verify
-
-
-
-
-
-
-
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/configuration/DocumentAiServiceConfiguration.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/configuration/DocumentAiServiceConfiguration.java
deleted file mode 100644
index 1917294..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/configuration/DocumentAiServiceConfiguration.java
+++ /dev/null
@@ -1,179 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.configuration;
-
-import com.sap.cds.feature.documentai.handlers.DocumentSubmissionHandler;
-import com.sap.cds.feature.documentai.handlers.ExtractionPollingHandler;
-import com.sap.cds.feature.documentai.service.DefaultDocumentAiProcessingService;
-import com.sap.cds.feature.documentai.service.DocumentAiProcessingService;
-import com.sap.cds.feature.documentai.service.ExtractionServiceImpl;
-import com.sap.cds.feature.documentai.service.client.DefaultDocumentAiClient;
-import com.sap.cds.feature.documentai.service.client.DocumentAiClient;
-import com.sap.cds.services.ServiceCatalog;
-import com.sap.cds.services.environment.CdsEnvironment;
-import com.sap.cds.services.outbox.OutboxService;
-import com.sap.cds.services.persistence.PersistenceService;
-import com.sap.cds.services.runtime.CdsRuntime;
-import com.sap.cds.services.runtime.CdsRuntimeConfiguration;
-import com.sap.cds.services.runtime.CdsRuntimeConfigurer;
-import com.sap.cds.services.utils.environment.ServiceBindingUtils;
-import com.sap.cloud.environment.servicebinding.api.ServiceBinding;
-import com.sap.cloud.sdk.cloudplatform.connectivity.*;
-import java.time.Duration;
-import java.util.Optional;
-import org.apache.hc.client5.http.classic.HttpClient;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * CDS plugin configuration that wires up all Document AI services and event handlers at runtime.
- *
- * Implements {@link CdsRuntimeConfiguration} so it is picked up automatically by the CDS runtime
- * via the Java {@code ServiceLoader} mechanism (declared in {@code
- * META-INF/services/com.sap.cds.services.runtime.CdsRuntimeConfiguration}).
- *
- *
Responsibilities:
- *
- *
- * Registers {@link ExtractionServiceImpl} as a CDS service.
- * Resolves the DIE service binding from the environment and builds an authenticated {@link
- * DefaultDocumentAiClient} via the SAP Cloud SDK destination API.
- * Wires all dependencies into {@link ExtractionServiceImpl} and registers the {@link
- * DocumentSubmissionHandler} and (when a binding is present) the {@link
- * ExtractionPollingHandler}.
- *
- */
-public class DocumentAiServiceConfiguration implements CdsRuntimeConfiguration {
-
- private static final Logger logger =
- LoggerFactory.getLogger(DocumentAiServiceConfiguration.class);
-
- private ExtractionServiceImpl extractionService;
-
- static {
- OAuth2ServiceBindingDestinationLoader.registerPropertySupplier(
- options ->
- ServiceBindingUtils.matches(
- options.getServiceBinding(),
- DefaultDocumentAiProcessingService.SAP_DOCUMENT_AI_SERVICE_LABEL),
- DefaultOAuth2PropertySupplier::new);
- }
-
- /**
- * Registers {@link ExtractionServiceImpl} as a CDS service so it is available in the service
- * catalog for injection into event handlers.
- */
- @Override
- public void services(CdsRuntimeConfigurer configurer) {
- extractionService = new ExtractionServiceImpl();
- configurer.service(extractionService);
- }
-
- /**
- * Resolves runtime dependencies and registers all plugin event handlers.
- *
- * {@link DocumentSubmissionHandler} is always registered. {@link ExtractionPollingHandler} is
- * only registered when a DIE service binding is found and a {@link DocumentAiClient} can be
- * built; without a binding the plugin accepts extraction events but leaves jobs as {@code
- * PENDING}.
- */
- @Override
- public void eventHandlers(CdsRuntimeConfigurer configurer) {
- CdsRuntime runtime = configurer.getCdsRuntime();
- ServiceCatalog serviceCatalog = runtime.getServiceCatalog();
-
- // framework-managed dependency
- PersistenceService persistenceService =
- serviceCatalog.getService(PersistenceService.class, PersistenceService.DEFAULT_NAME);
-
- // internal
- DocumentAiClient documentAiClient = buildDocumentAi(runtime.getEnvironment());
- DocumentAiProcessingService documentAiProcessingService =
- new DefaultDocumentAiProcessingService(documentAiClient);
-
- OutboxService outboxService =
- serviceCatalog.getService(OutboxService.class, OutboxService.PERSISTENT_UNORDERED_NAME);
-
- if (outboxService == null) {
- logger.warn(
- "[sap-document-ai] Persistent outbox not available — polling scheduler disabled. Ensure cds.outbox.persistent is configured.");
- }
-
- int intervalSeconds =
- runtime
- .getEnvironment()
- .getProperty(
- "cds.document-ai.polling.interval-seconds",
- Integer.class,
- ExtractionPollingHandler.DEFAULT_POLL_INTERVAL_SECONDS);
- Duration pollDelay = Duration.ofSeconds(intervalSeconds);
-
- extractionService.init(
- persistenceService, documentAiProcessingService, outboxService, pollDelay);
-
- configurer.eventHandler(new DocumentSubmissionHandler(extractionService));
-
- // polling handler — only registered when a DIE binding is present
- if (documentAiClient != null) {
- configurer.eventHandler(
- new ExtractionPollingHandler(
- persistenceService,
- extractionService,
- documentAiClient,
- outboxService,
- runtime,
- pollDelay));
- }
- }
-
- /**
- * Attempts to build a {@link DocumentAiClient} from the first DIE service binding found in the
- * environment.
- *
- *
If no binding is present, or if the Cloud SDK destination cannot be constructed, {@code
- * null} is returned and extraction is effectively disabled until a binding becomes available.
- *
- * @param environment the CDS runtime environment used to look up service bindings
- * @return a configured {@link DocumentAiClient}, or {@code null} if unavailable
- */
- static DocumentAiClient buildDocumentAi(CdsEnvironment environment) {
- Optional optionalBinding =
- environment
- .getServiceBindings()
- .filter(
- b ->
- ServiceBindingUtils.matches(
- b, DefaultDocumentAiProcessingService.SAP_DOCUMENT_AI_SERVICE_LABEL))
- .findFirst();
-
- if (optionalBinding.isEmpty()) {
- logger.warn("[sap-document-ai] No Document AI service binding found, extraction disabled.");
- return null;
- }
-
- ServiceBinding binding = optionalBinding.get();
- logger.info(
- "[sap-document-ai] Using Document AI binding '{}', plan '{}'",
- binding.getName().orElse("unknown"),
- binding.getServicePlan().orElse("unknown"));
-
- try {
- HttpDestination httpDestination =
- ServiceBindingDestinationLoader.defaultLoaderChain()
- .getDestination(
- ServiceBindingDestinationOptions.forService(binding)
- .onBehalfOf(OnBehalfOf.TECHNICAL_USER_CURRENT_TENANT)
- .build());
- HttpClient httpClient = ApacheHttpClient5Accessor.getHttpClient(httpDestination);
- logger.info(
- "[sap-document-ai] Document AI destination created successfully, url={}",
- httpDestination.getUri());
- return new DefaultDocumentAiClient(httpDestination, httpClient);
- } catch (Exception e) {
- logger.warn(
- "[sap-document-ai] Failed to create Document AI destination, extraction disabled.", e);
- return null;
- }
- }
-}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/handlers/DocumentSubmissionHandler.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/handlers/DocumentSubmissionHandler.java
deleted file mode 100644
index 2e2ea40..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/handlers/DocumentSubmissionHandler.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.handlers;
-
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtraction;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtractionContext;
-import com.sap.cds.feature.documentai.service.ExtractionService;
-import com.sap.cds.feature.documentai.service.model.ExtractionResult;
-import com.sap.cds.services.cds.ApplicationService;
-import com.sap.cds.services.handler.EventHandler;
-import com.sap.cds.services.handler.annotations.On;
-import com.sap.cds.services.handler.annotations.ServiceName;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * CDS event handler that listens for {@code DocumentExtraction} events on any {@link
- * ApplicationService} and delegates to {@link ExtractionService} to create and submit an extraction
- * job.
- *
- * The handler is intentionally service-name-agnostic ({@code @ServiceName(value = "*")}) so
- * consumer applications can emit {@code DocumentExtraction} from their own CAP service without
- * needing to couple to the plugin's internal service name.
- */
-@ServiceName(value = "*", type = ApplicationService.class)
-public class DocumentSubmissionHandler implements EventHandler {
-
- private static final Logger logger = LoggerFactory.getLogger(DocumentSubmissionHandler.class);
-
- private final ExtractionService extractionService;
-
- public DocumentSubmissionHandler(ExtractionService extractionService) {
- this.extractionService = extractionService;
- }
-
- /**
- * Handles an incoming {@code DocumentExtraction} event.
- *
- *
Extracts the file metadata and content from the event context, calls {@link
- * ExtractionService#triggerExtraction}, and logs a warning or error if the job could not be
- * submitted immediately.
- *
- * @param context the CDS event context carrying the {@link DocumentExtraction} payload
- */
- @On(event = DocumentExtractionContext.CDS_NAME)
- public void onDocumentExtraction(DocumentExtractionContext context) {
- DocumentExtraction event = context.getData();
- String tenantId = context.getUserInfo().getTenant();
-
- logger.info(
- "[sap-document-ai] DocumentExtraction event received, fileName={}", event.getFileName());
-
- ExtractionResult result =
- extractionService.triggerExtraction(
- event.getFileName(),
- event.getMimeType(),
- event.getContent(),
- event.getOptions(),
- tenantId);
-
- if (result.status() == ExtractionResult.Status.FAILED) {
- logger.error("[sap-document-ai] Extraction failed for fileName={}", event.getFileName());
- } else if (result.status() == ExtractionResult.Status.PENDING) {
- logger.warn("[sap-document-ai] Document AI unavailable, left as PENDING");
- }
-
- context.setCompleted();
- }
-}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/handlers/ExtractionPollingHandler.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/handlers/ExtractionPollingHandler.java
deleted file mode 100644
index 0ba4a70..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/handlers/ExtractionPollingHandler.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.handlers;
-
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.ExtractionJob;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.ExtractionJob_;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentAiService_;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtractionResult;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtractionResultContext;
-import com.sap.cds.feature.documentai.service.ExtractionService;
-import com.sap.cds.feature.documentai.service.ExtractionStatus;
-import com.sap.cds.feature.documentai.service.client.DocumentAiClient;
-import com.sap.cds.feature.documentai.service.model.ExtractionData;
-import com.sap.cds.ql.Select;
-import com.sap.cds.services.cds.ApplicationService;
-import com.sap.cds.services.handler.EventHandler;
-import com.sap.cds.services.handler.annotations.On;
-import com.sap.cds.services.handler.annotations.ServiceName;
-import com.sap.cds.services.outbox.OutboxMessage;
-import com.sap.cds.services.outbox.OutboxMessageEventContext;
-import com.sap.cds.services.outbox.OutboxService;
-import com.sap.cds.services.outbox.Schedule;
-import com.sap.cds.services.persistence.PersistenceService;
-import com.sap.cds.services.runtime.CdsRuntime;
-import java.time.Duration;
-import java.util.List;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * Outbox-driven handler that polls the DIE service for the status of all active extraction jobs.
- *
- *
Registered against the persistent unordered outbox service. On each invocation it:
- *
- *
- * Queries all jobs in {@code SUBMITTED} or {@code RUNNING} status.
- * For each job, calls {@link DocumentAiClient#getJobResult} and maps the DIE status to an
- * {@link ExtractionStatus} transition.
- * Persists the new status via {@link ExtractionService#updateExtractionResult}.
- * When a job reaches {@code DONE}, emits a {@code DocumentExtractionResult} event on the
- * {@code DocumentAiService} so consumer handlers can react.
- * If jobs remain active, re-schedules itself via the outbox after {@link
- * #DEFAULT_POLL_INTERVAL_SECONDS} seconds.
- *
- *
- * This self-rescheduling pattern means polling stops automatically once all jobs reach a
- * terminal status ({@code DONE} or {@code FAILED}), avoiding unnecessary cycles.
- *
- *
The poll interval defaults to 3 seconds and can be overridden via the application property
- * {@code cds.document-ai.polling.interval-seconds}.
- */
-@ServiceName(value = ExtractionPollingHandler.OUTBOX_NAME, type = OutboxService.class)
-public class ExtractionPollingHandler implements EventHandler {
-
- static final String OUTBOX_NAME = OutboxService.PERSISTENT_UNORDERED_NAME;
- public static final String POLL_EVENT = "document-ai/poll-extraction-jobs";
- public static final String POLL_TASK_NAME = "document-ai-poll-extraction-jobs";
- public static final int DEFAULT_POLL_INTERVAL_SECONDS = 3;
-
- private static final Logger logger = LoggerFactory.getLogger(ExtractionPollingHandler.class);
-
- private final PersistenceService persistenceService;
- private final ExtractionService extractionService;
- private final DocumentAiClient documentAiClient;
- private final OutboxService outboxService;
- private final CdsRuntime runtime;
- private final Duration pollDelay;
-
- /**
- * @param persistenceService the CDS persistence service for querying active jobs
- * @param extractionService the extraction service for updating job status
- * @param documentAiClient the DIE HTTP client
- * @param outboxService the persistent outbox used to reschedule polling cycles
- * @param runtime the CDS runtime for service catalog lookups
- * @param pollDelay the delay between successive poll cycles
- */
- public ExtractionPollingHandler(
- PersistenceService persistenceService,
- ExtractionService extractionService,
- DocumentAiClient documentAiClient,
- OutboxService outboxService,
- CdsRuntime runtime,
- Duration pollDelay) {
- this.persistenceService = persistenceService;
- this.extractionService = extractionService;
- this.documentAiClient = documentAiClient;
- this.outboxService = outboxService;
- this.runtime = runtime;
- this.pollDelay = pollDelay;
- }
-
- /**
- * Outbox event handler that performs a single poll cycle across all active jobs.
- *
- * @param context the outbox message context; {@link OutboxMessageEventContext#setCompleted()} is
- * called to acknowledge the message regardless of per-job errors
- */
- @On(event = POLL_EVENT)
- public void pollExtractionJobs(OutboxMessageEventContext context) {
- List activeJobs =
- persistenceService
- .run(
- Select.from(ExtractionJob_.class)
- .where(
- j ->
- j.status()
- .eq(ExtractionStatus.SUBMITTED.name())
- .or(j.status().eq(ExtractionStatus.RUNNING.name()))))
- .listOf(ExtractionJob.class);
-
- logger.debug("[sap-document-ai] Polling {} active extraction job(s)", activeJobs.size());
-
- if (activeJobs.isEmpty()) {
- logger.debug("[sap-document-ai] No active jobs, polling stopped");
- context.setCompleted();
- return;
- }
-
- for (ExtractionJob job : activeJobs) {
- processJob(job);
- }
-
- if (outboxService != null) {
- outboxService.submit(
- POLL_EVENT,
- OutboxMessage.create(),
- Schedule.create().taskName(POLL_TASK_NAME).after(pollDelay));
- } else {
- logger.warn("[sap-document-ai] Outbox not available, next poll cycle will not be scheduled");
- }
-
- context.setCompleted();
- }
-
- private void processJob(ExtractionJob job) {
- String jobId = job.getId();
- String dieJobId = job.getDocumentAiJobId();
-
- if (dieJobId == null) {
- logger.warn("[sap-document-ai] jobId={} has no DIE job ID, skipping poll", jobId);
- return;
- }
-
- try {
- ExtractionData result = documentAiClient.getJobResult(dieJobId);
- ExtractionStatus newStatus = mapDieStatus(result.dieStatus());
-
- if (newStatus == null) {
- logger.debug(
- "[sap-document-ai] jobId={} DIE status={} — no transition yet",
- jobId,
- result.dieStatus());
- return;
- }
-
- String extractionResult = newStatus == ExtractionStatus.DONE ? result.rawResult() : null;
-
- extractionService.updateExtractionResult(jobId, newStatus, dieJobId, extractionResult);
-
- if (newStatus == ExtractionStatus.DONE) {
- logger.info(
- "[sap-document-ai] Extraction complete for jobId={}, dieJobId={}", jobId, dieJobId);
- emitExtractionCompleted(jobId, extractionResult);
- }
-
- } catch (Exception e) {
- logger.error(
- "[sap-document-ai] Failed to poll/update jobId={}, dieJobId={}", jobId, dieJobId, e);
- }
- }
-
- private void emitExtractionCompleted(String jobId, String extractionResult) {
- ApplicationService documentAiService =
- runtime
- .getServiceCatalog()
- .getService(ApplicationService.class, DocumentAiService_.CDS_NAME);
- if (documentAiService == null) {
- logger.warn(
- "[sap-document-ai] DocumentAiService not found in catalog, cannot emit result for jobId={}",
- jobId);
- return;
- }
- DocumentExtractionResult eventData = DocumentExtractionResult.create();
- eventData.setJobId(jobId);
- eventData.setExtractionResult(extractionResult);
- DocumentExtractionResultContext eventContext = DocumentExtractionResultContext.create();
- eventContext.setData(eventData);
- documentAiService.emit(eventContext);
- logger.info("[sap-document-ai] Emitted DocumentExtractionResult for jobId={}", jobId);
- }
-
- private ExtractionStatus mapDieStatus(String dieStatus) {
- return switch (dieStatus.toUpperCase()) {
- case "RUNNING" -> ExtractionStatus.RUNNING;
- case "DONE" -> ExtractionStatus.DONE;
- case "FAILED" -> ExtractionStatus.FAILED;
- default -> null; // PENDING or unknown — no transition
- };
- }
-}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/DefaultDocumentAiProcessingService.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/DefaultDocumentAiProcessingService.java
deleted file mode 100644
index ec4a73f..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/DefaultDocumentAiProcessingService.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service;
-
-import com.sap.cds.feature.documentai.service.client.DocumentAiClient;
-import com.sap.cds.feature.documentai.service.exceptions.DocumentAiException;
-import com.sap.cds.feature.documentai.service.model.DocumentInput;
-
-/**
- * Default implementation of {@link DocumentAiProcessingService}.
- *
- * Delegates directly to {@link DocumentAiClient}. When no DIE service binding is configured, the
- * configuration layer passes {@code null} as the client and {@link #isAvailable()} returns {@code
- * false}, allowing the rest of the plugin to remain operational while queuing jobs as {@code
- * PENDING}.
- */
-public class DefaultDocumentAiProcessingService implements DocumentAiProcessingService {
-
- public static final String SAP_DOCUMENT_AI_SERVICE_LABEL = "sap-document-information-extraction";
-
- private final DocumentAiClient documentAiClient;
-
- public DefaultDocumentAiProcessingService(DocumentAiClient documentAiClient) {
- this.documentAiClient = documentAiClient;
- }
-
- @Override
- public String processDocument(String jobId, DocumentInput documentInput) {
- try {
- String documentAiJobId = documentAiClient.submitDocument(documentInput);
- return documentAiJobId;
- } catch (Exception e) {
- throw new DocumentAiException.Processing("Failed to process document for jobId=" + jobId, e);
- }
- }
-
- @Override
- public boolean isAvailable() {
- return documentAiClient != null;
- }
-}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/DocumentAiProcessingService.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/DocumentAiProcessingService.java
deleted file mode 100644
index 3972446..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/DocumentAiProcessingService.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service;
-
-import com.sap.cds.feature.documentai.service.model.DocumentInput;
-
-/**
- * Abstraction over the Document AI (DIE) submission layer.
- *
- *
Decouples {@link com.sap.cds.feature.documentai.service.ExtractionServiceImpl} from the
- * concrete HTTP client so the service can remain operational (returning {@code PENDING} jobs) when
- * no DIE binding is configured.
- */
-public interface DocumentAiProcessingService {
-
- /**
- * Returns {@code true} if a DIE binding is available and document submission is possible.
- *
- * @return {@code true} when the underlying client is initialised, {@code false} otherwise
- */
- boolean isAvailable();
-
- /**
- * Submits a document to the DIE service and returns the DIE-assigned job ID.
- *
- * @param jobId the internal extraction job ID, used for correlation in logs and exceptions
- * @param documentInput the document content and metadata to submit
- * @return the job ID assigned by the DIE service
- * @throws com.sap.cds.feature.documentai.service.exceptions.DocumentAiException if submission or
- * response parsing fails
- */
- String processDocument(String jobId, DocumentInput documentInput);
-}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/ExtractionService.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/ExtractionService.java
deleted file mode 100644
index 4658717..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/ExtractionService.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service;
-
-import com.sap.cds.feature.documentai.service.exceptions.IllegalStatusTransitionException;
-import com.sap.cds.feature.documentai.service.model.ExtractionResult;
-import com.sap.cds.services.Service;
-import java.io.InputStream;
-
-/**
- * CDS service interface for managing document extraction jobs.
- *
- *
Handles the lifecycle of an extraction job from initial submission through status updates.
- * Implementations are expected to persist job state and coordinate with the Document AI processing
- * layer.
- */
-public interface ExtractionService extends Service {
-
- String NAME = "ExtractionService";
-
- /**
- * Triggers a new document extraction job.
- *
- *
Creates a job record in {@code PENDING} status, then attempts to submit the document to the
- * Document AI service. If the service is unavailable, the job remains {@code PENDING} for later
- * retry. On successful submission the job transitions to {@code SUBMITTED} and polling is
- * scheduled.
- *
- * @param fileName the original file name, forwarded to the DIE service
- * @param mimeType the MIME type of the document content
- * @param content the document byte stream
- * @param options JSON options string passed to the DIE service; may be {@code null}
- * @param tenantId the tenant under which the job is created
- * @return an {@link ExtractionResult} describing the outcome and the internal job ID
- * @throws IllegalStatusTransitionException if the resulting status update violates the allowed
- * state machine
- */
- ExtractionResult triggerExtraction(
- String fileName, String mimeType, InputStream content, String options, String tenantId)
- throws IllegalStatusTransitionException;
-
- /**
- * Updates the status of an existing extraction job after a poll result from DIE.
- *
- * @param jobId the internal job ID
- * @param status the new {@link ExtractionStatus} to apply
- * @param dieJobId the DIE-side job ID to persist alongside the status update; may be {@code null}
- * @param extractionResult the raw JSON result returned by DIE; only non-{@code null} when status
- * is {@code DONE}
- * @throws IllegalStatusTransitionException if the transition from the current status to {@code
- * status} is not permitted
- */
- void updateExtractionResult(
- String jobId, ExtractionStatus status, String dieJobId, String extractionResult)
- throws IllegalStatusTransitionException;
-}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/ExtractionServiceImpl.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/ExtractionServiceImpl.java
deleted file mode 100644
index 2216619..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/ExtractionServiceImpl.java
+++ /dev/null
@@ -1,222 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service;
-
-import static com.sap.cds.feature.documentai.handlers.ExtractionPollingHandler.*;
-import static com.sap.cds.feature.documentai.service.ExtractionStatus.*;
-
-import com.sap.cds.Result;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.ExtractionJob;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.ExtractionJob_;
-import com.sap.cds.feature.documentai.service.exceptions.ConcurrentJobUpdateException;
-import com.sap.cds.feature.documentai.service.exceptions.IllegalStatusTransitionException;
-import com.sap.cds.feature.documentai.service.model.DocumentInput;
-import com.sap.cds.feature.documentai.service.model.ExtractionResult;
-import com.sap.cds.feature.documentai.service.model.ExtractionResult.Status;
-import com.sap.cds.feature.documentai.service.utils.StatusTransitionValidator;
-import com.sap.cds.ql.Insert;
-import com.sap.cds.ql.Select;
-import com.sap.cds.ql.Update;
-import com.sap.cds.services.ServiceDelegator;
-import com.sap.cds.services.outbox.OutboxMessage;
-import com.sap.cds.services.outbox.OutboxService;
-import com.sap.cds.services.outbox.Schedule;
-import com.sap.cds.services.persistence.PersistenceService;
-import java.io.InputStream;
-import java.time.Duration;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * Default implementation of {@link ExtractionService}.
- *
- *
Orchestrates the full extraction lifecycle:
- *
- *
- * Persists a new {@code ExtractionJob} in {@code PENDING} status.
- * Delegates document submission to {@link DocumentAiProcessingService}.
- * On success, advances the job to {@code SUBMITTED} and schedules a polling cycle via the
- * persistent outbox.
- * On failure, marks the job as {@code FAILED} and returns the appropriate result.
- *
- *
- * Status updates use an optimistic-lock pattern: the {@code UPDATE} query includes a {@code
- * WHERE status = currentStatus} predicate. Zero rows affected raises {@link
- * com.sap.cds.feature.documentai.service.exceptions.ConcurrentJobUpdateException}.
- */
-public class ExtractionServiceImpl extends ServiceDelegator implements ExtractionService {
-
- private static final Logger logger = LoggerFactory.getLogger(ExtractionServiceImpl.class);
-
- private PersistenceService persistenceService;
- private DocumentAiProcessingService documentAiProcessingService;
- private OutboxService outboxService;
- private Duration pollDelay;
-
- public ExtractionServiceImpl() {
- super(NAME);
- }
-
- /**
- * Injects runtime dependencies after Spring/CDS wiring is complete.
- *
- *
Called from {@link
- * com.sap.cds.feature.documentai.configuration.DocumentAiServiceConfiguration} once all dependent
- * services are resolved from the service catalog.
- *
- * @param persistenceService the CDS persistence service for job CRUD operations
- * @param documentAiProcessingService the processing service wrapping the DIE HTTP client
- * @param outboxService the persistent outbox used to schedule polling; may be {@code null} if the
- * outbox is not configured
- * @param pollDelay the delay before the first poll cycle, read from {@code
- * cds.document-ai.polling.interval-seconds}
- */
- public void init(
- PersistenceService persistenceService,
- DocumentAiProcessingService documentAiProcessingService,
- OutboxService outboxService,
- Duration pollDelay) {
- this.persistenceService = persistenceService;
- this.documentAiProcessingService = documentAiProcessingService;
- this.outboxService = outboxService;
- this.pollDelay = pollDelay;
- }
-
- @Override
- public ExtractionResult triggerExtraction(
- String fileName, String mimeType, InputStream content, String options, String tenantId)
- throws IllegalStatusTransitionException {
- logger.info(
- "[sap-document-ai] Direct extraction triggered for fileName={}, tenantId={}",
- fileName,
- tenantId);
-
- String jobId = createExtractionJob(tenantId);
-
- if (!documentAiProcessingService.isAvailable()) {
- logger.warn(
- "[sap-document-ai] Document AI unavailable, job {} left as PENDING for retry", jobId);
- return new ExtractionResult(jobId, Status.PENDING, null);
- }
-
- DocumentInput documentInput = new DocumentInput(fileName, mimeType, content, options);
- return performExtraction(jobId, fileName, documentInput, tenantId);
- }
-
- @Override
- public void updateExtractionResult(
- String jobId, ExtractionStatus status, String dieJobId, String extractionResult)
- throws IllegalStatusTransitionException {
- updateExtractionJob(jobId, status, dieJobId, extractionResult);
- }
-
- private ExtractionResult performExtraction(
- String jobId, String fileName, DocumentInput documentInput, String tenantId) {
- try {
- String documentAiJobId = documentAiProcessingService.processDocument(jobId, documentInput);
- updateExtractionJob(jobId, SUBMITTED, documentAiJobId, null);
- schedulePolling();
- return new ExtractionResult(jobId, Status.SUCCESS, documentAiJobId);
- } catch (ConcurrentJobUpdateException e) {
- logger.warn(
- "[sap-document-ai] Concurrent update on jobId={}, skipping status write — job already advanced",
- jobId);
- return new ExtractionResult(jobId, Status.SUCCESS, null);
- } catch (IllegalStatusTransitionException e) {
- logger.error("[sap-document-ai] Invalid state transition for jobId={}", jobId, e);
- throw e;
- } catch (Exception e) {
- logger.error(
- "[sap-document-ai] Processing failed for fileName={}, tenantId={}",
- fileName,
- tenantId,
- e);
- markJobAsFailed(jobId);
- return new ExtractionResult(jobId, Status.FAILED, null);
- }
- }
-
- private void schedulePolling() {
- if (outboxService == null) {
- logger.warn("[sap-document-ai] Outbox not available, polling will not be scheduled");
- return;
- }
- outboxService.submit(
- POLL_EVENT,
- OutboxMessage.create(),
- Schedule.create().taskName(POLL_TASK_NAME).after(pollDelay));
- logger.debug("[sap-document-ai] Poll schedule submitted");
- }
-
- private void markJobAsFailed(String jobId) {
- try {
- updateExtractionJob(jobId, FAILED, null, null);
- } catch (Exception e) {
- logger.error("[sap-document-ai] Failed to update status to FAILED for jobId={}", jobId, e);
- }
- }
-
- private String createExtractionJob(String tenantId) {
- ExtractionJob job = ExtractionJob.create();
- job.setTenantId(tenantId);
- job.setStatus(PENDING.name());
-
- Result result = persistenceService.run(Insert.into(ExtractionJob_.class).entry(job));
- String jobId = result.single(ExtractionJob.class).getId();
- logger.info("[sap-document-ai] ExtractionJob created with status=PENDING, jobId={}", jobId);
- return jobId;
- }
-
- private void updateExtractionJob(
- String jobId, ExtractionStatus status, String documentAiJobId, String extractionResult) {
- Result current = persistenceService.run(Select.from(ExtractionJob_.class).byId(jobId));
- ExtractionStatus currentStatus = fromString(current.single(ExtractionJob.class).getStatus());
-
- if (currentStatus.equals(status)) {
- logger.debug(
- "[sap-document-ai] ExtractionJob jobId={} already in status {}, skipping update",
- jobId,
- status);
- return;
- }
-
- if (!StatusTransitionValidator.isValid(currentStatus, status)) {
- throw new IllegalStatusTransitionException(
- "Invalid status transition from " + currentStatus + " to " + status);
- }
-
- ExtractionJob extractionJob = ExtractionJob.create();
- extractionJob.setStatus(status.name());
- if (documentAiJobId != null) {
- extractionJob.setDocumentAiJobId(documentAiJobId);
- }
- if (extractionResult != null) {
- extractionJob.setExtractionResult(extractionResult);
- }
-
- Result updateResult =
- persistenceService.run(
- Update.entity(ExtractionJob_.class)
- .where(
- j ->
- j.get(ExtractionJob.ID)
- .eq(jobId)
- .and(j.get(ExtractionJob.STATUS).eq(currentStatus.name())))
- .entry(extractionJob));
-
- if (updateResult.rowCount() == 0) {
- String message =
- "Concurrent update detected for jobId=" + jobId + ", expected status=" + currentStatus;
- logger.warn("[sap-document-ai] {}", message);
- throw new ConcurrentJobUpdateException(message);
- }
-
- logger.info(
- "[sap-document-ai] ExtractionJob jobId={} status updated from {} to {}{}",
- jobId,
- currentStatus,
- status,
- documentAiJobId != null ? " with documentAiJobId=" + documentAiJobId : "");
- }
-}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/ExtractionStatus.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/ExtractionStatus.java
deleted file mode 100644
index cfd2322..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/ExtractionStatus.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service;
-
-/**
- * Lifecycle statuses for a document extraction job.
- *
- *
The allowed transitions are enforced by {@link
- * com.sap.cds.feature.documentai.service.utils.StatusTransitionValidator}:
- *
- *
- * PENDING → SUBMITTED | FAILED
- * SUBMITTED → RUNNING | DONE | FAILED
- * RUNNING → DONE | FAILED
- *
- */
-public enum ExtractionStatus {
- /** Job created but not yet submitted to DIE (e.g. DIE service unavailable at submit time). */
- PENDING,
- /** Document submitted to DIE; awaiting processing. */
- SUBMITTED,
- /** DIE has started processing the document. */
- RUNNING,
- /** DIE processing finished successfully; extraction result is available. */
- DONE,
- /** Processing failed at any stage. */
- FAILED;
-
- /**
- * Converts a persisted string value back to an {@link ExtractionStatus}.
- *
- * @param value the raw status string stored in the database
- * @return the matching {@link ExtractionStatus}
- * @throws IllegalArgumentException if {@code value} does not match any known status
- */
- public static ExtractionStatus fromString(String value) {
- try {
- return ExtractionStatus.valueOf(value);
- } catch (IllegalArgumentException e) {
- throw new IllegalArgumentException(
- "Unknown ExtractionStatus value in database: '" + value + "'", e);
- }
- }
-}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/client/DefaultDocumentAiClient.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/client/DefaultDocumentAiClient.java
deleted file mode 100644
index 21057fa..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/client/DefaultDocumentAiClient.java
+++ /dev/null
@@ -1,162 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service.client;
-
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.sap.cds.feature.documentai.service.exceptions.DocumentAiException;
-import com.sap.cds.feature.documentai.service.model.DocumentInput;
-import com.sap.cds.feature.documentai.service.model.ExtractionData;
-import com.sap.cloud.sdk.cloudplatform.connectivity.HttpDestination;
-import java.io.IOException;
-import java.net.URI;
-import org.apache.hc.client5.http.classic.HttpClient;
-import org.apache.hc.client5.http.classic.methods.HttpGet;
-import org.apache.hc.client5.http.classic.methods.HttpPost;
-import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
-import org.apache.hc.client5.http.entity.mime.MultipartEntityBuilder;
-import org.apache.hc.core5.http.ContentType;
-import org.apache.hc.core5.http.io.entity.EntityUtils;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * Default {@link DocumentAiClient} implementation that communicates with the DIE REST API over HTTP
- * using the SAP Cloud SDK destination and Apache HttpClient 5.
- *
- * Two operations are provided:
- *
- *
- * {@link #submitDocument} — POSTs a multipart request containing the document file and a JSON
- * options body, then parses the DIE job ID from the response.
- * {@link #getJobResult} — GETs the current status and extracted values for a previously
- * submitted DIE job.
- *
- *
- * All HTTP failures and unexpected response shapes are wrapped in the appropriate {@link
- * com.sap.cds.feature.documentai.service.exceptions.DocumentAiException} subclass.
- */
-public class DefaultDocumentAiClient implements DocumentAiClient {
-
- private static final Logger logger = LoggerFactory.getLogger(DefaultDocumentAiClient.class);
- private static final ObjectMapper objectMapper = new ObjectMapper();
- private static final String DOCUMENT_AI_API_PATH = "document-information-extraction/v1";
- public static final String DOCUMENT_JOBS = "/document/jobs";
- public static final String EXTRACTED_VALUES_TRUE = "?extractedValues=true";
- private final HttpDestination destination;
- private final HttpClient httpClient;
-
- /**
- * @param destination the pre-configured SAP Cloud SDK HTTP destination pointing to the DIE
- * service base URL with OAuth2 credentials
- * @param httpClient the Apache HttpClient 5 instance used for all HTTP calls
- */
- public DefaultDocumentAiClient(HttpDestination destination, HttpClient httpClient) {
- this.destination = destination;
- this.httpClient = httpClient;
- }
-
- @Override
- public String submitDocument(DocumentInput documentInput) {
- URI submitUri = buildUri(DOCUMENT_AI_API_PATH + DOCUMENT_JOBS);
- HttpPost request = buildSubmitRequest(documentInput, submitUri);
- String body = executeRequest(request, submitUri);
- return extractJobId(body);
- }
-
- @Override
- public ExtractionData getJobResult(String dieJobId) {
- URI uri =
- buildUri(DOCUMENT_AI_API_PATH + DOCUMENT_JOBS + "/" + dieJobId + EXTRACTED_VALUES_TRUE);
- logger.info("[sap-document-ai] Polling DIE for dieJobId={}", dieJobId);
- HttpGet request = new HttpGet(uri);
- String body = executeRequest(request, uri);
- return parseJobResult(dieJobId, body);
- }
-
- private URI buildUri(String path) {
- String base = destination.getUri().toString();
- String prefix = base.endsWith("/") ? base : base + "/";
- return URI.create(prefix).resolve(path);
- }
-
- private HttpPost buildSubmitRequest(DocumentInput documentInput, URI submitUri) {
- logger.info(
- "[sap-document-ai] Submitting document to DIE at url={}, fileName={}, mimeType={}",
- submitUri,
- documentInput.fileName(),
- documentInput.mimeType());
-
- ContentType contentType =
- documentInput.mimeType() != null
- ? ContentType.create(documentInput.mimeType())
- : ContentType.APPLICATION_OCTET_STREAM;
- String options = documentInput.options();
- if (options == null) {
- logger.warn(
- "[sap-document-ai] No options provided for fileName={}, sending empty options to DIE",
- documentInput.fileName());
- options = "{}";
- }
- HttpPost request = new HttpPost(submitUri);
- request.setEntity(
- MultipartEntityBuilder.create()
- .addBinaryBody("file", documentInput.content(), contentType, documentInput.fileName())
- .addTextBody("options", options, ContentType.APPLICATION_JSON)
- .build());
-
- return request;
- }
-
- private String executeRequest(HttpUriRequestBase request, URI uri) {
- try {
- return httpClient.execute(
- request,
- response -> {
- String body = EntityUtils.toString(response.getEntity());
- int statusCode = response.getCode();
- if (statusCode < 200 || statusCode >= 300) {
- throw new DocumentAiException.Request(statusCode, body);
- }
- return body;
- });
- } catch (IOException e) {
- throw new DocumentAiException.Connectivity(uri.toString(), e);
- }
- }
-
- private String extractJobId(String body) {
- try {
- JsonNode json = objectMapper.readTree(body);
-
- if (!json.has("id")) {
- throw new DocumentAiException.Processing("Unexpected DIE response. body=" + body, null);
- }
-
- String jobId = json.get("id").asText();
- logger.info("[sap-document-ai] Document submitted successfully, DIE jobId={}", jobId);
- return jobId;
-
- } catch (JsonProcessingException e) {
- throw new DocumentAiException.Processing("Failed to parse DIE response", e);
- }
- }
-
- private ExtractionData parseJobResult(String dieJobId, String body) {
- try {
- JsonNode json = objectMapper.readTree(body);
- String status = json.path("status").asText();
- if (status.isEmpty()) {
- throw new DocumentAiException.Processing(
- "DIE job response missing 'status' field for dieJobId=" + dieJobId + ". body=" + body,
- null);
- }
- logger.debug("[sap-document-ai] DIE job dieJobId={} status={}", dieJobId, status);
- return new ExtractionData(dieJobId, status, body);
- } catch (JsonProcessingException e) {
- throw new DocumentAiException.Processing("Failed to parse DIE job result response", e);
- }
- }
-}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/client/DocumentAiClient.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/client/DocumentAiClient.java
deleted file mode 100644
index cd327c4..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/client/DocumentAiClient.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service.client;
-
-import com.sap.cds.feature.documentai.service.model.DocumentInput;
-import com.sap.cds.feature.documentai.service.model.ExtractionData;
-
-/**
- * Low-level HTTP client interface for the Document Information Extraction (DIE) service.
- *
- *
Abstracts the REST calls so that higher-level services and handlers are not coupled to the
- * Apache HTTP client or SAP Cloud SDK destination APIs.
- */
-public interface DocumentAiClient {
-
- /**
- * Submits a document to the DIE service for extraction.
- *
- * @param documentInput the document content and metadata
- * @return the DIE-assigned job ID for the submitted document
- * @throws com.sap.cds.feature.documentai.service.exceptions.DocumentAiException if the HTTP call
- * fails or the response cannot be parsed
- */
- String submitDocument(DocumentInput documentInput);
-
- /**
- * Polls the DIE service for the current status and result of a previously submitted job.
- *
- * @param dieJobId the job ID returned by {@link #submitDocument}
- * @return an {@link ExtractionData} containing the DIE status and the raw result JSON
- * @throws com.sap.cds.feature.documentai.service.exceptions.DocumentAiException if the HTTP call
- * fails or the response cannot be parsed
- */
- ExtractionData getJobResult(String dieJobId);
-}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/exceptions/ConcurrentJobUpdateException.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/exceptions/ConcurrentJobUpdateException.java
deleted file mode 100644
index d58ea7e..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/exceptions/ConcurrentJobUpdateException.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service.exceptions;
-
-/**
- * Thrown when an optimistic-lock update of an extraction job detects that another thread or process
- * has already advanced the job's status.
- *
- *
The update query in {@code ExtractionServiceImpl} uses a {@code WHERE status = currentStatus}
- * predicate; zero rows affected means a concurrent writer got there first, and this exception is
- * raised instead of silently overwriting that newer state.
- */
-public class ConcurrentJobUpdateException extends RuntimeException {
-
- /**
- * @param message description including the job ID and the expected status that was not found
- */
- public ConcurrentJobUpdateException(String message) {
- super(message);
- }
-}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/exceptions/DocumentAiException.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/exceptions/DocumentAiException.java
deleted file mode 100644
index 38333fc..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/exceptions/DocumentAiException.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service.exceptions;
-
-/**
- * Base exception for all errors originating from interaction with the Document AI (DIE) service.
- *
- *
Concrete failure modes are represented by the three nested subclasses:
- *
- *
- * {@link Connectivity} — network-level failures (timeouts, DNS, etc.)
- * {@link Request} — non-2xx HTTP responses from DIE
- * {@link Processing} — unexpected or malformed response payloads
- *
- */
-public class DocumentAiException extends RuntimeException {
-
- /**
- * @param message human-readable description of the failure
- * @param cause the underlying exception, or {@code null}
- */
- protected DocumentAiException(String message, Throwable cause) {
- super(message, cause);
- }
-
- /**
- * @param message human-readable description of the failure
- */
- protected DocumentAiException(String message) {
- super(message);
- }
-
- /** Raised when the HTTP connection to the DIE service cannot be established. */
- public static class Connectivity extends DocumentAiException {
-
- /**
- * @param url the URL that was being contacted when the error occurred
- * @param cause the underlying I/O exception
- */
- public Connectivity(String url, Exception cause) {
- super("Failed to connect to DIE at " + url, cause);
- }
- }
-
- /** Raised when DIE returns a non-2xx HTTP response. */
- public static class Request extends DocumentAiException {
- private final int statusCode;
- private final String responseBody;
-
- /**
- * @param statusCode the HTTP status code returned by DIE
- * @param responseBody the raw response body, included for diagnostics
- */
- public Request(int statusCode, String responseBody) {
- super("DIE request failed. Status=" + statusCode + ", body=" + responseBody);
- this.statusCode = statusCode;
- this.responseBody = responseBody;
- }
-
- /**
- * @return the HTTP status code returned by DIE
- */
- public int getStatusCode() {
- return statusCode;
- }
-
- /**
- * @return the raw response body returned by DIE
- */
- public String getResponseBody() {
- return responseBody;
- }
- }
-
- /** Raised when a DIE response cannot be parsed or is missing required fields. */
- public static class Processing extends DocumentAiException {
-
- /**
- * @param message description of the parsing failure
- * @param cause the underlying parse exception, or {@code null}
- */
- public Processing(String message, Throwable cause) {
- super(message, cause);
- }
- }
-}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/exceptions/IllegalStatusTransitionException.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/exceptions/IllegalStatusTransitionException.java
deleted file mode 100644
index a23a5ca..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/exceptions/IllegalStatusTransitionException.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service.exceptions;
-
-/**
- * Thrown when an attempt is made to transition an extraction job to a status that is not permitted
- * by the state machine defined in {@link
- * com.sap.cds.feature.documentai.service.utils.StatusTransitionValidator}.
- */
-public class IllegalStatusTransitionException extends RuntimeException {
-
- /**
- * @param message description including the current and target statuses
- */
- public IllegalStatusTransitionException(String message) {
- super(message);
- }
-}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/model/DocumentInput.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/model/DocumentInput.java
deleted file mode 100644
index 603f508..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/model/DocumentInput.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service.model;
-
-import java.io.InputStream;
-
-/**
- * Immutable value object carrying the document data and metadata needed for a DIE submission.
- *
- * @param fileName the original file name sent to DIE
- * @param mimeType the MIME type of the document (e.g. {@code application/pdf})
- * @param content the document byte stream; consumed exactly once during submission
- * @param options JSON options string forwarded to DIE; {@code null} is treated as empty options
- */
-public record DocumentInput(
- String fileName, String mimeType, InputStream content, String options) {}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/model/ExtractionData.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/model/ExtractionData.java
deleted file mode 100644
index 0c81547..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/model/ExtractionData.java
+++ /dev/null
@@ -1,15 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service.model;
-
-/**
- * Immutable value object holding the raw poll response returned by the DIE service for a job.
- *
- * @param dieJobId the job ID assigned by DIE
- * @param dieStatus the status string as returned by DIE (e.g. {@code PENDING}, {@code RUNNING},
- * {@code DONE}, {@code FAILED})
- * @param rawResult the full JSON response body; only meaningful when {@code dieStatus} is {@code
- * DONE}
- */
-public record ExtractionData(String dieJobId, String dieStatus, String rawResult) {}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/model/ExtractionResult.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/model/ExtractionResult.java
deleted file mode 100644
index 6fd5197..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/model/ExtractionResult.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service.model;
-
-/**
- * Immutable value object returned by {@link
- * com.sap.cds.feature.documentai.service.ExtractionService#triggerExtraction} to convey the
- * immediate outcome of a submission attempt.
- *
- * @param internalJobId the plugin-managed job ID created in the database
- * @param status the outcome of the submission attempt (see {@link Status})
- * @param documentAiJobId the DIE-assigned job ID, or {@code null} if the document was not yet
- * submitted (status {@code PENDING} or {@code FAILED})
- */
-public record ExtractionResult(String internalJobId, Status status, String documentAiJobId) {
-
- /** Immediate outcome of a {@code triggerExtraction} call. */
- public enum Status {
- /** Document submitted to DIE successfully. */
- SUCCESS,
- /** DIE was unavailable; job is queued for retry via the polling scheduler. */
- PENDING,
- /** Submission failed with an unrecoverable error. */
- FAILED
- }
-}
diff --git a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/utils/StatusTransitionValidator.java b/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/utils/StatusTransitionValidator.java
deleted file mode 100644
index febe1fa..0000000
--- a/cds-feature-sap-document-ai/src/main/java/com/sap/cds/feature/documentai/service/utils/StatusTransitionValidator.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service.utils;
-
-import static com.sap.cds.feature.documentai.service.ExtractionStatus.*;
-
-import com.sap.cds.feature.documentai.service.ExtractionStatus;
-
-/**
- * Utility class that enforces the allowed state-machine transitions for {@link ExtractionStatus}.
- *
- * Permitted transitions:
- *
- *
- * PENDING → SUBMITTED | FAILED
- * SUBMITTED → RUNNING | DONE | FAILED
- * RUNNING → DONE | FAILED
- * DONE / FAILED → (terminal, no further transitions)
- *
- *
- * Same-status transitions are always considered valid (idempotent updates).
- */
-public class StatusTransitionValidator {
-
- private StatusTransitionValidator() {}
-
- /**
- * Returns {@code true} if transitioning from {@code current} to {@code next} is permitted.
- *
- * @param current the status the job is currently in
- * @param next the desired target status
- * @return {@code true} if the transition is allowed, {@code false} otherwise
- */
- public static boolean isValid(ExtractionStatus current, ExtractionStatus next) {
- if (current.equals(next)) return true; // idempotent
-
- return switch (current) {
- case PENDING -> SUBMITTED.equals(next) || FAILED.equals(next);
- case SUBMITTED -> RUNNING.equals(next) || DONE.equals(next) || FAILED.equals(next);
- case RUNNING -> DONE.equals(next) || FAILED.equals(next);
- default -> false;
- };
- }
-}
diff --git a/cds-feature-sap-document-ai/src/main/resources/META-INF/services/com.sap.cds.services.runtime.CdsRuntimeConfiguration b/cds-feature-sap-document-ai/src/main/resources/META-INF/services/com.sap.cds.services.runtime.CdsRuntimeConfiguration
deleted file mode 100644
index 4e66c37..0000000
--- a/cds-feature-sap-document-ai/src/main/resources/META-INF/services/com.sap.cds.services.runtime.CdsRuntimeConfiguration
+++ /dev/null
@@ -1 +0,0 @@
-com.sap.cds.feature.documentai.configuration.DocumentAiServiceConfiguration
diff --git a/cds-feature-sap-document-ai/src/main/resources/cds/com.sap.cds/sap-document-ai/document-ai-service.cds b/cds-feature-sap-document-ai/src/main/resources/cds/com.sap.cds/sap-document-ai/document-ai-service.cds
deleted file mode 100644
index ee2e026..0000000
--- a/cds-feature-sap-document-ai/src/main/resources/cds/com.sap.cds/sap-document-ai/document-ai-service.cds
+++ /dev/null
@@ -1,16 +0,0 @@
-namespace sap.document.ai;
-
-service DocumentAiService {
- event DocumentExtraction {
- fileName : String;
- mimeType : String @Core.IsMediaType;
- content : LargeBinary @Core.MediaType: mimeType;
- options : LargeString;
- }
-
- event DocumentExtractionResult {
- jobId : String;
- documentAiJobId : String;
- extractionResult : LargeString;
- }
-}
diff --git a/cds-feature-sap-document-ai/src/main/resources/cds/com.sap.cds/sap-document-ai/extraction-job.cds b/cds-feature-sap-document-ai/src/main/resources/cds/com.sap.cds/sap-document-ai/extraction-job.cds
deleted file mode 100644
index bfc75af..0000000
--- a/cds-feature-sap-document-ai/src/main/resources/cds/com.sap.cds/sap-document-ai/extraction-job.cds
+++ /dev/null
@@ -1,13 +0,0 @@
-namespace sap.document.ai;
-
-using {
- cuid,
- managed
-} from '@sap/cds/common';
-
-entity ExtractionJob : cuid, managed {
- status : String;
- tenantId : String;
- documentAiJobId : String;
- extractionResult : LargeString;
-}
diff --git a/cds-feature-sap-document-ai/src/main/resources/cds/com.sap.cds/sap-document-ai/index.cds b/cds-feature-sap-document-ai/src/main/resources/cds/com.sap.cds/sap-document-ai/index.cds
deleted file mode 100644
index 0e60ba7..0000000
--- a/cds-feature-sap-document-ai/src/main/resources/cds/com.sap.cds/sap-document-ai/index.cds
+++ /dev/null
@@ -1,2 +0,0 @@
-using from './extraction-job';
-using from './document-ai-service';
diff --git a/cds-feature-sap-document-ai/src/main/resources/spotbugs-exclusion-filter.xml b/cds-feature-sap-document-ai/src/main/resources/spotbugs-exclusion-filter.xml
deleted file mode 100644
index 95d797b..0000000
--- a/cds-feature-sap-document-ai/src/main/resources/spotbugs-exclusion-filter.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/configuration/DocumentAiServiceConfigurationTest.java b/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/configuration/DocumentAiServiceConfigurationTest.java
deleted file mode 100644
index fbfade8..0000000
--- a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/configuration/DocumentAiServiceConfigurationTest.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.configuration;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.*;
-
-import com.sap.cds.feature.documentai.handlers.DocumentSubmissionHandler;
-import com.sap.cds.feature.documentai.service.DefaultDocumentAiProcessingService;
-import com.sap.cds.feature.documentai.service.ExtractionServiceImpl;
-import com.sap.cds.feature.documentai.service.client.DocumentAiClient;
-import com.sap.cds.services.Service;
-import com.sap.cds.services.ServiceCatalog;
-import com.sap.cds.services.environment.CdsEnvironment;
-import com.sap.cds.services.handler.EventHandler;
-import com.sap.cds.services.persistence.PersistenceService;
-import com.sap.cds.services.runtime.CdsRuntime;
-import com.sap.cds.services.runtime.CdsRuntimeConfigurer;
-import com.sap.cds.services.utils.environment.ServiceBindingUtils;
-import com.sap.cloud.environment.servicebinding.api.ServiceBinding;
-import com.sap.cloud.sdk.cloudplatform.connectivity.ServiceBindingDestinationLoader;
-import java.util.stream.Stream;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mock;
-import org.mockito.junit.jupiter.MockitoExtension;
-
-@ExtendWith(MockitoExtension.class)
-class DocumentAiServiceConfigurationTest {
-
- @Mock CdsRuntimeConfigurer configurer;
- @Mock CdsRuntime cdsRuntime;
- @Mock ServiceCatalog serviceCatalog;
- @Mock PersistenceService persistenceService;
- @Mock CdsEnvironment environment;
-
- DocumentAiServiceConfiguration registration;
-
- @BeforeEach
- void setUp() {
- registration = new DocumentAiServiceConfiguration();
- }
-
- @Test
- void servicesRegistersExtractionService() {
- registration.services(configurer);
-
- ArgumentCaptor captor = ArgumentCaptor.forClass(Service.class);
- verify(configurer).service(captor.capture());
- assertThat(captor.getValue()).isInstanceOf(ExtractionServiceImpl.class);
- }
-
- @Test
- void eventHandlersRegistersDocumentSubmissionHandler() {
- when(configurer.getCdsRuntime()).thenReturn(cdsRuntime);
- when(cdsRuntime.getServiceCatalog()).thenReturn(serviceCatalog);
- when(cdsRuntime.getEnvironment()).thenReturn(environment);
- when(environment.getServiceBindings()).thenReturn(Stream.empty());
- when(environment.getProperty(
- eq("cds.document-ai.polling.interval-seconds"), eq(Integer.class), any()))
- .thenReturn(3);
- when(serviceCatalog.getService(PersistenceService.class, PersistenceService.DEFAULT_NAME))
- .thenReturn(persistenceService);
-
- registration.services(configurer);
- registration.eventHandlers(configurer);
-
- ArgumentCaptor captor = ArgumentCaptor.forClass(EventHandler.class);
- verify(configurer, times(1)).eventHandler(captor.capture());
-
- assertThat(captor.getValue()).isInstanceOf(DocumentSubmissionHandler.class);
- }
-
- @Test
- void buildDocumentAi_noBindingFound_returnsNull() {
- when(environment.getServiceBindings()).thenReturn(Stream.empty());
-
- DocumentAiClient result = DocumentAiServiceConfiguration.buildDocumentAi(environment);
-
- assertThat(result).isNull();
- }
-
- @Test
- void buildDocumentAi_bindingFound_destinationCreationFails_returnsNull() {
- ServiceBinding binding = mock(ServiceBinding.class);
- when(environment.getServiceBindings()).thenReturn(Stream.of(binding));
-
- try (var utils = mockStatic(ServiceBindingUtils.class);
- var loader = mockStatic(ServiceBindingDestinationLoader.class)) {
- utils
- .when(
- () ->
- ServiceBindingUtils.matches(
- any(), eq(DefaultDocumentAiProcessingService.SAP_DOCUMENT_AI_SERVICE_LABEL)))
- .thenReturn(true);
-
- ServiceBindingDestinationLoader loaderMock = mock(ServiceBindingDestinationLoader.class);
- loader.when(ServiceBindingDestinationLoader::defaultLoaderChain).thenReturn(loaderMock);
- when(loaderMock.getDestination(any())).thenThrow(new RuntimeException("destination fail"));
-
- DocumentAiClient result = DocumentAiServiceConfiguration.buildDocumentAi(environment);
-
- assertThat(result).isNull();
- }
- }
-}
diff --git a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/handlers/DocumentSubmissionHandlerTest.java b/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/handlers/DocumentSubmissionHandlerTest.java
deleted file mode 100644
index 90be694..0000000
--- a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/handlers/DocumentSubmissionHandlerTest.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.handlers;
-
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.*;
-
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtraction;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtractionContext;
-import com.sap.cds.feature.documentai.service.ExtractionService;
-import com.sap.cds.feature.documentai.service.model.ExtractionResult;
-import com.sap.cds.services.request.UserInfo;
-import java.io.ByteArrayInputStream;
-import java.io.InputStream;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.Mock;
-import org.mockito.junit.jupiter.MockitoExtension;
-
-@ExtendWith(MockitoExtension.class)
-class DocumentSubmissionHandlerTest {
-
- private static final String TENANT_ID = "tenant-1";
- private static final String FILE_NAME = "invoice.pdf";
- private static final String MIME_TYPE = "application/pdf";
-
- @Mock ExtractionService extractionService;
- @Mock DocumentExtractionContext eventContext;
- @Mock UserInfo userInfo;
-
- DocumentSubmissionHandler handler;
-
- @BeforeEach
- void setUp() {
- handler = new DocumentSubmissionHandler(extractionService);
- }
-
- private DocumentExtraction createEvent() {
- DocumentExtraction event = DocumentExtraction.create();
- event.setFileName(FILE_NAME);
- event.setMimeType(MIME_TYPE);
- event.setContent(new ByteArrayInputStream("pdf-bytes".getBytes()));
- return event;
- }
-
- @Test
- void onDocumentExtraction_triggersExtraction() {
- when(eventContext.getUserInfo()).thenReturn(userInfo);
- when(userInfo.getTenant()).thenReturn(TENANT_ID);
- when(eventContext.getData()).thenReturn(createEvent());
- when(extractionService.triggerExtraction(any(), any(), any(), any(), any()))
- .thenReturn(
- new ExtractionResult("job-123", ExtractionResult.Status.SUCCESS, "dai-job-456"));
-
- handler.onDocumentExtraction(eventContext);
-
- verify(extractionService)
- .triggerExtraction(
- eq(FILE_NAME), eq(MIME_TYPE), any(InputStream.class), any(), eq(TENANT_ID));
- }
-
- @Test
- void onDocumentExtraction_logsPendingWhenServiceUnavailable() {
- when(eventContext.getUserInfo()).thenReturn(userInfo);
- when(userInfo.getTenant()).thenReturn(TENANT_ID);
- when(eventContext.getData()).thenReturn(createEvent());
- when(extractionService.triggerExtraction(any(), any(), any(), any(), any()))
- .thenReturn(new ExtractionResult(null, ExtractionResult.Status.PENDING, null));
-
- handler.onDocumentExtraction(eventContext);
-
- verify(extractionService).triggerExtraction(any(), any(), any(), any(), any());
- }
-
- @Test
- void onDocumentExtraction_logsFailedWhenExtractionFails() {
- when(eventContext.getUserInfo()).thenReturn(userInfo);
- when(userInfo.getTenant()).thenReturn(TENANT_ID);
- when(eventContext.getData()).thenReturn(createEvent());
- when(extractionService.triggerExtraction(any(), any(), any(), any(), any()))
- .thenReturn(new ExtractionResult("job-123", ExtractionResult.Status.FAILED, null));
-
- handler.onDocumentExtraction(eventContext);
-
- verify(extractionService).triggerExtraction(any(), any(), any(), any(), any());
- }
-}
diff --git a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/handlers/ExtractionPollingHandlerTest.java b/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/handlers/ExtractionPollingHandlerTest.java
deleted file mode 100644
index 610dc8b..0000000
--- a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/handlers/ExtractionPollingHandlerTest.java
+++ /dev/null
@@ -1,185 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.handlers;
-
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.Mockito.*;
-
-import com.sap.cds.Result;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.ExtractionJob;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentAiService_;
-import com.sap.cds.feature.documentai.service.ExtractionService;
-import com.sap.cds.feature.documentai.service.ExtractionStatus;
-import com.sap.cds.feature.documentai.service.client.DocumentAiClient;
-import com.sap.cds.feature.documentai.service.model.ExtractionData;
-import com.sap.cds.ql.cqn.CqnSelect;
-import com.sap.cds.services.ServiceCatalog;
-import com.sap.cds.services.cds.ApplicationService;
-import com.sap.cds.services.outbox.OutboxMessageEventContext;
-import com.sap.cds.services.outbox.OutboxService;
-import com.sap.cds.services.outbox.Schedule;
-import com.sap.cds.services.persistence.PersistenceService;
-import com.sap.cds.services.runtime.CdsRuntime;
-import java.time.Duration;
-import java.util.List;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.Mock;
-import org.mockito.junit.jupiter.MockitoExtension;
-
-@ExtendWith(MockitoExtension.class)
-class ExtractionPollingHandlerTest {
-
- private static final String JOB_ID = "job-123";
- private static final String DIE_JOB_ID = "die-job-456";
- private static final String RAW_RESULT = "{\"extraction\":{}}";
-
- @Mock PersistenceService persistenceService;
- @Mock ExtractionService extractionService;
- @Mock DocumentAiClient documentAiClient;
- @Mock OutboxService outboxService;
- @Mock CdsRuntime runtime;
- @Mock ServiceCatalog serviceCatalog;
- @Mock ApplicationService documentAiService;
- @Mock OutboxMessageEventContext context;
- @Mock Result queryResult;
-
- ExtractionPollingHandler handler;
-
- @BeforeEach
- void setUp() {
- handler =
- new ExtractionPollingHandler(
- persistenceService,
- extractionService,
- documentAiClient,
- outboxService,
- runtime,
- Duration.ofSeconds(ExtractionPollingHandler.DEFAULT_POLL_INTERVAL_SECONDS));
- }
-
- private void mockEmit() {
- when(runtime.getServiceCatalog()).thenReturn(serviceCatalog);
- when(serviceCatalog.getService(ApplicationService.class, DocumentAiService_.CDS_NAME))
- .thenReturn(documentAiService);
- }
-
- @Test
- void pollStopsAndSetsCompletedWhenNoActiveJobs() {
- when(persistenceService.run(any(CqnSelect.class))).thenReturn(queryResult);
- when(queryResult.listOf(ExtractionJob.class)).thenReturn(List.of());
-
- handler.pollExtractionJobs(context);
-
- verify(outboxService, never()).submit(any(), any(), any(Schedule.class));
- verify(context).setCompleted();
- }
-
- @Test
- void pollReschedulesWhenActiveJobsExist() {
- mockActiveJob(DIE_JOB_ID);
- when(documentAiClient.getJobResult(DIE_JOB_ID))
- .thenReturn(new ExtractionData(DIE_JOB_ID, "RUNNING", null));
-
- handler.pollExtractionJobs(context);
-
- verify(outboxService)
- .submit(eq(ExtractionPollingHandler.POLL_EVENT), any(), any(Schedule.class));
- verify(context).setCompleted();
- }
-
- @Test
- void pollSkipsJobWithNoDieJobId() {
- mockActiveJob(null);
-
- handler.pollExtractionJobs(context);
-
- verify(documentAiClient, never()).getJobResult(any());
- }
-
- @Test
- void pollDoesNotUpdateStatusWhenDieReturnsPending() {
- mockActiveJob(DIE_JOB_ID);
- when(documentAiClient.getJobResult(DIE_JOB_ID))
- .thenReturn(new ExtractionData(DIE_JOB_ID, "PENDING", null));
-
- handler.pollExtractionJobs(context);
-
- verify(extractionService, never()).updateExtractionResult(any(), any(), any(), any());
- }
-
- @Test
- void pollUpdatesStatusToRunningWithoutEmittingEvent() {
- mockActiveJob(DIE_JOB_ID);
- when(documentAiClient.getJobResult(DIE_JOB_ID))
- .thenReturn(new ExtractionData(DIE_JOB_ID, "RUNNING", null));
-
- handler.pollExtractionJobs(context);
-
- verify(extractionService)
- .updateExtractionResult(JOB_ID, ExtractionStatus.RUNNING, DIE_JOB_ID, null);
- verify(documentAiService, never()).emit(any());
- }
-
- @Test
- void pollUpdatesStatusToFailedWithoutEmittingEvent() {
- mockActiveJob(DIE_JOB_ID);
- when(documentAiClient.getJobResult(DIE_JOB_ID))
- .thenReturn(new ExtractionData(DIE_JOB_ID, "FAILED", null));
-
- handler.pollExtractionJobs(context);
-
- verify(extractionService)
- .updateExtractionResult(JOB_ID, ExtractionStatus.FAILED, DIE_JOB_ID, null);
- verify(documentAiService, never()).emit(any());
- }
-
- @Test
- void pollUpdatesStatusToDoneAndEmitsEvent() {
- mockEmit();
- mockActiveJob(DIE_JOB_ID);
- when(documentAiClient.getJobResult(DIE_JOB_ID))
- .thenReturn(new ExtractionData(DIE_JOB_ID, "DONE", RAW_RESULT));
-
- handler.pollExtractionJobs(context);
-
- verify(extractionService)
- .updateExtractionResult(JOB_ID, ExtractionStatus.DONE, DIE_JOB_ID, RAW_RESULT);
- verify(documentAiService).emit(any());
- }
-
- @Test
- void pollContinuesToNextJobWhenOneThrows() {
- ExtractionJob failingJob = ExtractionJob.create();
- failingJob.setId("job-fail");
- failingJob.setDocumentAiJobId("die-fail");
-
- ExtractionJob goodJob = ExtractionJob.create();
- goodJob.setId(JOB_ID);
- goodJob.setDocumentAiJobId(DIE_JOB_ID);
-
- when(persistenceService.run(any(CqnSelect.class))).thenReturn(queryResult);
- when(queryResult.listOf(ExtractionJob.class)).thenReturn(List.of(failingJob, goodJob));
-
- when(documentAiClient.getJobResult("die-fail")).thenThrow(new RuntimeException("timeout"));
- when(documentAiClient.getJobResult(DIE_JOB_ID))
- .thenReturn(new ExtractionData(DIE_JOB_ID, "RUNNING", null));
-
- handler.pollExtractionJobs(context);
-
- verify(extractionService)
- .updateExtractionResult(JOB_ID, ExtractionStatus.RUNNING, DIE_JOB_ID, null);
- verify(context).setCompleted();
- }
-
- private void mockActiveJob(String dieJobId) {
- ExtractionJob job = ExtractionJob.create();
- job.setId(JOB_ID);
- job.setDocumentAiJobId(dieJobId);
- when(persistenceService.run(any(CqnSelect.class))).thenReturn(queryResult);
- when(queryResult.listOf(ExtractionJob.class)).thenReturn(List.of(job));
- }
-}
diff --git a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/DefaultDocumentAiProcessingServiceTest.java b/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/DefaultDocumentAiProcessingServiceTest.java
deleted file mode 100644
index 212a68c..0000000
--- a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/DefaultDocumentAiProcessingServiceTest.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service;
-
-import static org.mockito.ArgumentMatchers.any;
-
-import com.sap.cds.feature.documentai.service.client.DocumentAiClient;
-import com.sap.cds.feature.documentai.service.exceptions.DocumentAiException;
-import com.sap.cds.feature.documentai.service.model.DocumentInput;
-import java.io.ByteArrayInputStream;
-import java.nio.charset.StandardCharsets;
-import org.assertj.core.api.Assertions;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-import org.mockito.Mockito;
-
-/*
- * Temporary tests until the real implementation is done
- */
-class DefaultDocumentAiProcessingServiceTest {
-
- public static final String TEST_PDF = "test.pdf";
- public static final String CONTENT_TYPE = "application/pdf";
- public static final String TEST_CONTENT = "test";
- public static final String JOB_1 = "job-1";
- public static final String MOCK_RESULT = "mock-result";
- DocumentAiClient documentAiClient;
- DefaultDocumentAiProcessingService service;
- DocumentInput documentInput;
-
- @BeforeEach
- void setUp() {
- documentAiClient = Mockito.mock(DocumentAiClient.class);
- Mockito.when(documentAiClient.submitDocument(any())).thenReturn(MOCK_RESULT);
- service = new DefaultDocumentAiProcessingService(documentAiClient);
- documentInput =
- new DocumentInput(
- TEST_PDF,
- CONTENT_TYPE,
- new ByteArrayInputStream(TEST_CONTENT.getBytes(StandardCharsets.UTF_8)),
- null);
- }
-
- // ----- isAvailable() -------
- @Test
- void isAvailableReturnsTrueWhenClientPresent() {
- Assertions.assertThat(service.isAvailable()).isTrue();
- }
-
- @Test
- void isAvailableReturnsFalseWhenClientNull() {
- Assertions.assertThat(new DefaultDocumentAiProcessingService(null).isAvailable()).isFalse();
- }
-
- // ------- processDocument() -------
- @Test
- void processDocumentCompletesWithoutException() {
- Assertions.assertThatCode(() -> service.processDocument(JOB_1, documentInput))
- .doesNotThrowAnyException();
- }
-
- @Test
- void processDocumentThrowsWhenSubmitDocumentFails() {
- Mockito.when(documentAiClient.submitDocument(any()))
- .thenThrow(new RuntimeException("submit failed"));
- Assertions.assertThatThrownBy(() -> service.processDocument(JOB_1, documentInput))
- .isInstanceOf(DocumentAiException.Processing.class);
- }
-}
diff --git a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/ExtractionServiceImplTest.java b/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/ExtractionServiceImplTest.java
deleted file mode 100644
index 3f05fad..0000000
--- a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/ExtractionServiceImplTest.java
+++ /dev/null
@@ -1,216 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service;
-
-import static com.sap.cds.feature.documentai.service.ExtractionStatus.*;
-import static org.assertj.core.api.Assertions.*;
-import static org.junit.jupiter.api.Assertions.assertThrows;
-import static org.mockito.Mockito.*;
-
-import com.sap.cds.Result;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.ExtractionJob;
-import com.sap.cds.feature.documentai.service.exceptions.IllegalStatusTransitionException;
-import com.sap.cds.feature.documentai.service.model.ExtractionResult;
-import com.sap.cds.ql.cqn.CqnInsert;
-import com.sap.cds.ql.cqn.CqnSelect;
-import com.sap.cds.ql.cqn.CqnUpdate;
-import com.sap.cds.services.outbox.OutboxService;
-import com.sap.cds.services.outbox.Schedule;
-import com.sap.cds.services.persistence.PersistenceService;
-import java.io.ByteArrayInputStream;
-import java.io.InputStream;
-import java.nio.charset.StandardCharsets;
-import java.time.Duration;
-import java.util.Optional;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.Mock;
-import org.mockito.junit.jupiter.MockitoExtension;
-
-@ExtendWith(MockitoExtension.class)
-class ExtractionServiceImplTest {
-
- static final String TENANT_1 = "tenant-1";
- static final String DIE_JOB_ID = "die-job-123";
- static final String TEST_PDF = "test.pdf";
- static final String CONTENT_TYPE = "application/pdf";
- static final String TEST_CONTENT = "test-content";
-
- @Mock PersistenceService persistenceService;
- @Mock DocumentAiProcessingService documentAiProcessingService;
- @Mock OutboxService outboxService;
- @Mock Result insertResult;
-
- ExtractionServiceImpl extractionService;
-
- @BeforeEach
- void setUp() {
- when(documentAiProcessingService.isAvailable()).thenReturn(true);
- extractionService = new ExtractionServiceImpl();
- extractionService.init(
- persistenceService, documentAiProcessingService, outboxService, Duration.ofSeconds(3));
- }
-
- @Test
- void triggerExtractionCreatesJobAsPendingWhenServiceUnavailable() {
- mockInsertDatabaseCalls();
- when(documentAiProcessingService.isAvailable()).thenReturn(false);
-
- ExtractionResult result =
- extractionService.triggerExtraction(
- TEST_PDF, CONTENT_TYPE, contentStream(), null, TENANT_1);
-
- assertThat(result.status()).isEqualTo(ExtractionResult.Status.PENDING);
- assertThat(result.internalJobId()).isNotNull();
- verify(persistenceService).run(any(CqnInsert.class));
- }
-
- @Test
- void triggerExtractionCreatesJobWithCorrectFields() {
- mockInsertDatabaseCalls();
- mockAllDatabaseCalls();
- Result statusResult = resultWithJobStatus(PENDING);
- lenient().when(persistenceService.run(any(CqnSelect.class))).thenReturn(statusResult);
- when(documentAiProcessingService.processDocument(any(), any())).thenReturn(DIE_JOB_ID);
-
- extractionService.triggerExtraction(TEST_PDF, CONTENT_TYPE, contentStream(), null, TENANT_1);
-
- var insertCaptor = org.mockito.ArgumentCaptor.forClass(CqnInsert.class);
- verify(persistenceService, atLeastOnce()).run(insertCaptor.capture());
- ExtractionJob inserted =
- com.sap.cds.Struct.access(insertCaptor.getValue().entries().get(0)).as(ExtractionJob.class);
- assertThat(inserted.getTenantId()).isEqualTo(TENANT_1);
- assertThat(inserted.getStatus()).isEqualTo(PENDING.name());
- }
-
- @Test
- void triggerExtractionSubmitsDocumentAndUpdatesStatusToSubmitted() {
- mockInsertDatabaseCalls();
- mockAllDatabaseCalls();
- Result statusResult = resultWithJobStatus(PENDING);
- lenient().when(persistenceService.run(any(CqnSelect.class))).thenReturn(statusResult);
- when(documentAiProcessingService.processDocument(any(), any())).thenReturn(DIE_JOB_ID);
-
- ExtractionResult result =
- extractionService.triggerExtraction(
- TEST_PDF, CONTENT_TYPE, contentStream(), null, TENANT_1);
-
- assertThat(result.status()).isEqualTo(ExtractionResult.Status.SUCCESS);
- assertThat(result.documentAiJobId()).isEqualTo(DIE_JOB_ID);
- verify(persistenceService, times(1)).run(any(CqnUpdate.class));
- verify(outboxService).submit(any(), any(), any(Schedule.class));
- }
-
- @Test
- void triggerExtractionDoesNotThrowWhenOutboxIsNull() {
- extractionService.init(
- persistenceService, documentAiProcessingService, null, Duration.ofSeconds(3));
- mockInsertDatabaseCalls();
- mockAllDatabaseCalls();
- Result statusResult = resultWithJobStatus(PENDING);
- lenient().when(persistenceService.run(any(CqnSelect.class))).thenReturn(statusResult);
- when(documentAiProcessingService.processDocument(any(), any())).thenReturn(DIE_JOB_ID);
-
- ExtractionResult result =
- extractionService.triggerExtraction(
- TEST_PDF, CONTENT_TYPE, contentStream(), null, TENANT_1);
-
- assertThat(result.status()).isEqualTo(ExtractionResult.Status.SUCCESS);
- }
-
- @Test
- void triggerExtractionMarksJobFailedOnProcessingError() {
- mockInsertDatabaseCalls();
- mockAllDatabaseCalls();
- Result statusResult = resultWithJobStatus(PENDING);
- lenient().when(persistenceService.run(any(CqnSelect.class))).thenReturn(statusResult);
- doThrow(new RuntimeException("simulated failure"))
- .when(documentAiProcessingService)
- .processDocument(any(), any());
-
- ExtractionResult result =
- extractionService.triggerExtraction(
- TEST_PDF, CONTENT_TYPE, contentStream(), null, TENANT_1);
-
- assertThat(result.status()).isEqualTo(ExtractionResult.Status.FAILED);
- verify(persistenceService, times(1)).run(any(CqnUpdate.class));
- }
-
- @Test
- void triggerExtractionReturnSuccessOnConcurrentUpdate() {
- mockInsertDatabaseCalls();
- mockAllDatabaseCalls();
- Result statusResult = resultWithJobStatus(PENDING);
- lenient().when(persistenceService.run(any(CqnSelect.class))).thenReturn(statusResult);
- when(documentAiProcessingService.processDocument(any(), any())).thenReturn(DIE_JOB_ID);
- Result zeroRowResult = mock(Result.class);
- when(zeroRowResult.rowCount()).thenReturn(0L);
- when(persistenceService.run(any(CqnUpdate.class))).thenReturn(zeroRowResult);
-
- ExtractionResult result =
- extractionService.triggerExtraction(
- TEST_PDF, CONTENT_TYPE, contentStream(), null, TENANT_1);
-
- assertThat(result.status()).isEqualTo(ExtractionResult.Status.SUCCESS);
- }
-
- @Test
- void triggerExtractionThrowsOnInvalidStatusTransition() {
- mockInsertDatabaseCalls();
- mockAllDatabaseCalls();
- Result statusResult = resultWithJobStatus(PENDING);
- lenient().when(persistenceService.run(any(CqnSelect.class))).thenReturn(statusResult);
- doThrow(new IllegalStatusTransitionException("invalid transition"))
- .when(documentAiProcessingService)
- .processDocument(any(), any());
-
- assertThrows(
- IllegalStatusTransitionException.class,
- () ->
- extractionService.triggerExtraction(
- TEST_PDF, CONTENT_TYPE, contentStream(), null, TENANT_1));
-
- verify(persistenceService, never()).run(any(CqnUpdate.class));
- }
-
- @Test
- void updateStatusWithSameStateSkipsUpdate() {
- mockInsertDatabaseCalls();
- Result statusResult = resultWithJobStatus(SUBMITTED);
- lenient().when(persistenceService.run(any(CqnSelect.class))).thenReturn(statusResult);
- when(documentAiProcessingService.processDocument(any(), any())).thenReturn(DIE_JOB_ID);
-
- extractionService.triggerExtraction(TEST_PDF, CONTENT_TYPE, contentStream(), null, TENANT_1);
-
- verify(persistenceService, never()).run(any(CqnUpdate.class));
- }
-
- private InputStream contentStream() {
- return new ByteArrayInputStream(TEST_CONTENT.getBytes(StandardCharsets.UTF_8));
- }
-
- private void mockInsertDatabaseCalls() {
- ExtractionJob createdJob = ExtractionJob.create();
- createdJob.setId("test-job-id");
- lenient().when(insertResult.single(ExtractionJob.class)).thenReturn(createdJob);
- lenient().when(persistenceService.run(any(CqnInsert.class))).thenReturn(insertResult);
- }
-
- private void mockAllDatabaseCalls() {
- mockInsertDatabaseCalls();
- Result updateResult = mock(Result.class);
- lenient().when(updateResult.rowCount()).thenReturn(1L);
- lenient().when(persistenceService.run(any(CqnUpdate.class))).thenReturn(updateResult);
- }
-
- private Result resultWithJobStatus(ExtractionStatus status) {
- ExtractionJob job = ExtractionJob.create();
- job.setStatus(status.name());
- Result result = mock(Result.class);
- lenient().when(result.single(ExtractionJob.class)).thenReturn(job);
- lenient().when(result.first(ExtractionJob.class)).thenReturn(Optional.of(job));
- return result;
- }
-}
diff --git a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/client/DefaultDocumentAiClientTest.java b/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/client/DefaultDocumentAiClientTest.java
deleted file mode 100644
index 9a2226c..0000000
--- a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/client/DefaultDocumentAiClientTest.java
+++ /dev/null
@@ -1,200 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service.client;
-
-import static org.assertj.core.api.Assertions.assertThat;
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
-import static org.mockito.ArgumentMatchers.any;
-import static org.mockito.Mockito.*;
-
-import com.sap.cds.feature.documentai.service.exceptions.DocumentAiException;
-import com.sap.cds.feature.documentai.service.model.DocumentInput;
-import com.sap.cds.feature.documentai.service.model.ExtractionData;
-import com.sap.cloud.sdk.cloudplatform.connectivity.HttpDestination;
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.net.URI;
-import org.apache.hc.client5.http.classic.HttpClient;
-import org.apache.hc.client5.http.classic.methods.HttpPost;
-import org.apache.hc.client5.http.classic.methods.HttpUriRequestBase;
-import org.apache.hc.core5.http.ClassicHttpResponse;
-import org.apache.hc.core5.http.HttpEntity;
-import org.apache.hc.core5.http.io.HttpClientResponseHandler;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Mock;
-import org.mockito.junit.jupiter.MockitoExtension;
-
-@ExtendWith(MockitoExtension.class)
-class DefaultDocumentAiClientTest {
-
- private static final String BASE_URL = "https://example.com/";
- private static final String JOB_ID = "job-abc-123";
-
- @Mock HttpDestination destination;
- @Mock HttpClient httpClient;
- @Mock ClassicHttpResponse response;
- @Mock HttpEntity entity;
-
- DefaultDocumentAiClient client;
- DocumentInput documentInput;
-
- @BeforeEach
- void setUp() {
- client = new DefaultDocumentAiClient(destination, httpClient);
- documentInput =
- new DocumentInput(
- "invoice.pdf",
- "application/pdf",
- new ByteArrayInputStream("pdf-bytes".getBytes()),
- null);
- when(destination.getUri()).thenReturn(URI.create(BASE_URL));
- }
-
- @Test
- void submitDocumentReturnsJobIdOnSuccess() throws IOException {
- mockHttpResponse(200, "{\"id\":\"" + JOB_ID + "\"}");
-
- String result = client.submitDocument(documentInput);
-
- assertThat(result).isEqualTo(JOB_ID);
- }
-
- @Test
- void submitDocumentThrowsRequestExceptionOnNon2xxResponse() throws IOException {
- mockHttpResponse(400, "Bad Request");
-
- assertThatThrownBy(() -> client.submitDocument(documentInput))
- .isInstanceOf(DocumentAiException.Request.class)
- .hasMessageContaining("400");
- }
-
- @Test
- void submitDocumentThrowsConnectivityExceptionOnIoFailure() throws IOException {
- when(httpClient.execute(any(HttpUriRequestBase.class), any(HttpClientResponseHandler.class)))
- .thenThrow(new IOException("timeout"));
-
- assertThatThrownBy(() -> client.submitDocument(documentInput))
- .isInstanceOf(DocumentAiException.Connectivity.class)
- .hasMessageContaining(BASE_URL);
- }
-
- @Test
- void submitDocumentThrowsWhenResponseHasNoIdField() throws IOException {
- mockHttpResponse(200, "{\"status\":\"ok\"}");
-
- assertThatThrownBy(() -> client.submitDocument(documentInput))
- .isInstanceOf(DocumentAiException.Processing.class)
- .hasMessageContaining("Unexpected DIE response");
- }
-
- @Test
- void submitDocumentThrowsWhenResponseIsNotValidJson() throws IOException {
- mockHttpResponse(200, "not-json{{{{");
-
- assertThatThrownBy(() -> client.submitDocument(documentInput))
- .isInstanceOf(DocumentAiException.Processing.class)
- .hasMessageContaining("Failed to parse DIE response");
- }
-
- @Test
- void getJobResultReturnsStatusAndRawBody() throws IOException {
- String responseBody = "{\"id\":\"" + JOB_ID + "\",\"status\":\"DONE\",\"extraction\":{}}";
- mockHttpResponse(200, responseBody);
-
- ExtractionData result = client.getJobResult(JOB_ID);
-
- assertThat(result.dieJobId()).isEqualTo(JOB_ID);
- assertThat(result.dieStatus()).isEqualTo("DONE");
- assertThat(result.rawResult()).isEqualTo(responseBody);
- }
-
- @Test
- void getJobResultThrowsWhenStatusFieldMissing() throws IOException {
- mockHttpResponse(200, "{\"id\":\"" + JOB_ID + "\",\"extraction\":{}}");
-
- assertThatThrownBy(() -> client.getJobResult(JOB_ID))
- .isInstanceOf(DocumentAiException.Processing.class)
- .hasMessageContaining("missing 'status' field");
- }
-
- @Test
- void getJobResultThrowsRequestExceptionOnNon2xxResponse() throws IOException {
- mockHttpResponse(404, "Not Found");
-
- assertThatThrownBy(() -> client.getJobResult(JOB_ID))
- .isInstanceOf(DocumentAiException.Request.class)
- .hasMessageContaining("404");
- }
-
- @Test
- void getJobResultThrowsConnectivityExceptionOnIoFailure() throws IOException {
- when(httpClient.execute(any(HttpUriRequestBase.class), any(HttpClientResponseHandler.class)))
- .thenThrow(new IOException("timeout"));
-
- assertThatThrownBy(() -> client.getJobResult(JOB_ID))
- .isInstanceOf(DocumentAiException.Connectivity.class);
- }
-
- @Test
- void getJobResultThrowsWhenResponseIsNotValidJson() throws IOException {
- mockHttpResponse(200, "not-json{{{{");
-
- assertThatThrownBy(() -> client.getJobResult(JOB_ID))
- .isInstanceOf(DocumentAiException.Processing.class)
- .hasMessageContaining("Failed to parse DIE job result response");
- }
-
- @Test
- void submitDocumentUsesOctetStreamWhenMimeTypeIsNull() throws IOException {
- documentInput =
- new DocumentInput("invoice.pdf", null, new ByteArrayInputStream("bytes".getBytes()), null);
- mockHttpResponse(200, "{\"id\":\"" + JOB_ID + "\"}");
-
- String result = client.submitDocument(documentInput);
-
- assertThat(result).isEqualTo(JOB_ID);
- }
-
- @Test
- @SuppressWarnings("unchecked")
- void submitDocumentUsesEmptyJsonWhenOptionsIsNull() throws IOException {
- ArgumentCaptor requestCaptor = ArgumentCaptor.forClass(HttpPost.class);
- when(httpClient.execute(requestCaptor.capture(), any(HttpClientResponseHandler.class)))
- .thenAnswer(
- invocation -> {
- HttpClientResponseHandler handler = invocation.getArgument(1);
- when(response.getCode()).thenReturn(200);
- when(response.getEntity()).thenReturn(entity);
- when(entity.getContent())
- .thenReturn(new ByteArrayInputStream(("{\"id\":\"" + JOB_ID + "\"}").getBytes()));
- when(entity.getContentLength()).thenReturn(-1L);
- return handler.handleResponse(response);
- });
-
- client.submitDocument(documentInput);
-
- ByteArrayOutputStream buffer = new ByteArrayOutputStream();
- requestCaptor.getValue().getEntity().writeTo(buffer);
- String requestBody = buffer.toString();
- assertThat(requestBody).contains("{}").contains("options");
- }
-
- @SuppressWarnings("unchecked")
- private void mockHttpResponse(int statusCode, String body) throws IOException {
- when(response.getCode()).thenReturn(statusCode);
- when(response.getEntity()).thenReturn(entity);
- when(entity.getContent()).thenReturn(new ByteArrayInputStream(body.getBytes()));
- when(entity.getContentLength()).thenReturn(-1L);
- when(httpClient.execute(any(HttpUriRequestBase.class), any(HttpClientResponseHandler.class)))
- .thenAnswer(
- invocation -> {
- HttpClientResponseHandler handler = invocation.getArgument(1);
- return handler.handleResponse(response);
- });
- }
-}
diff --git a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/exceptions/ExceptionsTest.java b/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/exceptions/ExceptionsTest.java
deleted file mode 100644
index 61a818f..0000000
--- a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/exceptions/ExceptionsTest.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service.exceptions;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import java.io.IOException;
-import org.junit.jupiter.api.Test;
-
-class ExceptionsTest {
-
- @Test
- void documentAiConnectivityExceptionContainsUrlAndCause() {
- IOException cause = new IOException("connection refused");
- String url = "https://example.com/die";
- DocumentAiException.Connectivity ex = new DocumentAiException.Connectivity(url, cause);
-
- assertThat(ex.getMessage()).contains(url);
- assertThat(ex.getCause()).isSameAs(cause);
- }
-
- @Test
- void documentAiProcessingExceptionContainsMessageAndCause() {
- RuntimeException cause = new RuntimeException("timeout");
- String message = "Failed to process jobId=123";
- DocumentAiException.Processing ex = new DocumentAiException.Processing(message, cause);
-
- assertThat(ex.getMessage()).isEqualTo(message);
- assertThat(ex.getCause()).isSameAs(cause);
- }
-
- @Test
- void documentAiRequestExceptionContainsStatusCodeAndBody() {
- String badRequest = "Bad Request";
- DocumentAiException.Request ex = new DocumentAiException.Request(400, badRequest);
-
- assertThat(ex.getStatusCode()).isEqualTo(400);
- assertThat(ex.getResponseBody()).isEqualTo(badRequest);
- assertThat(ex.getMessage()).contains("400").contains(badRequest);
- }
-
- @Test
- void illegalStatusTransitionExceptionContainsMessage() {
- String message = "Invalid transition from PENDING to COMPLETED";
- IllegalStatusTransitionException ex = new IllegalStatusTransitionException(message);
-
- assertThat(ex.getMessage()).isEqualTo(message);
- }
-
- @Test
- void concurrentJobUpdateExceptionContainsMessage() {
- String message = "Concurrent update detected for jobId=abc";
- ConcurrentJobUpdateException ex = new ConcurrentJobUpdateException(message);
-
- assertThat(ex.getMessage()).isEqualTo(message);
- }
-}
diff --git a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/utils/StatusTransitionValidatorTest.java b/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/utils/StatusTransitionValidatorTest.java
deleted file mode 100644
index 7e3ff9d..0000000
--- a/cds-feature-sap-document-ai/src/test/java/com/sap/cds/feature/documentai/service/utils/StatusTransitionValidatorTest.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.service.utils;
-
-import static com.sap.cds.feature.documentai.service.ExtractionStatus.*;
-
-import org.assertj.core.api.Assertions;
-import org.junit.jupiter.api.Test;
-
-class StatusTransitionValidatorTest {
-
- @Test
- void pendingToSubmittedIsValid() {
- Assertions.assertThat(StatusTransitionValidator.isValid(PENDING, SUBMITTED)).isTrue();
- }
-
- @Test
- void pendingToFailedIsValid() {
- Assertions.assertThat(StatusTransitionValidator.isValid(PENDING, FAILED)).isTrue();
- }
-
- @Test
- void submittedToRunningIsValid() {
- Assertions.assertThat(StatusTransitionValidator.isValid(SUBMITTED, RUNNING)).isTrue();
- }
-
- @Test
- void submittedToFailedIsValid() {
- Assertions.assertThat(StatusTransitionValidator.isValid(SUBMITTED, FAILED)).isTrue();
- }
-
- @Test
- void submittedToDoneIsValid() {
- Assertions.assertThat(StatusTransitionValidator.isValid(SUBMITTED, DONE)).isTrue();
- }
-
- @Test
- void runningToDoneIsValid() {
- Assertions.assertThat(StatusTransitionValidator.isValid(RUNNING, DONE)).isTrue();
- }
-
- @Test
- void runningToFailedIsValid() {
- Assertions.assertThat(StatusTransitionValidator.isValid(RUNNING, FAILED)).isTrue();
- }
-
- @Test
- void pendingToDoneIsInvalid() {
- Assertions.assertThat(StatusTransitionValidator.isValid(PENDING, DONE)).isFalse();
- }
-
- @Test
- void runningToPendingIsInvalid() {
- Assertions.assertThat(StatusTransitionValidator.isValid(RUNNING, PENDING)).isFalse();
- }
-
- @Test
- void doneToRunningIsInvalid() {
- Assertions.assertThat(StatusTransitionValidator.isValid(DONE, RUNNING)).isFalse();
- }
-
- @Test
- void sameTransitionIsIdempotent() {
- Assertions.assertThat(StatusTransitionValidator.isValid(RUNNING, RUNNING)).isTrue();
- }
-}
diff --git a/cds-starter-ai/README.md b/cds-starter-ai/README.md
index 2483ebc..16eb517 100644
--- a/cds-starter-ai/README.md
+++ b/cds-starter-ai/README.md
@@ -9,18 +9,6 @@ A zero-source convenience module that bundles all SAP AI plugins for CAP Java in
| [`cds-feature-ai-core`](../cds-feature-ai-core/README.md) | `compile` | Bridges CAP Java to SAP AI Core — resource groups, deployments, configurations, inference client |
| [`cds-feature-recommendations`](../cds-feature-recommendations/README.md) | `runtime` | AI-powered field recommendations for Fiori Elements draft UIs |
-`cds-feature-sap-document-ai` is currently **not** included as the plugin is not yet fully multi-tenant-ready. It will be added to the starter once MT support is complete. Add it as an explicit dependency if you need it today.
-
-## Setup
-
-```xml
-
- com.sap.cds
- cds-starter-ai
- ${cds-ai.version}
-
-```
-
Both plugins auto-register via Java's `ServiceLoader` — no further code changes are required.
For the Node.js side of `cds-feature-recommendations`, also add the `@cap-js/ai` CDS plugin to your `package.json`:
@@ -38,12 +26,10 @@ For the Node.js side of `cds-feature-recommendations`, also add the `@cap-js/ai`
- Java 21+
- CAP Java 4.9+
- An [SAP AI Core](https://help.sap.com/docs/sap-ai-core) service binding (for production use)
-- A [SAP Document Information Extraction](https://help.sap.com/docs/document-ai) service binding (once `cds-feature-sap-document-ai` is included)
-Without the respective bindings the plugins fall back to mock implementations — useful for local development.
+Without the respective binding the plugins fall back to mock implementations — useful for local development.
## Related
- [SAP AI Core Documentation](https://help.sap.com/docs/sap-ai-core)
- [SAP AI SDK for Java](https://github.com/SAP/ai-sdk-java)
-- [`cds-feature-sap-document-ai`](../cds-feature-sap-document-ai/README.md) — standalone document extraction plugin
diff --git a/cds-starter-ai/pom.xml b/cds-starter-ai/pom.xml
index c9cf33f..fc9891b 100644
--- a/cds-starter-ai/pom.xml
+++ b/cds-starter-ai/pom.xml
@@ -33,13 +33,6 @@
runtime
-
diff --git a/coverage-report/pom.xml b/coverage-report/pom.xml
index 6f31290..cf3410c 100644
--- a/coverage-report/pom.xml
+++ b/coverage-report/pom.xml
@@ -25,11 +25,6 @@
com.sap.cds
cds-feature-recommendations
-
- com.sap.cds
- cds-feature-sap-document-ai
-
-
com.sap.cds
@@ -86,9 +81,7 @@
${project.basedir}/../cds-feature-recommendations/target/classes
-
- ${project.basedir}/../cds-feature-sap-document-ai/target/classes
-
+
@@ -113,7 +106,7 @@
cds-feature-ai-core/target/jacoco.exec
cds-feature-recommendations/target/jacoco.exec
- cds-feature-sap-document-ai/target/jacoco.exec
+
integration-tests/spring/target/jacoco.exec
integration-tests/mtx-local/srv/target/jacoco.exec
diff --git a/integration-tests/README.md b/integration-tests/README.md
index 38e4622..a60e85a 100644
--- a/integration-tests/README.md
+++ b/integration-tests/README.md
@@ -69,6 +69,5 @@ The merged report combines execution data from:
- `cds-feature-ai-core/target/jacoco.exec` (unit tests)
- `cds-feature-recommendations/target/jacoco.exec` (unit tests)
-- `cds-feature-sap-document-ai/target/jacoco.exec` (unit tests)
- `integration-tests/spring/target/jacoco.exec` (integration tests)
- `integration-tests/mtx-local/srv/target/jacoco.exec` (MTX integration tests, only when profile is active)
diff --git a/integration-tests/spring/pom.xml b/integration-tests/spring/pom.xml
index 2a16e34..c587788 100644
--- a/integration-tests/spring/pom.xml
+++ b/integration-tests/spring/pom.xml
@@ -42,11 +42,6 @@
cds-feature-recommendations
-
- com.sap.cds
- cds-feature-sap-document-ai
-
-
com.h2database
diff --git a/integration-tests/spring/src/test/java/com/sap/cds/feature/aicore/itest/BaseIntegrationTest.java b/integration-tests/spring/src/test/java/com/sap/cds/feature/aicore/itest/BaseIntegrationTest.java
index 19a1372..3e8761d 100644
--- a/integration-tests/spring/src/test/java/com/sap/cds/feature/aicore/itest/BaseIntegrationTest.java
+++ b/integration-tests/spring/src/test/java/com/sap/cds/feature/aicore/itest/BaseIntegrationTest.java
@@ -22,8 +22,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc;
import org.springframework.test.web.servlet.MockMvc;
@SpringBootTest
diff --git a/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/AbstractDocumentAiTest.java b/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/AbstractDocumentAiTest.java
deleted file mode 100644
index 36f2b7f..0000000
--- a/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/AbstractDocumentAiTest.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.integrationtest;
-
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.ExtractionJob_;
-import com.sap.cds.feature.documentai.handlers.ExtractionPollingHandler;
-import com.sap.cds.feature.documentai.service.ExtractionService;
-import com.sap.cds.feature.documentai.service.client.DocumentAiClient;
-import com.sap.cds.feature.documentai.service.model.DocumentInput;
-import com.sap.cds.feature.documentai.service.model.ExtractionData;
-import com.sap.cds.ql.Delete;
-import com.sap.cds.services.EventContext;
-import com.sap.cds.services.ServiceCatalog;
-import com.sap.cds.services.outbox.OutboxMessageEventContext;
-import com.sap.cds.services.persistence.PersistenceService;
-import com.sap.cds.services.runtime.CdsRuntime;
-import java.time.Duration;
-import java.util.function.Function;
-import org.junit.jupiter.api.AfterEach;
-import org.junit.jupiter.api.BeforeEach;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.context.SpringBootTest;
-
-@SpringBootTest
-abstract class AbstractDocumentAiTest {
-
- @Autowired ServiceCatalog serviceCatalog;
- @Autowired PersistenceService persistenceService;
- @Autowired CdsRuntime cdsRuntime;
-
- @BeforeEach
- @AfterEach
- void resetTestData() {
- persistenceService.run(Delete.from(ExtractionJob_.class));
- }
-
- // Executes a single polling cycle using a test DIE client that returns results supplied by the
- // caller.
- void runPollCycle(
- ExtractionService extractionService, Function jobResultFn) {
- ExtractionPollingHandler handler =
- new ExtractionPollingHandler(
- persistenceService,
- extractionService,
- pollingClient(jobResultFn),
- null,
- cdsRuntime,
- Duration.ZERO);
-
- OutboxMessageEventContext ctx =
- EventContext.create(OutboxMessageEventContext.class, ExtractionPollingHandler.POLL_EVENT);
- handler.pollExtractionJobs(ctx);
- }
-
- private DocumentAiClient pollingClient(Function jobResultFn) {
- return new DocumentAiClient() {
- @Override
- public String submitDocument(DocumentInput input) {
- throw new UnsupportedOperationException("Submission is not supported by this test client.");
- }
-
- @Override
- public ExtractionData getJobResult(String dieJobId) {
- return jobResultFn.apply(dieJobId);
- }
- };
- }
-}
diff --git a/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/DocumentSubmissionTest.java b/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/DocumentSubmissionTest.java
deleted file mode 100644
index 3c6eb8f..0000000
--- a/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/DocumentSubmissionTest.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.integrationtest;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.ExtractionJob;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.ExtractionJob_;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentAiService_;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtraction;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtractionContext;
-import com.sap.cds.feature.documentai.service.ExtractionService;
-import com.sap.cds.feature.documentai.service.model.ExtractionResult;
-import com.sap.cds.ql.Select;
-import com.sap.cds.services.Service;
-import java.io.ByteArrayInputStream;
-import java.nio.charset.StandardCharsets;
-import org.junit.jupiter.api.Test;
-import org.springframework.beans.factory.annotation.Autowired;
-
-class DocumentSubmissionTest extends AbstractDocumentAiTest {
-
- @Autowired ExtractionService extractionService;
-
- @Test
- void submissionWithoutDieBindingCreatesJobAsPending() {
- Service documentAiService =
- serviceCatalog.getService(Service.class, DocumentAiService_.CDS_NAME);
-
- documentAiService.emit(createExtractionContext());
-
- assertThat(
- persistenceService.run(Select.from(ExtractionJob_.class)).listOf(ExtractionJob.class))
- .singleElement()
- .satisfies(
- job -> {
- assertThat(job.getStatus()).isEqualTo("PENDING");
- assertThat(job.getId()).isNotNull();
- });
- }
-
- @Test
- void submissionStoresTenantOnJob() {
- ExtractionResult submission =
- extractionService.triggerExtraction(
- "invoice.pdf", "application/pdf", null, null, "tenant-1");
-
- ExtractionJob job =
- persistenceService
- .run(Select.from(ExtractionJob_.class).byId(submission.internalJobId()))
- .single(ExtractionJob.class);
-
- assertThat(job.getStatus()).isEqualTo("PENDING");
- assertThat(job.getTenantId()).isEqualTo("tenant-1");
- }
-
- @Test
- void jobsForDifferentTenantsAreStoredIndependently() {
- String jobId1 =
- extractionService
- .triggerExtraction("doc.pdf", "application/pdf", null, null, "tenant-a")
- .internalJobId();
- String jobId2 =
- extractionService
- .triggerExtraction("doc.pdf", "application/pdf", null, null, "tenant-b")
- .internalJobId();
-
- ExtractionJob job1 =
- persistenceService
- .run(Select.from(ExtractionJob_.class).byId(jobId1))
- .single(ExtractionJob.class);
- ExtractionJob job2 =
- persistenceService
- .run(Select.from(ExtractionJob_.class).byId(jobId2))
- .single(ExtractionJob.class);
-
- assertThat(job1.getTenantId()).isEqualTo("tenant-a");
- assertThat(job2.getTenantId()).isEqualTo("tenant-b");
- assertThat(job1.getId()).isNotEqualTo(job2.getId());
- }
-
- private DocumentExtractionContext createExtractionContext() {
- DocumentExtraction event = DocumentExtraction.create();
- event.setFileName("test.pdf");
- event.setMimeType("application/pdf");
- event.setContent(new ByteArrayInputStream("pdf-content".getBytes(StandardCharsets.UTF_8)));
-
- DocumentExtractionContext ctx = DocumentExtractionContext.create();
- ctx.setData(event);
- return ctx;
- }
-}
diff --git a/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/EventEmissionTest.java b/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/EventEmissionTest.java
deleted file mode 100644
index ab46f87..0000000
--- a/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/EventEmissionTest.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.integrationtest;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.sap.cds.feature.documentai.service.ExtractionService;
-import com.sap.cds.feature.documentai.service.ExtractionStatus;
-import com.sap.cds.feature.documentai.service.model.ExtractionData;
-import org.junit.jupiter.api.AfterEach;
-import org.junit.jupiter.api.Test;
-import org.springframework.beans.factory.annotation.Autowired;
-
-class EventEmissionTest extends AbstractDocumentAiTest {
-
- private static final String DIE_JOB_ID = "die-job-emit-1";
- private static final String EXTRACTION_RESULT_JSON = "{\"invoiceNumber\":\"INV-042\"}";
-
- @Autowired ExtractionService extractionService;
- @Autowired ExtractionResultCaptureHandler captureHandler;
-
- @AfterEach
- void resetCapture() {
- captureHandler.reset();
- }
-
- @Test
- void pollingHandlerEmitsDocumentExtractionResultWhenJobReachesDone() {
- String jobId =
- extractionService
- .triggerExtraction("invoice.pdf", "application/pdf", null, null, "tenant-1")
- .internalJobId();
-
- extractionService.updateExtractionResult(jobId, ExtractionStatus.SUBMITTED, DIE_JOB_ID, null);
-
- runPollCycle(
- extractionService,
- dieJobId -> new ExtractionData(dieJobId, "DONE", EXTRACTION_RESULT_JSON));
-
- assertThat(captureHandler.getCaptured())
- .singleElement()
- .satisfies(
- captured -> {
- assertThat(captured.getJobId()).isEqualTo(jobId);
- assertThat(captured.getExtractionResult()).isEqualTo(EXTRACTION_RESULT_JSON);
- });
- }
-}
diff --git a/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/ExtractionErrorTest.java b/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/ExtractionErrorTest.java
deleted file mode 100644
index 6ca8d7c..0000000
--- a/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/ExtractionErrorTest.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.integrationtest;
-
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
-
-import com.sap.cds.feature.documentai.service.ExtractionService;
-import com.sap.cds.feature.documentai.service.ExtractionStatus;
-import com.sap.cds.feature.documentai.service.exceptions.IllegalStatusTransitionException;
-import org.junit.jupiter.api.Test;
-import org.springframework.beans.factory.annotation.Autowired;
-
-class ExtractionErrorTest extends AbstractDocumentAiTest {
-
- private static final String DIE_JOB_ID = "die-1";
-
- @Autowired ExtractionService extractionService;
-
- @Test
- void invalidStatusTransitionThrows() {
- String jobId =
- extractionService
- .triggerExtraction("invoice.pdf", "application/pdf", null, null, "tenant-1")
- .internalJobId();
-
- extractionService.updateExtractionResult(jobId, ExtractionStatus.SUBMITTED, DIE_JOB_ID, null);
- extractionService.updateExtractionResult(
- jobId, ExtractionStatus.DONE, DIE_JOB_ID, "{\"result\":\"ok\"}");
-
- assertThatThrownBy(
- () ->
- extractionService.updateExtractionResult(
- jobId, ExtractionStatus.SUBMITTED, DIE_JOB_ID, null))
- .isInstanceOf(IllegalStatusTransitionException.class)
- .hasMessageContaining(ExtractionStatus.DONE.name())
- .hasMessageContaining(ExtractionStatus.SUBMITTED.name());
- }
-}
diff --git a/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/ExtractionLifecycleTest.java b/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/ExtractionLifecycleTest.java
deleted file mode 100644
index 8cc0017..0000000
--- a/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/ExtractionLifecycleTest.java
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.integrationtest;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.ExtractionJob;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.ExtractionJob_;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtractionResult;
-import com.sap.cds.feature.documentai.service.ExtractionService;
-import com.sap.cds.feature.documentai.service.ExtractionStatus;
-import com.sap.cds.feature.documentai.service.model.ExtractionData;
-import com.sap.cds.feature.documentai.service.model.ExtractionResult;
-import com.sap.cds.ql.Select;
-import java.util.List;
-import java.util.Map;
-import org.junit.jupiter.api.AfterEach;
-import org.junit.jupiter.api.Test;
-import org.springframework.beans.factory.annotation.Autowired;
-
-class ExtractionLifecycleTest extends AbstractDocumentAiTest {
-
- private static final String DIE_JOB_ID = "die-job-1";
- private static final String EXTRACTION_RESULT_JSON = "{\"invoiceNumber\":\"INV-001\"}";
-
- @Autowired ExtractionService extractionService;
- @Autowired ExtractionResultCaptureHandler captureHandler;
-
- @AfterEach
- void resetCapture() {
- captureHandler.reset();
- }
-
- @Test
- void jobAdvancesThroughLifecycleToDone() {
- ExtractionResult submission = submit("invoice.pdf");
- String jobId = submission.internalJobId();
- assertThat(submission.status()).isEqualTo(ExtractionResult.Status.PENDING);
-
- extractionService.updateExtractionResult(jobId, ExtractionStatus.SUBMITTED, DIE_JOB_ID, null);
- extractionService.updateExtractionResult(jobId, ExtractionStatus.RUNNING, DIE_JOB_ID, null);
- extractionService.updateExtractionResult(
- jobId, ExtractionStatus.DONE, DIE_JOB_ID, EXTRACTION_RESULT_JSON);
-
- ExtractionJob job = job(jobId);
- assertThat(job.getStatus()).isEqualTo(ExtractionStatus.DONE.name());
- assertThat(job.getDocumentAiJobId()).isEqualTo(DIE_JOB_ID);
- assertThat(job.getExtractionResult()).isEqualTo(EXTRACTION_RESULT_JSON);
- }
-
- @Test
- void jobCanTransitionToFailed() {
- String jobId = submit("bad.pdf").internalJobId();
-
- extractionService.updateExtractionResult(jobId, ExtractionStatus.SUBMITTED, DIE_JOB_ID, null);
- extractionService.updateExtractionResult(jobId, ExtractionStatus.FAILED, DIE_JOB_ID, null);
-
- ExtractionJob job = job(jobId);
- assertThat(job.getStatus()).isEqualTo(ExtractionStatus.FAILED.name());
- assertThat(job.getDocumentAiJobId()).isEqualTo(DIE_JOB_ID);
- }
-
- @Test
- void singleDocumentFullRoundTripViaPollCycle() {
- String jobId = submit("invoice.pdf").internalJobId();
- extractionService.updateExtractionResult(jobId, ExtractionStatus.SUBMITTED, DIE_JOB_ID, null);
-
- runPollCycle(
- extractionService,
- dieJobId -> new ExtractionData(dieJobId, "DONE", EXTRACTION_RESULT_JSON));
-
- ExtractionJob job = job(jobId);
- assertThat(job.getStatus()).isEqualTo(ExtractionStatus.DONE.name());
- assertThat(job.getExtractionResult()).isEqualTo(EXTRACTION_RESULT_JSON);
- assertThat(captureHandler.getCaptured())
- .singleElement()
- .satisfies(
- event -> {
- assertThat(event.getJobId()).isEqualTo(jobId);
- assertThat(event.getExtractionResult()).isEqualTo(EXTRACTION_RESULT_JSON);
- });
- }
-
- @Test
- void twoParallelDocumentsReachDoneIndependently() {
- String dieJobId1 = "die-job-parallel-1";
- String dieJobId2 = "die-job-parallel-2";
- String result1 = "{\"invoiceNumber\":\"INV-A\"}";
- String result2 = "{\"invoiceNumber\":\"INV-B\"}";
-
- String jobId1 = submit("doc-a.pdf").internalJobId();
- String jobId2 = submit("doc-b.pdf").internalJobId();
-
- extractionService.updateExtractionResult(jobId1, ExtractionStatus.SUBMITTED, dieJobId1, null);
- extractionService.updateExtractionResult(jobId2, ExtractionStatus.SUBMITTED, dieJobId2, null);
-
- Map resultsByDieJobId = Map.of(dieJobId1, result1, dieJobId2, result2);
- runPollCycle(
- extractionService,
- dieJobId -> new ExtractionData(dieJobId, "DONE", resultsByDieJobId.get(dieJobId)));
-
- List jobs =
- persistenceService.run(Select.from(ExtractionJob_.class)).listOf(ExtractionJob.class);
- assertThat(jobs)
- .extracting(ExtractionJob::getStatus)
- .containsOnly(ExtractionStatus.DONE.name());
-
- assertThat(job(jobId1).getExtractionResult()).isEqualTo(result1);
- assertThat(job(jobId2).getExtractionResult()).isEqualTo(result2);
-
- assertThat(captureHandler.getCaptured())
- .extracting(DocumentExtractionResult::getJobId)
- .containsExactlyInAnyOrder(jobId1, jobId2);
- }
-
- @Test
- void pollCycleContinuesWhenOneJobFails() {
- // one polling request fails mid-cycle — the other job must still reach DONE
- String dieJobIdA = "die-job-ok";
- String dieJobIdB = "die-job-error";
-
- String jobIdA = submit("doc-a.pdf").internalJobId();
- String jobIdB = submit("doc-b.pdf").internalJobId();
-
- extractionService.updateExtractionResult(jobIdA, ExtractionStatus.SUBMITTED, dieJobIdA, null);
- extractionService.updateExtractionResult(jobIdB, ExtractionStatus.SUBMITTED, dieJobIdB, null);
-
- runPollCycle(
- extractionService,
- dieJobId -> {
- if (dieJobId.equals(dieJobIdB)) throw new RuntimeException("simulated DIE failure");
- return new ExtractionData(dieJobId, "DONE", EXTRACTION_RESULT_JSON);
- });
-
- assertThat(job(jobIdA).getStatus()).isEqualTo(ExtractionStatus.DONE.name());
- assertThat(job(jobIdB).getStatus()).isEqualTo(ExtractionStatus.SUBMITTED.name());
-
- assertThat(captureHandler.getCaptured())
- .singleElement()
- .satisfies(event -> assertThat(event.getJobId()).isEqualTo(jobIdA));
- }
-
- private ExtractionResult submit(String fileName) {
- return extractionService.triggerExtraction(fileName, "application/pdf", null, null, "tenant-1");
- }
-
- private ExtractionJob job(String jobId) {
- return persistenceService
- .run(Select.from(ExtractionJob_.class).byId(jobId))
- .single(ExtractionJob.class);
- }
-}
diff --git a/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/ExtractionResultCaptureHandler.java b/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/ExtractionResultCaptureHandler.java
deleted file mode 100644
index b9a4283..0000000
--- a/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/ExtractionResultCaptureHandler.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.integrationtest;
-
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentAiService_;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtractionResult;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtractionResultContext;
-import com.sap.cds.services.handler.EventHandler;
-import com.sap.cds.services.handler.annotations.After;
-import com.sap.cds.services.handler.annotations.ServiceName;
-import java.util.ArrayList;
-import java.util.List;
-import org.springframework.stereotype.Component;
-
-@Component
-@ServiceName(
- value = DocumentAiService_.CDS_NAME,
- type = com.sap.cds.services.cds.ApplicationService.class)
-class ExtractionResultCaptureHandler implements EventHandler {
-
- private final List captured = new ArrayList<>();
-
- @After(event = DocumentExtractionResultContext.CDS_NAME)
- public void onExtractionResult(DocumentExtractionResultContext context) {
- captured.add(context.getData());
- }
-
- public List getCaptured() {
- return List.copyOf(captured);
- }
-
- public void reset() {
- captured.clear();
- }
-}
diff --git a/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/PluginLoadTest.java b/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/PluginLoadTest.java
deleted file mode 100644
index 5f861b6..0000000
--- a/integration-tests/spring/src/test/java/com/sap/cds/feature/documentai/integrationtest/PluginLoadTest.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package com.sap.cds.feature.documentai.integrationtest;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.ExtractionJob_;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentAiService_;
-import com.sap.cds.ql.Select;
-import com.sap.cds.services.Service;
-import org.junit.jupiter.api.Test;
-
-class PluginLoadTest extends AbstractDocumentAiTest {
-
- @Test
- void documentAiServiceIsRegisteredInCatalog() {
- Service documentAiService =
- serviceCatalog.getService(Service.class, DocumentAiService_.CDS_NAME);
- assertThat(documentAiService).isNotNull();
- }
-
- @Test
- void extractionJobTableIsAccessible() {
- persistenceService.run(Select.from(ExtractionJob_.class).columns(ExtractionJob_::ID));
- }
-}
diff --git a/integration-tests/spring/test-service.cds b/integration-tests/spring/test-service.cds
index f14b2c1..51e7738 100644
--- a/integration-tests/spring/test-service.cds
+++ b/integration-tests/spring/test-service.cds
@@ -1,7 +1,5 @@
using {itest} from '../db/schema';
using { AICore } from 'com.sap.cds/ai';
-using from 'com.sap.cds/sap-document-ai';
-
service TestService {
entity Products as projection on itest.Products;
}
diff --git a/pom.xml b/pom.xml
index 6a43487..99c7125 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,7 +34,6 @@
cds-feature-ai-core
cds-feature-recommendations
- cds-feature-sap-document-ai
cds-starter-ai
@@ -166,12 +165,6 @@
${revision}
-
- com.sap.cds
- cds-feature-sap-document-ai
- ${revision}
-
-
com.sap.cds
cds-feature-ai-integration-tests-spring
diff --git a/samples/bookshop/app/supplier-invoices/fiori-service.cds b/samples/bookshop/app/supplier-invoices/fiori-service.cds
deleted file mode 100644
index fa54eea..0000000
--- a/samples/bookshop/app/supplier-invoices/fiori-service.cds
+++ /dev/null
@@ -1,88 +0,0 @@
-using SupplierInvoicesService as service from '../../srv/supplier-invoices-service';
-
-////////////////////////////////////////////////////////////////////////////
-//
-// Supplier Invoices List Page
-//
-annotate service.SupplierInvoices with @(UI: {
- SelectionFields: [
- invoiceNumber,
- supplier_ID,
- status_code
- ],
- LineItem : [
- {Value: invoiceNumber, Label: '{i18n>InvoiceNumber}'},
- {Value: supplier.name, Label: '{i18n>Supplier}'},
- {Value: invoiceDate, Label: '{i18n>InvoiceDate}'},
- {Value: totalAmount, Label: '{i18n>TotalAmount}'},
- {Value: currency_code, Label: '{i18n>Currency}'},
- {Value: status.name, Label: '{i18n>Status}'}
- ]
-});
-
-////////////////////////////////////////////////////////////////////////////
-//
-// Supplier Invoices Object Page
-//
-annotate service.SupplierInvoices with @(UI: {
- HeaderInfo: {
- TypeName : '{i18n>SupplierInvoice}',
- TypeNamePlural: '{i18n>SupplierInvoices}',
- Title : {Value: invoiceNumber},
- Description : {Value: supplier.name}
- },
- Identification: [{Value: invoiceNumber}],
- Facets : [
- {
- $Type : 'UI.ReferenceFacet',
- ID : 'InvoiceDetails',
- Label : '{i18n>InvoiceDetails}',
- Target: '@UI.FieldGroup#Details'
- },
- {
- $Type : 'UI.ReferenceFacet',
- ID : 'AttachmentsFacet',
- Label : '{i18n>Attachments}',
- Target: 'attachments/@UI.LineItem'
- }
- ],
- FieldGroup #Details: {Data: [
- {Value: invoiceNumber, Label: '{i18n>InvoiceNumber}'},
- {Value: invoiceDate, Label: '{i18n>InvoiceDate}'},
- {Value: supplier_ID, Label: '{i18n>Supplier}'},
- {Value: totalAmount, Label: '{i18n>TotalAmount}'},
- {Value: currency_code, Label: '{i18n>Currency}'},
- {Value: status_code, Label: '{i18n>Status}'}
- ]}
-});
-
-// Action button on Object Page header
-annotate service.SupplierInvoices with @(
- UI.Identification : [
- {
- $Type : 'UI.DataFieldForAction',
- Action : 'SupplierInvoicesService.extractInvoiceData',
- Label : 'Extract Invoice Data'
- }
- ]
-);
-
-annotate service.SupplierInvoices with {
- supplier @Common: {
- Text : supplier.name,
- TextArrangement: #TextOnly,
- ValueList : {
- CollectionPath: 'Suppliers',
- Parameters : [{
- $Type : 'Common.ValueListParameterInOut',
- ValueListProperty: 'ID',
- LocalDataProperty: supplier_ID
- }]
- }
- };
- status @Common: {
- Text : status.name,
- TextArrangement : #TextOnly,
- ValueListWithFixedValues: true
- };
-}
diff --git a/samples/bookshop/app/supplier-invoices/webapp/Component.js b/samples/bookshop/app/supplier-invoices/webapp/Component.js
deleted file mode 100644
index a3d3fb0..0000000
--- a/samples/bookshop/app/supplier-invoices/webapp/Component.js
+++ /dev/null
@@ -1,6 +0,0 @@
-sap.ui.define(["sap/fe/core/AppComponent"], function (AppComponent) {
- "use strict";
- return AppComponent.extend("supplierinvoices.Component", {
- metadata: { manifest: "json" }
- });
-});
diff --git a/samples/bookshop/app/supplier-invoices/webapp/i18n/i18n.properties b/samples/bookshop/app/supplier-invoices/webapp/i18n/i18n.properties
deleted file mode 100644
index 6741d50..0000000
--- a/samples/bookshop/app/supplier-invoices/webapp/i18n/i18n.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-appTitle=Supplier Invoices
-appDescription=Manage supplier invoices and extract data from PDF documents
-InvoiceNumber=Invoice Number
-Supplier=Supplier
-InvoiceDate=Invoice Date
-TotalAmount=Total Amount
-Currency=Currency
-Status=Status
-InvoiceDetails=Invoice Details
-Attachments=Attachments
-SupplierInvoice=Supplier Invoice
-SupplierInvoices=Supplier Invoices
diff --git a/samples/bookshop/app/supplier-invoices/webapp/i18n/i18n_de.properties b/samples/bookshop/app/supplier-invoices/webapp/i18n/i18n_de.properties
deleted file mode 100644
index f6d3f83..0000000
--- a/samples/bookshop/app/supplier-invoices/webapp/i18n/i18n_de.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-appTitle=Lieferantenrechnungen
-appDescription=Lieferantenrechnungen verwalten und Daten aus PDF-Dokumenten extrahieren
-InvoiceNumber=Rechnungsnummer
-Supplier=Lieferant
-InvoiceDate=Rechnungsdatum
-TotalAmount=Gesamtbetrag
-Currency=Waehrung
-Status=Status
-InvoiceDetails=Rechnungsdetails
-Attachments=Anlagen
-SupplierInvoice=Lieferantenrechnung
-SupplierInvoices=Lieferantenrechnungen
diff --git a/samples/bookshop/app/supplier-invoices/webapp/manifest.json b/samples/bookshop/app/supplier-invoices/webapp/manifest.json
deleted file mode 100644
index 116a92a..0000000
--- a/samples/bookshop/app/supplier-invoices/webapp/manifest.json
+++ /dev/null
@@ -1,123 +0,0 @@
-{
- "_version": "1.49.0",
- "sap.app": {
- "applicationVersion": {
- "version": "1.0.0"
- },
- "id": "bookshop.supplier-invoices",
- "type": "application",
- "title": "{{appTitle}}",
- "description": "{{appDescription}}",
- "i18n": "i18n/i18n.properties",
- "dataSources": {
- "SupplierInvoicesService": {
- "uri": "/odata/v4/SupplierInvoicesService/",
- "type": "OData",
- "settings": {
- "odataVersion": "4.0"
- }
- }
- },
- "crossNavigation": {
- "inbounds": {
- "intent-SupplierInvoices-manage": {
- "signature": {
- "parameters": {},
- "additionalParameters": "allowed"
- },
- "semanticObject": "SupplierInvoices",
- "action": "manage"
- }
- }
- }
- },
- "sap.ui": {
- "technology": "UI5",
- "fullWidth": false,
- "deviceTypes": {
- "desktop": true,
- "tablet": true,
- "phone": true
- }
- },
- "sap.ui5": {
- "dependencies": {
- "minUI5Version": "1.115.1",
- "libs": {
- "sap.fe.templates": {}
- }
- },
- "models": {
- "i18n": {
- "type": "sap.ui.model.resource.ResourceModel",
- "uri": "i18n/i18n.properties"
- },
- "": {
- "dataSource": "SupplierInvoicesService",
- "settings": {
- "operationMode": "Server",
- "autoExpandSelect": true,
- "earlyRequests": true,
- "groupProperties": {
- "default": {
- "submit": "Auto"
- }
- }
- }
- }
- },
- "routing": {
- "routes": [
- {
- "pattern": ":?query:",
- "name": "InvoicesList",
- "target": "InvoicesList"
- },
- {
- "pattern": "SupplierInvoices({key}):?query:",
- "name": "InvoiceDetails",
- "target": "InvoiceDetails"
- }
- ],
- "targets": {
- "InvoicesList": {
- "type": "Component",
- "id": "InvoicesList",
- "name": "sap.fe.templates.ListReport",
- "options": {
- "settings": {
- "contextPath": "/SupplierInvoices",
- "initialLoad": true,
- "navigation": {
- "SupplierInvoices": {
- "detail": {
- "route": "InvoiceDetails"
- }
- }
- }
- }
- }
- },
- "InvoiceDetails": {
- "type": "Component",
- "id": "InvoiceDetails",
- "name": "sap.fe.templates.ObjectPage",
- "options": {
- "settings": {
- "contextPath": "/SupplierInvoices",
- "editableHeaderContent": false
- }
- }
- }
- }
- },
- "contentDensities": {
- "compact": true,
- "cozy": true
- }
- },
- "sap.fiori": {
- "registrationIds": [],
- "archeType": "transactional"
- }
-}
diff --git a/samples/bookshop/db/schema.cds b/samples/bookshop/db/schema.cds
index c13c016..6bff440 100644
--- a/samples/bookshop/db/schema.cds
+++ b/samples/bookshop/db/schema.cds
@@ -36,29 +36,4 @@ entity Genres : CodeList {
parent : Association to Genres;
children : Composition of many Genres
on children.parent = $self;
-}
-
-// --- Procurement domain (Document AI showcase) ---
-
-entity Suppliers : managed, cuid {
- @mandatory name : String(200);
- country : String(3);
- email : String(200);
- invoices : Association to many SupplierInvoices
- on invoices.supplier = $self;
-}
-
-@cds.odata.valuelist
-entity InvoiceStatus : CodeList {
- key code : String(20);
-}
-
-entity SupplierInvoices : managed, cuid {
- invoiceNumber : String(50);
- invoiceDate : Date;
- supplier : Association to Suppliers;
- totalAmount : Decimal;
- currency : Currency;
- status : Association to InvoiceStatus;
- documentAiJobId : String;
-}
+}
\ No newline at end of file
diff --git a/samples/bookshop/package.json b/samples/bookshop/package.json
index 3d1ab66..a3884b0 100644
--- a/samples/bookshop/package.json
+++ b/samples/bookshop/package.json
@@ -14,9 +14,6 @@
},
"cds": {
"requires": {
- "com.sap.cds/sap-document-ai": {
- "model": "com.sap.cds/sap-document-ai"
- },
"com.sap.cds/cds-feature-attachments": {
"model": "com.sap.cds/cds-feature-attachments"
}
diff --git a/samples/bookshop/pom.xml b/samples/bookshop/pom.xml
index 32a66ff..a19d522 100644
--- a/samples/bookshop/pom.xml
+++ b/samples/bookshop/pom.xml
@@ -22,7 +22,6 @@
5.0.0
4.1.0
0.0.1-alpha
- 0.0.1-alpha
1.5.0
@@ -59,12 +58,6 @@
${cds-starter-ai.version}
-
- com.sap.cds
- cds-feature-sap-document-ai
- ${cds-feature-sap-document-ai.version}
-
-
com.sap.cds
cds-feature-attachments
diff --git a/samples/bookshop/srv/pom.xml b/samples/bookshop/srv/pom.xml
index 69ae9e9..c7088ce 100644
--- a/samples/bookshop/srv/pom.xml
+++ b/samples/bookshop/srv/pom.xml
@@ -66,11 +66,6 @@
cds-feature-recommendations
-
- com.sap.cds
- cds-feature-sap-document-ai
-
-
com.sap.cds
cds-feature-attachments
diff --git a/samples/bookshop/srv/src/main/java/customer/bookshop/handlers/DocumentExtractionResultHandler.java b/samples/bookshop/srv/src/main/java/customer/bookshop/handlers/DocumentExtractionResultHandler.java
deleted file mode 100644
index 3a87cf2..0000000
--- a/samples/bookshop/srv/src/main/java/customer/bookshop/handlers/DocumentExtractionResultHandler.java
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package customer.bookshop.handlers;
-
-import cds.gen.sap.capire.bookshop.SupplierInvoices;
-import cds.gen.sap.capire.bookshop.SupplierInvoices_;
-import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtractionResult;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtractionResultContext;
-import com.sap.cds.ql.Update;
-import com.sap.cds.services.cds.ApplicationService;
-import com.sap.cds.services.handler.EventHandler;
-import com.sap.cds.services.handler.annotations.On;
-import com.sap.cds.services.handler.annotations.ServiceName;
-import com.sap.cds.services.persistence.PersistenceService;
-import java.math.BigDecimal;
-import java.util.HashMap;
-import java.util.Map;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-
-/**
- * Handles extraction results from the SAP Document AI plugin. Parses the extraction JSON returned
- * by the DIE service and populates the corresponding SupplierInvoice entity with the extracted
- * header fields (invoice number, date, total amount, currency).
- */
-@Component
-@ServiceName(value = "*", type = ApplicationService.class)
-public class DocumentExtractionResultHandler implements EventHandler {
-
- private static final Logger logger =
- LoggerFactory.getLogger(DocumentExtractionResultHandler.class);
- private static final ObjectMapper objectMapper = new ObjectMapper();
- private static final String STATUS_EXTRACTED = "EXTRACTED";
- private static final String STATUS_EXTRACTING = "EXTRACTING";
- private static final String STATUS_FAILED = "FAILED";
-
- @Autowired private PersistenceService db;
-
- @On(event = DocumentExtractionResultContext.CDS_NAME)
- public void onExtractionCompleted(DocumentExtractionResultContext context) {
- DocumentExtractionResult data = context.getData();
- logger.info("[bookshop] Invoice extraction completed! jobId={}", data.getJobId());
-
- try {
- JsonNode root = objectMapper.readTree(data.getExtractionResult());
- JsonNode headerFields = root.path("extraction").path("headerFields");
-
- // Extract relevant header fields from the DIE response
- String documentNumber = getHeaderFieldValue(headerFields, "documentNumber");
- String documentDate = getHeaderFieldValue(headerFields, "documentDate");
- String currencyCode = getHeaderFieldValue(headerFields, "currencyCode");
- BigDecimal grossAmount = getHeaderFieldNumber(headerFields, "grossAmount");
-
- logger.info(
- "[bookshop] Extracted: number={}, date={}, amount={} {}",
- documentNumber,
- documentDate,
- grossAmount,
- currencyCode);
-
- // Update the invoice that is currently in EXTRACTING status.
- // In a production app you would correlate by a stored jobId; for this sample
- // we use the status as a simple correlation mechanism.
- Map updateData = new HashMap<>();
- updateData.put(SupplierInvoices.STATUS_CODE, STATUS_EXTRACTED);
- if (documentNumber != null) updateData.put(SupplierInvoices.INVOICE_NUMBER, documentNumber);
- if (documentDate != null) updateData.put(SupplierInvoices.INVOICE_DATE, documentDate);
- if (grossAmount != null) updateData.put(SupplierInvoices.TOTAL_AMOUNT, grossAmount);
- if (currencyCode != null) updateData.put(SupplierInvoices.CURRENCY_CODE, currencyCode);
-
- long updated =
- db.run(
- Update.entity(SupplierInvoices_.CDS_NAME)
- .where(i -> i.get(SupplierInvoices.STATUS_CODE).eq(STATUS_EXTRACTING))
- .data(updateData))
- .rowCount();
-
- logger.info("[bookshop] Updated {} invoice(s) with extracted data", updated);
-
- } catch (Exception e) {
- logger.error("[bookshop] Failed to process extraction result", e);
- db.run(
- Update.entity(SupplierInvoices_.CDS_NAME)
- .where(i -> i.get(SupplierInvoices.STATUS_CODE).eq(STATUS_EXTRACTING))
- .data(Map.of(SupplierInvoices.STATUS_CODE, STATUS_FAILED)));
- }
-
- context.setCompleted();
- }
-
- private String getHeaderFieldValue(JsonNode headerFields, String fieldName) {
- for (JsonNode field : headerFields) {
- if (fieldName.equals(field.path("name").asText())) {
- return field.path("value").asText(null);
- }
- }
- return null;
- }
-
- private BigDecimal getHeaderFieldNumber(JsonNode headerFields, String fieldName) {
- for (JsonNode field : headerFields) {
- if (fieldName.equals(field.path("name").asText())) {
- JsonNode value = field.path("value");
- if (value.isNumber()) {
- return BigDecimal.valueOf(value.doubleValue());
- }
- return null;
- }
- }
- return null;
- }
-}
diff --git a/samples/bookshop/srv/src/main/java/customer/bookshop/handlers/SupplierInvoiceHandler.java b/samples/bookshop/srv/src/main/java/customer/bookshop/handlers/SupplierInvoiceHandler.java
deleted file mode 100644
index fd31624..0000000
--- a/samples/bookshop/srv/src/main/java/customer/bookshop/handlers/SupplierInvoiceHandler.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/*
- * © 2026 SAP SE or an SAP affiliate company and cds-ai contributors.
- */
-package customer.bookshop.handlers;
-
-import cds.gen.sap.capire.bookshop.SupplierInvoices;
-import cds.gen.sap.capire.bookshop.SupplierInvoicesAttachments;
-import cds.gen.sap.capire.bookshop.SupplierInvoicesAttachments_;
-import cds.gen.sap.capire.bookshop.SupplierInvoices_;
-import cds.gen.supplierinvoicesservice.SupplierInvoicesExtractInvoiceDataContext;
-import cds.gen.supplierinvoicesservice.SupplierInvoicesService_;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentAiService_;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtraction;
-import com.sap.cds.feature.documentai.generated.cds4j.sap.document.ai.documentaiservice.DocumentExtractionContext;
-import com.sap.cds.ql.Select;
-import com.sap.cds.ql.Update;
-import com.sap.cds.ql.cqn.CqnAnalyzer;
-import com.sap.cds.reflect.CdsModel;
-import com.sap.cds.services.ErrorStatuses;
-import com.sap.cds.services.Service;
-import com.sap.cds.services.ServiceCatalog;
-import com.sap.cds.services.ServiceException;
-import com.sap.cds.services.handler.EventHandler;
-import com.sap.cds.services.handler.annotations.On;
-import com.sap.cds.services.handler.annotations.ServiceName;
-import com.sap.cds.services.persistence.PersistenceService;
-import java.io.InputStream;
-import java.util.Map;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-
-@Component
-@ServiceName(SupplierInvoicesService_.CDS_NAME)
-public class SupplierInvoiceHandler implements EventHandler {
-
- private static final Logger logger = LoggerFactory.getLogger(SupplierInvoiceHandler.class);
- private static final ObjectMapper objectMapper = new ObjectMapper();
- private static final String STATUS_EXTRACTING = "EXTRACTING";
-
- @Autowired private PersistenceService db;
- @Autowired private CdsModel cdsModel;
- @Autowired private ServiceCatalog serviceCatalog;
-
- @On(event = SupplierInvoicesExtractInvoiceDataContext.CDS_NAME)
- public void onExtractInvoiceData(SupplierInvoicesExtractInvoiceDataContext context) {
- String invoiceId =
- (String)
- CqnAnalyzer.create(cdsModel)
- .analyze(context.getCqn())
- .rootKeys()
- .get(SupplierInvoices.ID);
-
- if (invoiceId == null) {
- throw new ServiceException(ErrorStatuses.BAD_REQUEST, "Could not determine invoice ID.");
- }
-
- // Read the first attachment for this invoice
- var attachment =
- db.run(
- Select.from(SupplierInvoicesAttachments_.class)
- .columns(a -> a.ID(), a -> a.fileName(), a -> a.mimeType(), a -> a.content())
- .where(a -> a.up__ID().eq(invoiceId))
- .limit(1))
- .first(SupplierInvoicesAttachments.class)
- .orElse(null);
-
- if (attachment == null) {
- throw new ServiceException(
- ErrorStatuses.BAD_REQUEST,
- "No attachment found for this invoice. Upload a PDF document first.");
- }
-
- String fileName = attachment.getFileName();
- String mimeType =
- attachment.getMimeType() != null ? attachment.getMimeType() : "application/pdf";
- InputStream content = attachment.getContent();
-
- if (content == null) {
- throw new ServiceException(
- ErrorStatuses.BAD_REQUEST, "Attachment has no content. Please re-upload the document.");
- }
-
- // Emit DocumentExtraction event to the doc-ai plugin
- Service documentAiService =
- serviceCatalog.getService(Service.class, DocumentAiService_.CDS_NAME);
- if (documentAiService == null) {
- throw new ServiceException(
- ErrorStatuses.SERVER_ERROR,
- "Document AI service is not available. Ensure cds-feature-sap-document-ai is configured.");
- }
-
- DocumentExtraction event = DocumentExtraction.create();
- event.setFileName(fileName);
- event.setMimeType(mimeType);
- event.setContent(content);
- try {
- event.setOptions(
- objectMapper.writeValueAsString(
- Map.of(
- "clientId", "default",
- "documentType", "invoice",
- "schemaId", "cf8cc8a9-1eee-42d9-9a3e-507a61baac23",
- "templateId", "detect")));
- } catch (JsonProcessingException e) {
- throw new ServiceException(
- ErrorStatuses.SERVER_ERROR, "Failed to build extraction options", e);
- }
-
- DocumentExtractionContext eventContext = DocumentExtractionContext.create();
- eventContext.setData(event);
- documentAiService.emit(eventContext);
-
- // Update invoice status to EXTRACTING
- db.run(
- Update.entity(SupplierInvoices_.CDS_NAME)
- .where(i -> i.get(SupplierInvoices.ID).eq(invoiceId))
- .data(Map.of(SupplierInvoices.STATUS_CODE, STATUS_EXTRACTING)));
-
- logger.info("[SupplierInvoiceHandler] Emitted DocumentExtraction for invoiceId={}", invoiceId);
- context.setResult(true);
- }
-}
diff --git a/samples/bookshop/srv/src/main/resources/application.yaml b/samples/bookshop/srv/src/main/resources/application.yaml
index 6fe72b2..e6742b2 100644
--- a/samples/bookshop/srv/src/main/resources/application.yaml
+++ b/samples/bookshop/srv/src/main/resources/application.yaml
@@ -2,7 +2,6 @@ logging:
level:
root: INFO
com.sap.cds.feature.aicore.core: DEBUG
- com.sap.cds.feature.documentai: DEBUG
---
spring:
datasource:
@@ -36,9 +35,6 @@ cds:
persistent:
scheduler:
enabled: true
- document-ai:
- polling:
- interval-seconds: 5
---
management:
endpoint:
From a066664ab16032cca1050ce5999da75ee8fbe440 Mon Sep 17 00:00:00 2001
From: samyuktaprabhu <33195453+samyuktaprabhu@users.noreply.github.com>
Date: Fri, 31 Jul 2026 16:07:42 +0200
Subject: [PATCH 2/2] revert: remove more references + dummy file
---
.../app/appconfig/fioriSandboxConfig.json | 22 ------------------
samples/bookshop/app/services.cds | 1 -
samples/bookshop/dummy invoice.pdf | Bin 48016 -> 0 bytes
samples/bookshop/srv/attachments.cds | 6 -----
.../srv/supplier-invoices-service.cds | 11 ---------
5 files changed, 40 deletions(-)
delete mode 100644 samples/bookshop/dummy invoice.pdf
delete mode 100644 samples/bookshop/srv/attachments.cds
delete mode 100644 samples/bookshop/srv/supplier-invoices-service.cds
diff --git a/samples/bookshop/app/appconfig/fioriSandboxConfig.json b/samples/bookshop/app/appconfig/fioriSandboxConfig.json
index 32d1a07..ff2ac49 100644
--- a/samples/bookshop/app/appconfig/fioriSandboxConfig.json
+++ b/samples/bookshop/app/appconfig/fioriSandboxConfig.json
@@ -36,14 +36,6 @@
"title": "Manage Books",
"targetURL": "#Books-manage"
}
- },
- {
- "id": "ManageInvoices",
- "tileType": "sap.ushell.ui.tile.StaticTile",
- "properties": {
- "title": "Supplier Invoices",
- "targetURL": "#SupplierInvoices-manage"
- }
}
]
}
@@ -94,20 +86,6 @@
"additionalInformation": "SAPUI5.Component=books",
"url": "admin-books/webapp"
}
- },
- "ManageInvoices": {
- "semanticObject": "SupplierInvoices",
- "action": "manage",
- "title": "Supplier Invoices",
- "signature": {
- "parameters": {},
- "additionalParameters": "allowed"
- },
- "resolutionResult": {
- "applicationType": "SAPUI5",
- "additionalInformation": "SAPUI5.Component=supplierinvoices",
- "url": "supplier-invoices/webapp"
- }
}
}
}
diff --git a/samples/bookshop/app/services.cds b/samples/bookshop/app/services.cds
index cbea7a0..87e7b31 100644
--- a/samples/bookshop/app/services.cds
+++ b/samples/bookshop/app/services.cds
@@ -4,4 +4,3 @@
using from './common';
using from './browse/fiori-service';
using from './admin-books/fiori-service';
-using from './supplier-invoices/fiori-service';
diff --git a/samples/bookshop/dummy invoice.pdf b/samples/bookshop/dummy invoice.pdf
deleted file mode 100644
index 2309f5c58cc99a06895d1cbcacd96479fdd3280d..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 48016
zcmeFZXIK6*DLq>9PNCE0FxDu>_@OTStDl^YX>{cm)%{WM%_oT|Z+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