Skip to main content

Interface: UsePurchaseAuthorizationConfiguratorOptions

Defined in: composables/react/usePurchaseAuthorization.ts:75

Options for usePurchaseAuthorizationConfigurator.

Properties

afterContactCreate?

optional afterContactCreate?: (contact) => void

Defined in: composables/react/usePurchaseAuthorization.ts:89

Fires after a contact is created — receives the new contact.

Parameters

contact

Contact

Returns

void


afterPurchaseAuthorizationCreate?

optional afterPurchaseAuthorizationCreate?: (pac) => void

Defined in: composables/react/usePurchaseAuthorization.ts:93

Fires after a PAC is created.

Parameters

pac

PurchaseAuthorizationConfig

Returns

void


afterPurchaseAuthorizationDelete?

optional afterPurchaseAuthorizationDelete?: (deleted) => void

Defined in: composables/react/usePurchaseAuthorization.ts:101

Fires after a PAC delete succeeds; receiving it suppresses the default reload.

Parameters

deleted

boolean

Returns

void


afterPurchaseAuthorizationUpdate?

optional afterPurchaseAuthorizationUpdate?: (pac) => void

Defined in: composables/react/usePurchaseAuthorization.ts:97

Fires after a PAC is updated.

Parameters

pac

PurchaseAuthorizationConfig

Returns

void


beforeContactCreate?

optional beforeContactCreate?: (input) => void

Defined in: composables/react/usePurchaseAuthorization.ts:85

Fires before a contact is created — receives the register input.

Parameters

input

RegisterContactInput

Returns

void


companyId

companyId: number

Defined in: composables/react/usePurchaseAuthorization.ts:81

Company whose contacts and PACs are managed.


graphqlClient

graphqlClient: GraphQLClient

Defined in: composables/react/usePurchaseAuthorization.ts:77

GraphQL client the hook derives its Services bundle from.


onContactCreate?

optional onContactCreate?: (input) => void

Defined in: composables/react/usePurchaseAuthorization.ts:87

Override: fires instead of the default registerContact call.

Parameters

input

RegisterContactInput

Returns

void


onPurchaseAuthorizationCreate?

optional onPurchaseAuthorizationCreate?: (pac) => void

Defined in: composables/react/usePurchaseAuthorization.ts:91

Override: fires instead of the default PAC create call.

Parameters

pac

PurchaseAuthorizationConfigCreateInput

Returns

void


onPurchaseAuthorizationDelete?

optional onPurchaseAuthorizationDelete?: (pac) => void

Defined in: composables/react/usePurchaseAuthorization.ts:99

Override: fires instead of the default PAC delete call.

Parameters

pac

PurchaseAuthorizationConfig

Returns

void


onPurchaseAuthorizationUpdate?

optional onPurchaseAuthorizationUpdate?: (pac) => void

Defined in: composables/react/usePurchaseAuthorization.ts:95

Override: fires instead of the default PAC update call.

Parameters

pac

PurchaseAuthorizationConfig

Returns

void


pageOffset?

optional pageOffset?: number

Defined in: composables/react/usePurchaseAuthorization.ts:83

Rows per page (default 10)


user

user: Contact | Customer | null

Defined in: composables/react/usePurchaseAuthorization.ts:79

The signed-in user; used to detect authorization-manager rights.