@klok-integration/datamodel-klok-project-documentation-v1
v1.0.0-build.261027110002
Published
Klok datamodel klok-project-documentation-v1
Readme
@klok-integration/datamodel-klok-project-documentation-v1
TypeScript classes for the Klok datamodel dev.klok.klok.datamodel:klok-project-documentation-v1:1.0.0-build.261027110002.
They are generated from the Avro schema Java registers on the broker. Use them with the Klok broker
client for TypeScript, or encode and decode on your own with toAvroBuffer() and fromAvroBuffer().
import { KlokAttachmentType } from "@klok-integration/datamodel-klok-project-documentation-v1";
const value = new KlokAttachmentType({ /* fields */ });
const bytes = value.toAvroBuffer();
const back = KlokAttachmentType.fromAvroBuffer(bytes);Timestamps are Date values, and decoding drops the digits below the millisecond. A long is a
number; avsc refuses values beyond ±(2^53 - 2). Enum values are the Java constant names.
Generated by the Klok Gradle plugin from the wire schemas of the datamodel. Do not edit.
