@stephansama/typed-nocodb-api
standard schema compatible nocodb api
Table of contents
Section titled “Table of contents”Open Table of contents
Installation
Section titled “Installation”pnpm install @stephansama/typed-nocodb-apiimport * as z from "zod";
import { createApi } from "@stephansama/typed-nocodb-api";
const api = createApi({ baseId: process.env.NOCODB_BASE!, origin: "https://nocodb.com", schema: z.object({ column1: z.string().trim(), column2: z.enum(["optionOne", "optionTwo", "optionThree"]), column3: z.number(), column4: z.boolean(), }), tableId: process.env.NOCODB_TABLE!, token: process.env.NOCODB_TOKEN,});
export async function callApi() { const response = await api.fetch({ action: "LIST", });
return response;}Type Aliases
Section titled “Type Aliases”| Type Alias | Description |
|---|---|
|
‐ |
Variables
Section titled “Variables”| Variable | Description |
|---|---|
|
‐ |
Functions
Section titled “Functions”| Function | Description |
|---|---|
|
‐ |