0.0.34 • Published 2 months ago

moysklad-ts v0.0.34

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
2 months ago

moysklad-ts

npm npm package minimized gzipped size (select exports) GitHub Workflow Status (with event) GitHub

This library is in alpha stage and is not ready for production use.

moysklad-ts is a fully-typed API wrapper for Moysklad.

Usage

Installation

npm

npm i moysklad-ts

pnpm

pnpm add moysklad-ts

Yarn

yarn add moysklad-ts

bun

bun add moysklad-ts

Deno

import { Moysklad } from "https://esm.sh/moysklad-ts";

Example

import { Moysklad, MoyskladApiError } from "moysklad-ts";

const moysklad = new Moysklad({
  auth: {
    token: "123"
  }
});

try {
  const { rows: bonusTransactions } = await moysklad.bonusTransaction.list({
    expand: { bonusProgram: true }
  });
} catch (error) {
  if (error instanceof MoyskladApiError) {
    console.error(error.message, error.code, error.moreInfo);
		return;
  }

	console.error(error);
}

Documentation

The documentation is available here.

Документация на русском языке доступна здесь.

Contributing

Please read the contributing guidelines before submitting a pull request.

License

This project is licensed under the GPL-3.0 license.

Roadmap

Core features

Endpoints

0.0.32

2 months ago

0.0.33

2 months ago

0.0.34

2 months ago

0.0.30

2 months ago

0.0.31

2 months ago

0.0.29

2 months ago

0.0.28

2 months ago

0.0.27

2 months ago

0.0.24

3 months ago

0.0.25

3 months ago

0.0.26

3 months ago

0.0.23

3 months ago

0.0.22

6 months ago

0.0.21

6 months ago

0.0.20

6 months ago

0.0.19

6 months ago

0.0.18

6 months ago

0.0.17

6 months ago

0.0.16

7 months ago

0.0.15

7 months ago

0.0.14

7 months ago

0.0.13

7 months ago

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

8 months ago

0.0.1

8 months ago