0.1.53 • Published 1 year ago

kitsas-library v0.1.53

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Kitsas Library

Library to connect Kitsas Server. See also template to Kitsas addon.

This typedoc documentation is available at GitHub pages

Installation

npm install kitsas-library

Main components

ComponentUsage
{@link KitsasService}Static class to connect server
{@link KitsasConnectionInterface}General operations
{@link KitsasOfficeInterface}Accounting office, bookshelves and roles
{@link KitsasBookInterface}Accounting interface

First create a connection with {@link KitsasService}.

Some examples

Login to Kitsas

import { KitsasService } from 'kitsaslibrary';

const connection = await KitsasService.connect({
  username: 'name@kitsas.fi',
  password: 'secret',
});

Get list of books

const books = await connection.getBooks();

Select a book

const book = await connection.getBook('92e71a5d-1c33-4cc9-aa83-281c05c8e4c2');

Create and save a new document

const document : CreateVoucherDto = { ... } ;
await book.saveVoucher(document, []);

Using mock implementation

const connection = await KitsasService.connect({
  username: 'test@kitsas.fi',
  password: 'Test+12345',
  mock: true,
});
0.1.53

1 year ago

0.1.52

1 year ago

0.1.51

1 year ago

0.1.50

1 year ago

0.1.49

1 year ago

0.1.48

1 year ago

0.1.47

1 year ago

0.1.46

1 year ago

0.1.44

1 year ago

0.1.45

1 year ago

0.1.43

1 year ago

0.1.41

1 year ago

0.1.42

1 year ago

0.1.40

1 year ago

0.1.39

1 year ago

0.1.38

1 year ago

0.1.37

1 year ago

0.1.35

1 year ago

0.1.36

1 year ago

0.1.34

1 year ago

0.1.33

2 years ago

0.1.32

2 years ago

0.1.31

2 years ago

0.1.30

2 years ago

0.1.29

2 years ago

0.1.27

2 years ago

0.1.26

2 years ago

0.1.25

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.22

2 years ago

0.1.21

2 years ago

0.1.20

2 years ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.16

2 years ago

0.1.8

2 years ago

0.1.17

2 years ago

0.1.7

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.6

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago