Interface: PurchaseAuthorizationConfiguratorProps
Defined in: components/PurchaseAuthorizationConfigurator.tsx:15
Properties
afterContactCreate?
optionalafterContactCreate?: (contact) =>void
Defined in: components/PurchaseAuthorizationConfigurator.tsx:38
Fires after a contact is registered. If not provided, refreshes contacts list.
Parameters
contact
Contact
Returns
void
afterPurchaseAuthorizationCreate?
optionalafterPurchaseAuthorizationCreate?: (pac) =>void
Defined in: components/PurchaseAuthorizationConfigurator.tsx:44
Fires after a PAC is created. If not provided, refreshes contacts list.
Parameters
pac
PurchaseAuthorizationConfig
Returns
void
afterPurchaseAuthorizationDelete?
optionalafterPurchaseAuthorizationDelete?: (deleted) =>void
Defined in: components/PurchaseAuthorizationConfigurator.tsx:56
Fires after a PAC is deleted. If not provided, refreshes contacts list.
Parameters
deleted
boolean
Returns
void
afterPurchaseAuthorizationUpdate?
optionalafterPurchaseAuthorizationUpdate?: (pac) =>void
Defined in: components/PurchaseAuthorizationConfigurator.tsx:50
Fires after a PAC is updated. If not provided, refreshes contacts list.
Parameters
pac
PurchaseAuthorizationConfig
Returns
void
allowContactCreate?
optionalallowContactCreate?:boolean
Defined in: components/PurchaseAuthorizationConfigurator.tsx:29
Adds a button "Add contact" above the contacts list and enables registering contacts
Default
true
beforeContactCreate?
optionalbeforeContactCreate?: (input) =>void
Defined in: components/PurchaseAuthorizationConfigurator.tsx:32
Fires before a contact is added to the company
Parameters
input
RegisterContactInput
Returns
void
className?
optionalclassName?:string
Defined in: components/PurchaseAuthorizationConfigurator.tsx:62
Custom CSS class for the component
companyId?
optionalcompanyId?:number
Defined in: components/PurchaseAuthorizationConfigurator.tsx:23
The companyId of the current selected company. Resolved from PropellerProvider when omitted.
configuration?
optionalconfiguration?:Record<string,any>
Defined in: components/PurchaseAuthorizationConfigurator.tsx:65
Configuration object from the application
graphqlClient?
optionalgraphqlClient?:GraphQLClient
Defined in: components/PurchaseAuthorizationConfigurator.tsx:17
GraphQL client for the Propeller SDK. Resolved from PropellerProvider when omitted.
labels?
optionallabels?:Record<string,string>
Defined in: components/PurchaseAuthorizationConfigurator.tsx:59
Labels for the component
onContactCreate?
optionalonContactCreate?: (input) =>void
Defined in: components/PurchaseAuthorizationConfigurator.tsx:35
Override: fires instead of the default UserService.registerContact() call
Parameters
input
RegisterContactInput
Returns
void
onPurchaseAuthorizationCreate?
optionalonPurchaseAuthorizationCreate?: (pac) =>void
Defined in: components/PurchaseAuthorizationConfigurator.tsx:41
Override: fires instead of the default PurchaseAuthorizationConfigCreateInput() call
Parameters
pac
PurchaseAuthorizationConfigCreateInput
Returns
void
onPurchaseAuthorizationDelete?
optionalonPurchaseAuthorizationDelete?: (pac) =>void
Defined in: components/PurchaseAuthorizationConfigurator.tsx:53
Override: fires instead of the default deletePurchaseAuthorizationConfig() call
Parameters
pac
PurchaseAuthorizationConfig
Returns
void
onPurchaseAuthorizationUpdate?
optionalonPurchaseAuthorizationUpdate?: (pac) =>void
Defined in: components/PurchaseAuthorizationConfigurator.tsx:47
Override: fires instead of the default updatePurchaseAuthorizationConfig() call
Parameters
pac
PurchaseAuthorizationConfig
Returns
void
user?
optionaluser?:Contact|Customer
Defined in: components/PurchaseAuthorizationConfigurator.tsx:20
The logged-in user. Resolved from PropellerProvider when omitted.