ICANotificationCenterBaseConfig
@spartanfx/react / codeapps / ICANotificationCenterBaseConfig
Interface: ICANotificationCenterBaseConfig
Base config shared by CodeApps notification adapters.
Extends
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
autoRefresh? | boolean | Enable auto-refresh after mutations (default: true). | ICAAdapterBaseConfig.autoRefresh |
cacheDuration? | number | Cache TTL for read results in ms (default: 60_000). | ICAAdapterBaseConfig.cacheDuration |
choiceColumns? | string[] | SharePoint-only: column names backed by Choice / Lookup / Person columns. The hook calls service.getReferencedEntity and substitutes the matching expanded object on create/update. Defaults to [schema.level] for the SharePoint wrapper so the standard Level choice column is handled automatically. See: https://learn.microsoft.com/en-us/power-apps/developer/code-apps/how-to/sharepoint-operations | - |
debug? | boolean | Enable verbose console logging (default: false). | ICAAdapterBaseConfig.debug |
defaultToastDurationMs? | number | Default toast duration in ms (default: 4000). | - |
maxItems? | number | Maximum items to load on initial fetch (default: 100). | - |
onError? | (error) => void | Error callback. Called for every operational failure. | ICAAdapterBaseConfig.onError |
onNotify? | CANotifyFn | Notification callback. If omitted, hook errors surface via error state only. | ICAAdapterBaseConfig.onNotify |
onToast? | (item, durationMs) => void | Toast handler. Called when addNotification is invoked with mode toastOnly or toastAndList. Defaults to onNotify if provided; otherwise toast emission is skipped. | - |
retryPolicy? | ICARetryPolicy | Retry policy for transient failures. | ICAAdapterBaseConfig.retryPolicy |
service | ICATabularService<CANotificationRecord, string> | Generated service exposed by pac code add-data-source. | - |