1.0.33 • Published 6 months ago

helebba-sdk v1.0.33

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Helebba SDK

El SDK helebba-sdk proporciona una interfaz simplificada para interactuar con la API de Helebba, permitiendo a los desarrolladores gestionar productos, clientes y más desde su aplicación.

Instalación

Para instalar el SDK e Helebba, puedes usar npm o yarn:

npm install helebba-sdk
o
yarn add helebba-sdk

Ejemplo de uso

import { createClient } from 'helebba-sdk';

const apiKey = 'tu-api-key-aqui';
const helebba = createClient(apiKey);
const products = await helebba.listProducts();

API

La api expone las siguentes apis basadas en promesas

  • contacts
  • saleschannels
  • products
  • warehouses
  • treasury
  • expenses
  • payments
  • documents

Cada api expone los sigueinte metodos:

  • list()
  • create({ resource })
  • get({ id })
  • update({ id, resource })
  • delete({ id })

Excepto para la api de documentos:

  • list({ type })
  • create({ type, document })
  • get({ type, id })
  • update({ type, id, document })
  • delete({ type, id })
  • downloadPdf({ type, id })
  • pay({ type, id, payment })

Testng

Clone el repositorio y ejecute:

npm test
1.0.29

7 months ago

1.0.33

6 months ago

1.0.32

6 months ago

1.0.31

6 months ago

1.0.30

6 months ago

1.0.26

10 months ago

1.0.25

10 months ago

1.0.24

10 months ago

1.0.23

11 months ago

1.0.28

10 months ago

1.0.27

10 months ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago