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

ideagen-timeline-sdk

v1.3.0

Published

This lib provides an SDK for the Timeline API from Ideagen. See the API code [here](https://github.com/gael-ltd/IdeagenGCU2018)

Downloads

15

Readme

Ideagen Timeline SDK

This lib provides an SDK for the Timeline API from Ideagen. See the API code here

Usage

This library is intended to be used with NodeJS. It work on the front-end and on the back-end. In order to use it in the browser, you might consider using JavaScript bundler, such as Webpack as well as a javascript compiler, such as Babel

Install

This Library works with NodeJS and is available in the npm registry. To install it execute:

npm install --save ideagen-timeline-sdk

Initialisation

We can use the API by instantiating new timelineSDK object:

var IdeagenTimelineSDK = require('ideagen-timeline-sdk')
var ideagenTimelineSDK = new ideagenTimelineSDK({
  TenantId: 'PUT YOUR TENANT ID HERE',
  AuthToken: 'PUT YOUR AUTH TOKEN HERE'
})

Timelines

Create Timeline

ideagenTimelineSDK.timelines
  .create({
    TimelineId: '1234',
    Title: 'Some Title'
  })
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

Edit Timeline Title

ideagenTimelineSDK.timelines
  .editTimelineTitle('1234', 'New title')
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

Retrieve Timeline

ideagenTimelineSDK.timelines
  .get('1234')
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

List Timelines

ideagenTimelineSDK.timelines
  .getAll()
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

Delete Timeline

ideagenTimelineSDK.timelines
  .delete('1234')
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

Link Event to Timeline

ideagenTimelineSDK.timelines
  .linkEvent('TimelineId', 'EventId')
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

Unlink Event from Timeline

ideagenTimelineSDK.timelines
  .unlinkEvent('TimelineId', 'EventId')
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

Get Timeline Linked Events

ideagenTimelineSDK.timelines
  .getLinkedEvents('TimelineId')
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

TimelineEvent

Create Timeline Event

ideagenTimelineSDK.timelineEvents
  .create({
    TimelineEventId: '1234',
    Title: 'TestTitle',
    Description: 'TestDescription',
    EventDateTime: 'EventDateTime',
    Location: 'Location'
  })
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

Retrieve Timeline Event

ideagenTimelineSDK.timelineEvents
  .get('1234')
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

Edit Timeline Event Title

ideagenTimelineSDK.timelineEvents
  .editTitle('1234', 'New Title')
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

Edit Timeline Event Description

ideagenTimelineSDK.timelineEvents
  .editDescription('1234', 'New Description')
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

Edit Timeline Event Location

ideagenTimelineSDK.timelineEvents
  .editLocation('1234', 'New Location')
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

Edit Timeline Event DateTime

ideagenTimelineSDK.timelineEvents
  .editDateTime('1234', 'New Date Time')
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

Delete Timeline Event

ideagenTimelineSDK.timelineEvents
  .delete('1234')
  .then(function (response) {
    // response is the response object from the server
    console.log(response)
  })
  .catch(function (error) {
    // error is the error message
    console.error(error)
  })

Contribution

How to Install for Development:

  1. You need to install node and npm.
  • node version: v8.9.1
  • npm version: 5.6.0
  1. Clone the repository
git clone https://github.com/dirchev/ip3-ideagen-timeline-sdk
  1. Enter the folder
cd ./ip3-ideagen-timeline-sdk
  1. Install dependencies
npm install
  1. Run Tests
npm test

Bugs and New Features

Feel free to report bugs or suggest new features here.

Contribution

If you want to fix/update/improve something - fork and create a PR to this repository. Please write/update the tests!