ICAPlannerBaseConfig
@spartanfx/react / codeapps / ICAPlannerBaseConfig
Interface: ICAPlannerBaseConfig<TId>
Base config shared by CodeApps Planner adapters.
Extends
Extended by
Type Parameters
TId
TId extends string | number
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 Planner schema is consumer-driven (it doesn't know which columns are Choice columns), so declare them here to enable automatic expansion of string labels to the { "@odata.type", Value, Id } object the SharePoint connector requires on create/update. No default — when omitted, no resolution is performed. Ignored for services that don't expose getReferencedEntity (e.g. Dataverse). See: https://learn.microsoft.com/en-us/power-apps/developer/code-apps/how-to/sharepoint-operations | - |
debounceMs? | number | Debounce delay for refetch on date-range change (default: 300 ms). | - |
debug? | boolean | Enable verbose console logging (default: false). | ICAAdapterBaseConfig.debug |
endDate? | Date | Initial end of the visible range. Default: Dec 31 of current year. | - |
odataFilter? | string | Additional OData $filter to combine with the date-range clause. | - |
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 |
retryPolicy? | ICARetryPolicy | Retry policy for transient failures. | ICAAdapterBaseConfig.retryPolicy |
rowLimit? | number | Maximum records per fetch (default: 5000). | - |
schema | IPlannerSchema | Schema mapping internal planner fields to data source columns. | - |
searchText? | string | Optional search text for client-side filtering. | - |
service | ICATabularService<CAPlannerRecord, TId> | Generated tabular service from pac code add-data-source. | - |
startDate? | Date | Initial start of the visible range. Default: Jan 1 of current year. | - |