npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@avoladecision/avola-client

v1.0.3

Published

Avola Decision client to execute and synchronize your decisions

Downloads

5

Readme

Build Status

avola-client :package:

Avola Decision client package to execute and synchronize your decisions with an ease. This package is for any developer looking for an easy solution to connect Avola Decision with their software. Also check out our other packages and definitely read our api documentation if something is not clear.

Requirements

  • A valid Avola Decision account - don't have an account? Find out the very basics by creating a free account
  • In Avola, you need to create an API account (save the clientid and secret) - For free user check the my account page
  • Your custom company endpoint ex: https://companyxyz.api.avo.la - For free user: https://free.api.avo.la
  • Your token host: you can find this at /api/settings on your custom company api endpoint - For free user it is optional and already defaults to https://free.auth.avo.la

Installation

npm install @avoladecision/avola-client --save

todo: yarn add avola-client bower install avola-client --save

Usage

Javascript

var Avola = require('@avoladecision/avola-client');

// Create client with base url of the Avola Decision api and your apikey
var avolaclient = new avola.AvolaClient('https://free.api.avo.la', 'replacewithclientid', 
                                               'replacewithclientsecret', 'optionaltokenhost');

client.getSettings().then((settings) => {
  console.log("settings", settings);
  var mysettings = settings;
});

TypeScript

import { AvolaClient } from '@avoladecision/avola-client';

let avolaclient = new Avolaclient('https://free.api.avo.la', 'replacewithclientid',
                                              'replacewithclientsecret', 'optionaltokenhost');

avolaclient.getSettings().then((settings) => {
  console.log("settings", settings);
  let mysettings = settings;
});
Output should be the settings of the Api

Available methods

| name | description | In Free? | | ------------- |:-------------:| ---------:| | getSettings() | Will return the settings of the API. This describes certain endpoints and info. | :white_check_mark: | | getDecisionServices(decisionServiceId?: number) | Will return you the list and details of all decision services and their version without parameters. With decisionServiceId: will return you the versions and details of a specific decision service. | | | getDecisionServiceVersions(decisionServiceId: number, version: number) | Will return you the details of a specific decision service version. | | | executeDecisionServiceVersion(executionRequest: Execution.ApiExecutionRequest) | Execute a descision service version, this returns all conclusions, from all decisions in the decision service. | | | executeDecisionFree(freerequest: Execution.FreeExecutionRequest) | Execute a decision. This function is only available if you are a Free user and doesn't support the full power of versioned execution. | :white_check_mark: |

Contribute :star: :star: :star:

Want to contribute to this package?

  1. Clone the repo

  2. Install dependencies

npm install
  1. Edit files in lib/

  2. Build

npm run build
  1. Create a pull request

Test & Build

npm run test

To build and run the tests

npm run buildtest