@aitmed/aitmed-grpc-sdk-test

This package is the first-layer sdk that provides APIs communicating with the server via gRPC as well as some basic types, errors and enums.

this package has been deprecated
Last updated 3 months ago by fullstackray .
ISC · Original npm · Tarball · package.json
$ cnpm install @aitmed/aitmed-grpc-sdk-test 
SYNC missed versions from official npm registry.

AiTmed gRPC SDK

common Module

common module contains several necessary systems:

  1. Code system ('common.codes'): enums
  2. Error system ('common.error'): customized error, error codes
  3. Type system ('common.types'): Type definitions

Usage

import { common } from 'aitmed-grpc-sdk'

// types
let a: common.types.JSONString = ""

// Error
const error = common.error
const f = () => {
    throw new error.AitError("This is a test.")
}

// Codes
const etypes = common.codes.EtypeCode
const CreateUserEtype = etypes.CREATE_USER

grpc Module

grpc includes APIs to establish gRPC connections/API calls.

Usage

import { gprc } from 'aitmed-grpc-sdk'

// call v1beta1 createEdge()
import { common } from 'aitmed-grpc-sdk'
const EdgeType = common.types.Edge

let myEdge: common.types.Edge | null = null
grpc.v1beta1.createEdge(common.codes.EtypeCode.CREATE_USER, 'v1beta1', '', '', (edge, err) => {
    if (err) {
        console.log(err.getMessage())
    } else if (edge) {
        myEdge = edge
    }
})

Current Tags

  • 0.4.5                                ...           latest (3 months ago)

37 Versions

  • 0.4.5 [deprecated]           ...           3 months ago
  • 0.4.4 [deprecated]           ...           3 months ago
  • 0.4.3 [deprecated]           ...           3 months ago
  • 0.4.2 [deprecated]           ...           3 months ago
  • 0.4.1 [deprecated]           ...           3 months ago
  • 0.4.0 [deprecated]           ...           3 months ago
  • 0.3.2 [deprecated]           ...           4 months ago
  • 0.3.1 [deprecated]           ...           4 months ago
  • 0.3.0 [deprecated]           ...           4 months ago
  • 0.2.9 [deprecated]           ...           4 months ago
  • 0.2.8 [deprecated]           ...           4 months ago
  • 0.2.7 [deprecated]           ...           4 months ago
  • 0.2.6 [deprecated]           ...           4 months ago
  • 0.2.5 [deprecated]           ...           4 months ago
  • 0.2.4 [deprecated]           ...           4 months ago
  • 0.2.3 [deprecated]           ...           4 months ago
  • 0.2.2 [deprecated]           ...           4 months ago
  • 0.2.1 [deprecated]           ...           4 months ago
  • 0.2.0 [deprecated]           ...           4 months ago
  • 0.1.9 [deprecated]           ...           4 months ago
  • 0.1.8 [deprecated]           ...           4 months ago
  • 0.1.6 [deprecated]           ...           4 months ago
  • 0.1.5 [deprecated]           ...           4 months ago
  • 0.1.4 [deprecated]           ...           4 months ago
  • 0.1.3 [deprecated]           ...           4 months ago
  • 0.1.2 [deprecated]           ...           4 months ago
  • 0.1.1 [deprecated]           ...           4 months ago
  • 0.0.9 [deprecated]           ...           4 months ago
  • 0.0.8 [deprecated]           ...           4 months ago
  • 0.0.7 [deprecated]           ...           4 months ago
  • 0.0.6 [deprecated]           ...           4 months ago
  • 0.0.5 [deprecated]           ...           4 months ago
  • 0.0.4 [deprecated]           ...           4 months ago
  • 0.0.3 [deprecated]           ...           4 months ago
  • 0.0.2 [deprecated]           ...           4 months ago
  • 0.0.1 [deprecated]           ...           4 months ago
  • 0.1.0-patch2                                ...           4 months ago

Copyright 2014 - 2016 © taobao.org |