@idpass/data-collect-core / AdapterFieldDefinition
Interface: AdapterFieldDefinition
Defined in: interfaces/adapter-configs.ts:24
Field definition for adapter configuration. Defines the schema for a single configuration field that an adapter requires.
Properties
name
name:
string
Defined in: interfaces/adapter-configs.ts:26
Internal field name used in config storage
label
label:
string
Defined in: interfaces/adapter-configs.ts:28
Human-readable label for the field
type
type:
"number"|"select"|"text"|"password"|"url"
Defined in: interfaces/adapter-configs.ts:30
Input type for rendering the field in the UI
required
required:
boolean
Defined in: interfaces/adapter-configs.ts:32
Whether the field is required for the adapter to function
placeholder?
optionalplaceholder:string
Defined in: interfaces/adapter-configs.ts:34
Placeholder text shown in the input
helpText?
optionalhelpText:string
Defined in: interfaces/adapter-configs.ts:36
Help text displayed below the input
options?
optionaloptions:object[]
Defined in: interfaces/adapter-configs.ts:38
Options for select type fields
value
value:
string
label
label:
string
default?
optionaldefault:string|number
Defined in: interfaces/adapter-configs.ts:40
Default value for the field