1.3.0 • Published 6 months ago

@maakle/kombo-sdk v1.3.0

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

Kombo Typescript SDK

This is an unofficial Typescript SDK for the Kombo.dev API

Installation

In order to install the package, please run the following command:

npm install @maakle/kombo-sdk

#or

yarn add @maakle/kombo-sdk

Usage

import { Api } from "@maakle/kombo-sdk";

// Create client
const komboApi = new Api<string>({
  securityWorker: (accessToken) =>
    accessToken ? { headers: { Authorization: `Bearer ${accessToken}` } } : {},
});
// Set API Key
komboApi.setSecurityData("API_ACCESS_TOKEN");

// Use client to e.g. fetch all absence types, don't forget to set the integration id in the headers
const result = await komboApi.hris.getHrisAbsenceTypes(
  { page_size: 100 },
  { headers: { "x-integration-id": "INTEGRATION_ID" } }
);
console.log(result.data.data.results);
1.3.0

6 months ago

1.2.0

11 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.9

11 months ago

1.1.3

11 months ago

1.1.2

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago