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

tookan-api

v1.0.4

Published

This node library is a client to interact with Tookan.

Downloads

538

Readme

Tookan npm module

This node library is a client to interact with the Tookan API

Usage

Install the npm module:

npm install tookan-api

A simple example to create client:

Tookan = require('tookan-api');

var client = new Tookan.Client({api_key: "69616586f71342011c116e6a559626531fxg478ecc7fb23da733e5a15"});

Initialization

The Tookan Client constructor accepts an configuration object as an argument.

Tookan = require('tookan-api');

client = new Tookan.Client(options);

Valid options:

  • api_key: User's key to use for authenticated operations. This must be the user's api key.

Operations

Function Calls

Refer to Tookan API Docs for details. All the functions return a Promise object in response.

Example to call a Tookan API.

var response = client.<Function_Name>(options);

Function_Name can be :

Agent

  • addAgent: To add an agent/driver/fleet to your account.
  • editAgent: To edit agent's details.
  • getAllAgents: To view agents.
  • viewAgentProfile: To view an agent's profile.
  • blockAndUnblockAgent: To block or unblock an agent.
  • getAgentTags: To view tags related to agents.
  • updateAgentTags: To update tags related to an agent.
  • getAgentLogs: To view agent's logs.
  • getAgentLocation: To view agent's location.
  • sendNotificationToAgent: To send push notifications to logged in agent(s).
  • getAgentSchedule: To get the agent schedule for a particular date.
  • assignAgentToTask: To assign a task to agent.
  • deleteAgent: To delete an agent.

Task

  • createTask: To create a Pickup/Delivery/Appointment/FOS task.
  • createMultipleTasks: To create multiple Pickup-Delivery/Appointment/Fos tasks.
  • getTaskDetails: To view task details.
  • getTaskDetailsFromOrderId: To view task details from order Id.
  • editTask: To edit a task.
  • editMultipleTask: To edit multiple tasks.
  • updateTaskStatus: To update a task's status.
  • startTask: To change task's status to start.
  • cancelTask: To cancel a task.
  • assignTask: To manually assign a task.
  • autoAssignTask: To auto-assign task.
  • getAllTasks: To view all tasks.
  • getTaskStatistics: To view task related statistics.
  • deleteTask: To delete a task.

Mission

  • createMission: To create a Mission.
  • missionList: To view list of missions.
  • deleteMission: To delete a mission.

Team

  • createTeam: To create a team.
  • updateTeam: To update a team.
  • deleteTeam: To delete a team.
  • getTeamDetails: To view team details.
  • getJobAndAgentDetails: To get task/agent details for a team.

Manager

  • createManager: To create a manager.
  • viewManager: To view manager details.
  • deleteManager: To delete a manager.

Customer

  • addCustomer: To add a customer.
  • getCustomers: To view list of customers.
  • editCustomer: To edit a customer's details.
  • findCustomerWithPhone: To search for customer using phone number.
  • findCustomerWithName: to search for customer using name.
  • viewCustomerProfile: To view a customer's profile.
  • deleteCustomer: To delete a customer.

Merchant

  • createMerchant: To create a merchant.
  • viewMerchant: To view merchants.
  • editMerchant: To edit merchant details.
  • getMerchantDetails: To view a merchant's details.
  • getMerchantReport: To view a merchant's report.
  • blockAndUnblockMerchant: To block or unblock a merchant.
  • getAvailableMerchantAgents: To get a list of available merchant's agents.
  • assignMerchantAgentToTask: To assign a task to merchant's agent.
  • createMerchantTask: To create a task for merchant.
  • createMultipleMerchantTasks: To create connected tasks for merchant.
  • editMerchantTask: To edit a task of merchant.
  • assignMerchantToTask: To assign a merchant to task.
  • getMerchantTeams: To view merchant's teams.

Geofence

  • addRegion: To add a geofence.
  • editRegion: To edit a geofence.
  • viewRegions: to view geofences.
  • viewRegionDetails: To view a geofence's details.
  • removeRegionForAgent: To remove a region for agent.
  • deleteRegion: To delete a geofence.