0.6.1 • Published 11 months ago

twilixsdk v0.6.1

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

Twilix SDK

The Twilix SDK is a TypeScript package for interacting with the TwilixClient server, allowing you to easily use its endpoints in your code.

Installation

Use the package manager npm to install the Twilix SDK.

npm i twilixsdk

Usage

First, import the SDK into your TypeScript file:

import { TwilixClientClient } from '@twilix/sdk';

Initialize the client with your TwilixClient server URL:

const client = new TwilixClientClient('http://localhost:8000');

Schema Endpoint

To get the schema of a given dataset:

const schema = await client.getSchema('your-collection-name');
console.log(schema);

Bulk Insert Endpoint

To insert objects into a given collection:

const response = await client.bulkInsert('your-collection-name', yourObjects);
console.log(response);

Delete Object Endpoint

To delete an object from a collection:

const response = await client.deleteObject('your-collection-name', 'your-object-id');
console.log(response);

Development

Just compile the code and then publish

npx tsc
npm publish
0.6.1

11 months ago

0.6.0

12 months ago

0.5.0

12 months ago

0.4.0

12 months ago

0.3.1

12 months ago

0.3.0

12 months ago

0.2.13

12 months ago

0.2.12

12 months ago

0.2.11

12 months ago

0.2.10

12 months ago

0.2.9

12 months ago

0.2.8

12 months ago

0.2.7

12 months ago

0.2.6

12 months ago

0.2.5

12 months ago

0.2.4

12 months ago

0.2.3

12 months ago

0.2.2

12 months ago

0.2.1

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago