Function: usePurchaseAuthorizationConfigurator()
usePurchaseAuthorizationConfigurator(
options):UsePurchaseAuthorizationConfiguratorReturn
Defined in: composables/react/usePurchaseAuthorization.ts:190
usePurchaseAuthorizationConfigurator — manages a company's contacts and their Purchase Authorization Configs (roles + spend limits).
Parameters
options
UsePurchaseAuthorizationConfiguratorOptions
see UsePurchaseAuthorizationConfiguratorOptions.
Returns
UsePurchaseAuthorizationConfiguratorReturn
company data, per-row PAC state and handlers — see UsePurchaseAuthorizationConfiguratorReturn.
Remarks
GraphQL integration: company data and PAC CRUD are delegated to the useCompany
hook (fetchCompany → CompanyService.getCompany; createPac / updatePac /
deletePac → PurchaseAuthorizationConfigService). handleAddContactSubmit calls
services.user.registerContact() (UserService) directly, built per-call via
createServices(graphqlClient). After a successful create/update/delete the
company page is reloaded. All calls require an authenticated session; each on*
callback fully overrides its default API call.