0.6.1 • Published 3 years ago
twilixsdk v0.6.1
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 twilixsdkUsage
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 publish0.6.1
3 years ago
0.6.0
3 years ago
0.5.0
3 years ago
0.4.0
3 years ago
0.3.1
3 years ago
0.3.0
3 years ago
0.2.13
3 years ago
0.2.12
3 years ago
0.2.11
3 years ago
0.2.10
3 years ago
0.2.9
3 years ago
0.2.8
3 years ago
0.2.7
3 years ago
0.2.6
3 years ago
0.2.5
3 years ago
0.2.4
3 years ago
0.2.3
3 years ago
0.2.2
3 years ago
0.2.1
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago