+ autoOffsetReset?: string
can_write?: boolean
showTestingBadge?: boolean
}
@@ -22,10 +25,16 @@
kafkaCfgValid = $bindable(false),
kafkaResourcePath = $bindable(''),
kafkaCfg = $bindable({}),
+ autoOffsetReset = $bindable('latest'),
can_write = true,
showTestingBadge = false
}: Props = $props()
+ const offsetResetOptions = [
+ { label: 'Latest (new messages only)', value: 'latest' },
+ { label: 'Earliest (from beginning)', value: 'earliest' }
+ ]
+
const kafkaConfigSchema = {
$schema: 'http://json-schema.org/draft-07/schema#',
type: 'object',
@@ -99,6 +108,21 @@
/>
+
+
+
+