📘
Classe di clienti
customers
crm_office
🛡️ RLS Protected
Struttura di processo e API derivati da codice.
Fachliche Bestimmung: Clientstamm <unk> documentazione processuale e API derivata dal codice.
⚡ Flussi di lavoro e cicli di vita (4)
🗄️ Modelli di dati (1)
🔌 Punto di partenza (UI & API) (42)
🛡️ Regolamentazione e conformità
⚡ Flussi di lavoro e cicli di vita
Ordini per il portale clienti e cascaderia ERP
portal_order_cascade
Dal cestino del portale al servizio automatico di consegna di impianto di preventivo.
sequenceDiagram
Kunde im Portal->>PortalAPI: POST /portal/{slug}/bestellung (Positionen & Fieldsets)
PortalAPI->>PortalAPI: validate_attribute_values()
PortalAPI->>DB: INSERT INTO quotes (source_type = 'SYSTEM')
PortalAPI->>DB: INSERT INTO work_orders (order_type = 'delivery', status = 'SCHEDULED')
PortalAPI-->>Kunde im Portal: Bestätigungsseite & Auftragsnummer
1. CATALOG
Selezione dei prodotti
cliente seleziona i prodotti e completa i set di campi di attributi dinamici.
Aktionen: Controllo obbligatorio nel browser
2. SUBMIT
Trasmissione degli ordini
POST a /portal/{slug}/ordine con attributti semantici_tipovalidati.
Aktionen: eseguire order_submit
3. QUOTE_GEN
Apparecchiature di offerta
Sistema genera quote con source_type='SYSTEM' e 'portal_order'.
Aktionen: Prendere attributi semantici
4. WORKORDER_GEN
Impianto di ordinazione
Prodotti automatici dell'ordine di esecuzione (ordini di lavoro) nell'ambito dell'ERP.
Aktionen: Capacità di trasmissione
Ordine d'uso: cliente crud subagento
plan:command_customer_crud_subagent
Controllato piano duraturo (durable_plan), inizio: manual_command.
1. customer_crud_subagent
customer_crud_subagent
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Aktionen: customer_crud_subagent
Benutzerbefehl: portal admin agent
plan:command_portal_admin_agent
Controllato piano duraturo (durable_plan), inizio: manual_command.
1. portal_admin_agent
portal_admin_agent
{"key": "execute_command", "label": "Befehl prüfen, ausführen oder zur Freigabe vorlegen", "adapter": "agent.execute", "agent": "portal_admin_agent", "condition_fact": null}
Aktionen: portal_admin_agent
Richiesta di portale clienti
plan:portal_request_dispatch
Consigli di controllo (durable_plan), start: domain_event.
1. portal_request_dispatch_agent
portal_request_dispatch_agent
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Aktionen: portal_request_dispatch_agent
🗄️ Modelli di dati
🔌 Punto di partenza (UI & API)
| Art | Metodo | Punto finale / percorso | Titel & Zweck | Il diritto |
|---|---|---|---|---|
| ⚡ REST API | DELETE | /api/v1/customers/{customer_id} |
delete_customer
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | DELETE | /api/v1/customers/{customer_id}/contacts/{contact_id} |
delete_contact
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | GET | /api/v1/customers |
list_customers
Semantic binding: inventory_only; mutation=False
|
customers
|
| ⚡ REST API | GET | /api/v1/customers/stats |
customer_stats
Semantic binding: inventory_only; mutation=False
|
customers
|
| ⚡ REST API | GET | /api/v1/customers/{customer_id} |
get_customer
Semantic binding: inventory_only; mutation=False
|
customers
|
| ⚡ REST API | GET | /api/v1/customers/{customer_id}/contacts |
list_contacts
Semantic binding: inventory_only; mutation=False
|
customers
|
| ⚡ REST API | GET | /api/v1/customers/{customer_id}/invoice-recipient |
get_invoice_recipient
Semantic binding: inventory_only; mutation=False
|
customers
|
| ⚡ REST API | GET | /api/v1/customers/{customer_id}/portal |
customer_portal_state
Semantic binding: inventory_only; mutation=False
|
customers
|
| ⚡ REST API | GET | /api/v1/customers/{customer_id}/shop-rates |
list_partner_shop_rates
Semantic binding: inventory_only; mutation=False
|
customers
|
| ⚡ REST API | GET | /api/v1/customers/{customer_id}/tree |
get_customer_tree
Semantic binding: inventory_only; mutation=False
|
customers
|
| ⚡ REST API | GET | /customers |
customers_page
Semantic binding: inventory_only; mutation=False
|
customers
|
| ⚡ REST API | GET | /customers/new |
customer_create_page
Semantic binding: inventory_only; mutation=False
|
customers
|
| ⚡ REST API | GET | /customers/{customer_id} |
customer_detail_page
Semantic binding: inventory_only; mutation=False
|
customers
|
| ⚡ REST API | GET | /customers/{customer_id}/edit |
customer_detail_page
Semantic binding: inventory_only; mutation=False
|
customers
|
| ⚡ REST API | GET | /customers/{customer_id}/portal |
customer_portal_admin_page
Semantic binding: inventory_only; mutation=False
|
customers
|
| ⚡ REST API | GET | /portal/{slug}/profil |
profile_page
Semantic binding: inventory_only; mutation=False
|
customers
|
| ⚡ REST API | PATCH | /api/v1/customers/{customer_id} |
update_customer
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | PATCH | /api/v1/customers/{customer_id}/contacts/{contact_id} |
update_contact
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers |
create_customer
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers/{customer_id}/contacts |
create_contact
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers/{customer_id}/portal/accounts |
customer_portal_account_add
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers/{customer_id}/portal/accounts/{account_id}/password |
customer_portal_account_password
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers/{customer_id}/portal/accounts/{account_id}/status |
customer_portal_account_status
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers/{customer_id}/portal/invites |
customer_portal_invite
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers/{customer_id}/portal/invites/{invite_id}/revoke |
customer_portal_invite_revoke
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers/{customer_id}/portal/toggle |
customer_portal_toggle
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /customers/{customer_id}/portal |
customer_portal_admin_save
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /customers/{customer_id}/portal/accounts |
customer_portal_account_create
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /customers/{customer_id}/portal/accounts/{account_id}/password |
customer_portal_account_password
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /customers/{customer_id}/portal/accounts/{account_id}/status |
customer_portal_account_status
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /customers/{customer_id}/portal/invites |
customer_portal_invite_create
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /customers/{customer_id}/portal/invites/{invite_id}/revoke |
customer_portal_invite_revoke
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /portal/{slug}/profil |
profile_submit
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /portal/{slug}/profil/kontakte |
profile_contact_save
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /portal/{slug}/profil/kontakte/{contact_id}/loeschen |
profile_contact_delete
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /portal/{slug}/profil/standorte |
profile_location_save
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | POST | /portal/{slug}/profil/standorte/{location_id}/deaktivieren |
profile_location_deactivate
Semantic binding: operator_surface; mutation=True
|
customers
|
| ⚡ REST API | PUT | /api/v1/customers/{customer_id}/shop-rates |
upsert_partner_shop_rate
Semantic binding: operator_surface; mutation=True
|
customers
|
| 🖥️ WEB-UI | GET | /portal/{slug}/ |
Pagina di partenza del portale
Dispositivo di controllo dei dati e dei dati di controllo
|
Standard |
| 🖥️ WEB-UI | GET | /portal/{slug}/bestellung |
Pagina di ordinazione del portale
Ordini di catalogo con set di campi dinamici
|
Standard |
| 🖥️ WEB-UI | GET | /portal/{slug}/rechnungen |
Fatto di pagamento
Archivi di fatturazione e download PDF
|
Standard |
| ⚡ REST API | POST | /portal/{slug}/bestellung |
Invio dell'ordine
Valida i set di campo e genera quote/ordine di lavoro
|
Standard |
🛡️ Regolamentazione e conformità
Dieses Modul unterliegt folgenden gesetzlichen, regulatorischen und Revisionsstandards:
- Capacità di verifica
- Isolazione dei clienti (PostgreSQL RLS)