1.0.0 • Published 11 months ago

@danny270793/jmixclientv1 v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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

1.0.0

11 months ago