# contiva/sap-integration-suite-client architecture

> Architecture diagram of the GitHub repository contiva/sap-integration-suite-client, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/contiva/sap-integration-suite-client
- Repository: https://github.com/contiva/sap-integration-suite-client

## Overview

This TypeScript library provides typed access to SAP Integration Suite APIs. A consumer creates a SapClient, then uses its domain clients to retrieve or manage SAP content; responses may be normalized or enhanced, and eligible requests can use Redis caching. The README documents additional API areas and advanced clients beyond the sampled excerpts. Edges reflect the documented client workflow and visible cache/helper calls; unsampled implementation details are not expanded into speculative links.

Main entry points: [`src/clients/sap-client.ts`](https://github.com/contiva/sap-integration-suite-client/blob/main/src/clients/sap-client.ts) (SAP client), [`src/wrapper/integration-content-client.ts`](https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/integration-content-client.ts) (Integration content), [`src/wrapper/message-processing-logs-client.ts`](https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/message-processing-logs-client.ts) (Message logs), [`src/core/cache-manager.ts`](https://github.com/contiva/sap-integration-suite-client/blob/main/src/core/cache-manager.ts) (Cache manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Client entry"]
  node_sap_client["SAP client<br/>[sap-client.ts]"]
end

subgraph group_api["SAP API clients"]
  node_integration["Integration content"]
  node_integration_advanced["Advanced integration"]
  node_message_logs["Message logs"]
  node_message_logs_advanced["Advanced logs"]
  node_message_store["Message store"]
  node_security["Security content"]
  node_log_files["Log files"]
  node_b2b["B2B scenarios"]
  node_partner["Partner directory"]
  node_custom_registry["Custom client registry"]
  node_custom_base["Custom client base"]
end

subgraph group_cache["Caching"]
  node_cache_manager[("Cache manager<br/>[cache-manager.ts]")]
  node_cache_config["Cache policy<br/>[cache-config.ts]"]
end

subgraph group_models["Types and utilities"]
  node_cache_types["Cache types<br/>[cache.ts]"]
  node_integration_types["Integration types"]
  node_logs_types["Log types"]
  node_date_utils["Date utilities<br/>[date-formatter.ts]"]
  node_normalizer["Response normalizer"]
end

node_consumer(("Library consumer"))
node_sap_service{{"SAP APIs"}}

node_consumer -->|"creates"| node_sap_client
node_sap_client -->|"exposes"| node_integration
node_sap_client -->|"exposes"| node_message_logs
node_sap_client -->|"exposes"| node_message_store
node_sap_client -->|"exposes"| node_security
node_sap_client -->|"exposes"| node_log_files
node_sap_client -->|"exposes"| node_b2b
node_sap_client -->|"exposes"| node_partner
node_sap_client -->|"configures"| node_custom_registry
node_custom_registry -->|"registers"| node_integration_advanced
node_custom_registry -->|"registers"| node_message_logs_advanced
node_integration_advanced -->|"uses"| node_integration
node_integration_advanced -->|"extends"| node_custom_base
node_message_logs_advanced -->|"uses"| node_message_logs
node_message_logs_advanced -->|"extends"| node_custom_base
node_integration -->|"requests"| node_sap_service
node_message_logs -->|"requests"| node_sap_service
node_message_store -->|"requests"| node_sap_service
node_security -->|"requests"| node_sap_service
node_log_files -->|"requests"| node_sap_service
node_b2b -->|"requests"| node_sap_service
node_partner -.->|"requests"| node_sap_service
node_integration -->|"caches responses"| node_cache_manager
node_security -->|"caches responses"| node_cache_manager
node_sap_client -->|"checks cache"| node_cache_manager
node_cache_manager -->|"uses policy"| node_cache_config
node_cache_manager -->|"uses types"| node_cache_types
node_integration -->|"uses types"| node_integration_types
node_message_logs -->|"uses types"| node_logs_types
node_integration -.->|"normalizes"| node_normalizer
node_message_logs -->|"formats dates"| node_date_utils

click node_sap_client "https://github.com/contiva/sap-integration-suite-client/blob/main/src/clients/sap-client.ts"
click node_integration "https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/integration-content-client.ts"
click node_integration_advanced "https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/custom/integration-content-advanced-client.ts"
click node_message_logs "https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/message-processing-logs-client.ts"
click node_message_logs_advanced "https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/custom/message-processing-logs-advanced-client.ts"
click node_message_store "https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/message-store-client.ts"
click node_security "https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/security-content-client.ts"
click node_log_files "https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/log-files-client.ts"
click node_b2b "https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/b2b-scenarios-client.ts"
click node_partner "https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/partner-directory-client.ts"
click node_custom_registry "https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/custom/custom-client-registry.ts"
click node_custom_base "https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/custom/base-custom-client.ts"
click node_cache_manager "https://github.com/contiva/sap-integration-suite-client/blob/main/src/core/cache-manager.ts"
click node_cache_config "https://github.com/contiva/sap-integration-suite-client/blob/main/src/core/cache-config.ts"
click node_cache_types "https://github.com/contiva/sap-integration-suite-client/blob/main/src/types/cache.ts"
click node_integration_types "https://github.com/contiva/sap-integration-suite-client/blob/main/src/types/sap.IntegrationContent.ts"
click node_logs_types "https://github.com/contiva/sap-integration-suite-client/blob/main/src/types/sap.MessageProcessingLogs.ts"
click node_date_utils "https://github.com/contiva/sap-integration-suite-client/blob/main/src/utils/date-formatter.ts"
click node_normalizer "https://github.com/contiva/sap-integration-suite-client/blob/main/src/utils/response-normalizer.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_sap_client toneBlue
class node_integration,node_integration_advanced,node_message_logs,node_message_logs_advanced,node_message_store,node_security,node_log_files,node_b2b,node_partner,node_custom_registry,node_custom_base toneAmber
class node_cache_manager,node_cache_config,node_sap_service toneMint
class node_cache_types,node_integration_types,node_logs_types,node_date_utils,node_normalizer toneRose
class node_consumer toneIndigo
```

## Components

### Client entry

- [SAP client](https://github.com/contiva/sap-integration-suite-client/blob/main/src/clients/sap-client.ts): `src/clients/sap-client.ts`

### SAP API clients

- [Integration content](https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/integration-content-client.ts): `src/wrapper/integration-content-client.ts`
- [Advanced integration](https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/custom/integration-content-advanced-client.ts): `src/wrapper/custom/integration-content-advanced-client.ts`
- [Message logs](https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/message-processing-logs-client.ts): `src/wrapper/message-processing-logs-client.ts`
- [Advanced logs](https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/custom/message-processing-logs-advanced-client.ts): `src/wrapper/custom/message-processing-logs-advanced-client.ts`
- [Message store](https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/message-store-client.ts): `src/wrapper/message-store-client.ts`
- [Security content](https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/security-content-client.ts): `src/wrapper/security-content-client.ts`
- [Log files](https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/log-files-client.ts): `src/wrapper/log-files-client.ts`
- [B2B scenarios](https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/b2b-scenarios-client.ts): `src/wrapper/b2b-scenarios-client.ts`
- [Partner directory](https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/partner-directory-client.ts): `src/wrapper/partner-directory-client.ts`
- [Custom client registry](https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/custom/custom-client-registry.ts): `src/wrapper/custom/custom-client-registry.ts`
- [Custom client base](https://github.com/contiva/sap-integration-suite-client/blob/main/src/wrapper/custom/base-custom-client.ts): `src/wrapper/custom/base-custom-client.ts`

### Caching

- [Cache manager](https://github.com/contiva/sap-integration-suite-client/blob/main/src/core/cache-manager.ts): `src/core/cache-manager.ts`
- [Cache policy](https://github.com/contiva/sap-integration-suite-client/blob/main/src/core/cache-config.ts): `src/core/cache-config.ts`

### Types and utilities

- [Cache types](https://github.com/contiva/sap-integration-suite-client/blob/main/src/types/cache.ts): `src/types/cache.ts`
- [Integration types](https://github.com/contiva/sap-integration-suite-client/blob/main/src/types/sap.IntegrationContent.ts): `src/types/sap.IntegrationContent.ts`
- [Log types](https://github.com/contiva/sap-integration-suite-client/blob/main/src/types/sap.MessageProcessingLogs.ts): `src/types/sap.MessageProcessingLogs.ts`
- [Date utilities](https://github.com/contiva/sap-integration-suite-client/blob/main/src/utils/date-formatter.ts): `src/utils/date-formatter.ts`
- [Response normalizer](https://github.com/contiva/sap-integration-suite-client/blob/main/src/utils/response-normalizer.ts): `src/utils/response-normalizer.ts`

### Other components

- **Library consumer**
- **SAP APIs**

## Connections

- Library consumer → SAP client: creates (evidence: `README.md`)
- SAP client → Integration content: exposes (evidence: `src/clients/sap-client.ts`)
- SAP client → Message logs: exposes (evidence: `src/clients/sap-client.ts`)
- SAP client → Message store: exposes (evidence: `src/clients/sap-client.ts`)
- SAP client → Security content: exposes (evidence: `src/clients/sap-client.ts`)
- SAP client → Log files: exposes (evidence: `src/clients/sap-client.ts`)
- SAP client → B2B scenarios: exposes (evidence: `src/clients/sap-client.ts`)
- SAP client → Partner directory: exposes (evidence: `src/clients/sap-client.ts`)
- SAP client → Custom client registry: configures (evidence: `src/clients/sap-client.ts`)
- Custom client registry → Advanced integration: registers (evidence: `src/wrapper/custom/custom-client-registry.ts`)
- Custom client registry → Advanced logs: registers (evidence: `src/wrapper/custom/custom-client-registry.ts`)
- Advanced integration → Integration content: uses (evidence: `src/wrapper/custom/integration-content-advanced-client.ts`)
- Advanced integration → Custom client base: extends (evidence: `src/wrapper/custom/integration-content-advanced-client.ts`)
- Advanced logs → Message logs: uses (evidence: `src/wrapper/custom/message-processing-logs-advanced-client.ts`)
- Advanced logs → Custom client base: extends (evidence: `src/wrapper/custom/message-processing-logs-advanced-client.ts`)
- Integration content → SAP APIs: requests (evidence: `README.md`)
- Message logs → SAP APIs: requests (evidence: `README.md`)
- Message store → SAP APIs: requests (evidence: `README.md`)
- Security content → SAP APIs: requests (evidence: `README.md`)
- Log files → SAP APIs: requests (evidence: `README.md`)
- B2B scenarios → SAP APIs: requests (evidence: `src/wrapper/b2b-scenarios-client.ts`)
- Partner directory → SAP APIs: requests
- Integration content → Cache manager: caches responses (evidence: `src/wrapper/integration-content-client.ts`)
- Security content → Cache manager: caches responses (evidence: `src/wrapper/security-content-client.ts`)
- SAP client → Cache manager: checks cache (evidence: `src/clients/sap-client.ts`)
- Cache manager → Cache policy: uses policy (evidence: `src/core/cache-manager.ts`)
- Cache manager → Cache types: uses types (evidence: `src/core/cache-manager.ts`)
- Integration content → Integration types: uses types (evidence: `src/wrapper/integration-content-client.ts`)
- Message logs → Log types: uses types (evidence: `src/wrapper/message-processing-logs-client.ts`)
- Integration content → Response normalizer: normalizes (evidence: `src/wrapper/integration-content-client.ts`)
- Message logs → Date utilities: formats dates (evidence: `src/wrapper/message-processing-logs-client.ts`)
