7.21.0 • Published 7 months ago

@kelvininc/js-client-sdk v7.21.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
7 months ago

Kelvin SDK Client - JavaScript Overview

Kelvin SDK Client abstracts all the communication layer with the KICS Platform, so the developers can be more focused on building what provides value for their applications - the user experience (UX) and business logic. This approach increases developer productivity and aims to enable higher quality apps by leveraging the server communication with this library.

Supported Platforms

We currently support the following JavaScript platforms:

Kelvin SDK Client API Documentation

You can find the full Client API reference here.

Kelvin Resource Name (KRN) Parsing methods

KRN Parsing

You can parse a KRN resource by using our KRNParser.

const textToParse = 'krn:asset:test';

const result = KvKRNParser.parseKRN(textToParse)

If the krn is valid, the expected result should return the content of the resource asset.

export type KrnParseSuccessResult<T> = {
	parseState: EKrnParseState.ValidKRN;
	resource: EKrnResource;
	resourceContent: T;
};

Where T is from type IAssetKrnResource, represented by:

export interface IAssetKrnResource {
	name: string;
}

If the krn is invalid, the result is going to be represented by the type:

export type IKrnParseError = {
	parseState: EKrnParseState.InvalidKRN;
	errorMessage: string;
};

KRN Creation

const name = 'api-name';
const version = '1.0.0';
const userType = EKrnUserType.User;
const user = 'me@kelvin.com';

const apiKRN = KvKRNParser.buildKRN<EKrnResource.Api>(EKrnResource.Api, apiKRN)

The constant apiKRN, should contain the string krn:api:api-name:1.0.0:user/me@example.com

7.18.0

10 months ago

7.21.0

7 months ago

7.13.2

1 year ago

7.12.0

1 year ago

7.11.0

2 years ago

7.9.1

2 years ago

7.8.0

2 years ago

7.8.1

2 years ago

7.5.0

2 years ago

7.3.0

2 years ago

6.1.0

2 years ago

7.0.0

2 years ago

5.9.0

2 years ago

7.1.0

2 years ago

5.5.0

2 years ago

5.8.0

2 years ago

5.4.0

3 years ago

5.3.0

3 years ago

5.1.0

3 years ago

5.0.0

3 years ago

3.2.1-alpha.3

3 years ago

3.2.1-alpha.2

3 years ago

3.2.1-alpha.1

3 years ago

3.2.1-alpha.0

3 years ago

1.0.1-alpha.2

3 years ago

1.0.0-alpha.0

3 years ago