@danny270793/jmixclientv1
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

NodeJmixClientV1

Github pipeline status NPM Type Definitions

install size NPM Unpacked Size GitHub repo size GitHub code size in bytes npm bundle size (scoped)

GitHub commit activity NPM Downloads GitHub Downloads (all assets, all releases)

Library to comunicate with jmix 2.x rest api

Instalation

Install package from public registry

npm install @danny270793/jmixclientv1

Examples

Compute the levenshtein distance between two strings

import JmixClient from '@danny270793/jmixclientv1'
import User from '@danny270793/jmixclientv1/build/entities/user'

const protocol: string = process.env.JMIX_PROTOCOL || ''
const hostname: string = process.env.JMIX_HOSTNAME || ''
const port: number = parseInt(process.env.JMIX_PORT || '')
const username: string = process.env.JMIX_USERNAME || ''
const password: string = process.env.JMIX_PASSWORD || ''
const clientId: string = process.env.JMIX_CLIENT_ID || ''
const clientSecret: string = process.env.JMIX_CLIENT_SECRET || ''

const jmixClient: JmixClient = new JmixClient(
    protocol,
    hostname,
    port,
    username,
    password,
    clientId,
    clientSecret,
)
const users: User[] = await jmixClient.getEntities<User>('User')
console.log({users})

Follow me

YouTube GitHub LinkedIn

LICENSE

GitHub License

Version

GitHub Tag GitHub Release GitHub package.json version NPM Version

Last update 21/08/2024

Readme

Keywords

Package Sidebar

Install

npm i @danny270793/jmixclientv1

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

31.7 kB

Total Files

17

Last publish

Collaborators

  • danny270793