1.0.9 • Published 9 months ago

@bapp/auto-api-client v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@bapp/auto-api-client

Generic API to request data from and trigger actions in the Bapp API.

Roadmap

  • Functions for the generic endpoints
  • Tree shaking
  • Generate Zod schemas for client-side validation
  • Type inference based on content type

Installation

Install the package using one of the following commands:

npm install @bapp/auto-api-client axios

yarn add @bapp/auto-api-client axios

pnpm add @bapp/auto-api-client axios

Optionally, install @tanstack/react-query for query option getters:

npm install @tanstack/react-query

yarn add @tanstack/react-query

pnpm add @tanstack/react-query

Example usage

import bappApi from "@bapp/auto-api-client"

bappApi.listEntity("company_invoice.Orders", {
  filters: {
    paid: true,
  },
})

Disclaimer

Proper documentation is WIP

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago