CLIENT
👥 Technical Specification: Client Setup
📋 Feature Overview
🛠️ Technical Implementation
A. Permissions & Access Control
Note: Access is controlled via
PermissionGuard and component-level checks.| Scope | Permission Code | Description & Page Usage |
|---|---|---|
| Menu Visibility | CLIENT.MENU |
Sidebar menu visibility.
|
| Page Routing | CLIENT.LISTING |
Access to listing route.\listing-client-profile |
| Page Routing | CLIENT.VIEW |
Access to add route.
|
| Create Action | CLIENT.CREATE |
Visibility of the + Add button.\listing-client-profile |
| View Access | CLIENT.VIEW |
Controls visibility of the Edit icon.\listing-client-profile |
| Delete Action | CLIENT.DELETE |
Visibility of the Delete 🗑️ icon.\listing-client-profile |
| Update Action | CLIENT.UPDATE |
Ability to save changes on Edit screen.\add-client-profile-manage |
B. API Interaction
Base URL:
${environment.baseApiUrl}1. Listing Client Profile
\listing-client-profile/clients/getQuery
POSTFilter:
clientName, registrationNumber, clientCode, isDeleted=0/client/delete
POSTPurpose: Delete Client
2. Add Client Profile Manage
\add-client-profile-manage/countries/getQuery
POSTPurpose: Populate
countryDataSource/states/getQuery
POSTFilter:
countryId/districts/getQuery
POSTFilter:
stateId/settings/getQuery
POSTFilter:
type='Client Type'/clients/getQuery
POSTFilter:
id (Fetch specific record)/clients/getQuery
POSTFilter:
clientCode (Uniqueness Check)/clients/mdCreate
POSTPurpose: Master-Detail Create
/clients/mdUpdate
POSTPurpose: Master-Detail Update