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

zuper-sdk

v1.0.55

Published

Zuper SDK

Downloads

192

Readme

Zuper-SDK

Zuper Field Service Management platform lets you reimagine field service delivery and delight your customers. Collaborate Seamlessly with your field teams anytime, anywhere.

Download & Installation:

npm i -s zuper-sdk

To generate API Key:

  1. On Zuper Webapp, Click on Settings from the left menu.
  2. Under 'General setting' click on "Account".
  3. In the "Account Settings" click on "API Keys".
  4. Under the "Your API Key" section, click on "New API Key", in the pop-up enter the "API Key Name" and click on create.
  5. Your API key will be generated and displayed.

Modules:

| Module | Permitted Operations | | ---------------- | ----------------------------------------------------------------------------------- | | Jobs | get, getAll, create, update, updateStatus, delete, updateSchedule, updateAssignment, getJobTimelogs, rollbackStatus, getAllRecurringJobs, getAssistedScheduling | | Property | get, getAll, create, update, updateStatus, delete | | Customers | get, getAll, create, update, sendEmail, delete | | Organizations | get, getAll, create, update, delete | | Users | get, getAll, create, update, delete, getWorkHours, getUserTeams | | Assets | get, getAll, create, update, getHistory, getInspectionForm, updateStatus, getPPM, delete | | Quotes | get, getAll, create, update, delete, updateStatus | | Invoices | get, getAll, create, update, delete, updateStatus | | Parts & Services | get, getAll, create, update, createTranscation, getTranscations, delete | | Activity | get, create | | Misc | notify ( Send Email / SMS ) | | Service Taks | get, getAll, create, update, delete, bulkAction, updateStatus, assignUsers, reorder | | Proposal | get, getAll, create, update, delete, updateStatus | | Requests | get, getAll, create, update, updateStatus, delete, rollbackStatus, createAssignment, createAttachment, updateAttachment, deleteAttachment | | Projects | get, getAll, create, update, updateStatus, delete, recover, assign, updateAssignment, linkJob, removeJob, createMilestone, updateMilestone, updateMilestoneStatus, deleteMilestone, createPhase, updatePhase, updatePhaseItems, getAllPhases, deletePhase, deletePhaseItems, createDependency, updateDependency, deleteDependency | | Transfer Orders | get, getAll, create, update,updateStatus, createAttachment, deleteAttachment |

Example:

const Zuper = require("zuper-sdk");
const zuper = Zuper.init("<origin>", "<Zuper API key>");

const jobs = async () => {
  try {
    let jobs = await zuper.jobs.get("<job_uid>");
    console.log("Get Job details", jobs);
  } catch (e) {
    console.log("Error:", e);
  }
};

let jobsList = async () => {
  try {
    let options = {
      page: 1,
      count: 2,
      filter: {
        priority: "LOW",
      },
    };
    let jobs = await zuper.jobs.getAll(options);
    console.log("Get Job details", jobs);
  } catch (e) {
    console.log("Error:", e);
  }
};

More:

  • get(job_uid)
  • getAll(options)
  • create(payload)
  • update(payload)
  • updateStatus(job_uid, payload)
  • delete(job_uid)
  • updateSchedule(payload)
  • updateAssignment(payload)
  • getJobTimelogs(job_uid)
  • rollbackStatus(job_uid, payload)
  • getAllRecurringJobs(options)
  • getAssistedScheduling(options)
  • get(property_uid)
  • getAll(options)
  • create(payload)
  • update(property_uid, payload)
  • updateStatus(property_uid, payload)
  • delete(property_uid)
  • get(customer_uid)
  • getAll(options)
  • create(payload)
  • update(customer_uid, payload)
  • sendEmail(customer_uid, payload)
  • delete(customer_uid)
  • get(organization_uid)
  • getAll(options)
  • create(payload)
  • update(organization_uid, payload)
  • delete(organization_uid)
  • get(user_uid)
  • getAll(options)
  • create(payload)
  • update(user_uid, payload)
  • delete(user_uid)
  • getWorkHours(user_uid)
  • getUserTeams(user_uid)
  • get(asset_uid)
  • getAll(options)
  • create(payload)
  • update(asset_uid, payload)
  • getHistory(asset_uid, options)
  • getInspectionForm(asset_uid, options)
  • updateStatus(asset_uid, params)
  • getPPM(options)
  • delete(asset_uid)
  • get(estimate_uid)
  • getAll(options)
  • create(payload)
  • updateStatus(estimate_uid, payload)
  • update(estimate_uid, payload)
  • delete(estimate_uid)
  • get(invoice_uid)
  • getAll(options)
  • create(payload)
  • updateStatus(invoice_uid, payload)
  • update(invoice_uid, payload)
  • delete(invoice_uid)
  • get(product_uid)
  • getAll(options)
  • create(payload)
  • update(product_uid, payload)
  • createTranscation(product_uid, type, payload)
  • getTranscations(params)
  • delete(product_uid)
  • get(payload)
  • create(payload)
  • notify(module, entity_uid, payload)
  • getAll(options)
  • get(service_task_uid)
  • create(payload)
  • update(service_task_uid, payload)
  • delete(service_task_uid)
  • bulkAction(payload)
  • updateStatus(service_task_uid, payload)
  • assignUsers(service_task_uid, payload)
  • reorder(payload)
  • get(proposal_uid)
  • getAll(options)
  • create(payload)
  • updateStatus(proposal_uid, payload)
  • update(proposal_uid, payload)
  • delete(proposal_uid)
  • get(request_uid)
  • getAll(options)
  • create(payload)
  • update(request_uid, payload)
  • updateStatus(request_uid, payload)
  • delete(request_uid)
  • rollbackStatus(request_uid, payload)
  • createAssignment(payload)
  • createAttachment(request_uid,payload)
  • updateAttachment(request_uid,attachment_uid,payload)
  • deleteAttachment(request_uid,attachment_uid)
  • get(project_ui)
  • getAll(options)
  • create(payload)
  • update(payload)
  • updateStatus(project_uid, payload)
  • delete(project_uid)
  • recover(payload)
  • assign(payload)
  • updateAssignment(payload)
  • linkJob(project_uid, job_uid, payload)
  • removeJob(project_uid, job_uid, delete_job)
  • createMilestone(project_uid, payload)
  • updateMilestone(project_uid, milestone_uid, payload)
  • updateMilestoneStatus(project_uid, milestone_uid, payload)
  • deleteMilestone(project_uid, milestone_uid)
  • createPhase(project_uid, payload)
  • updatePhase(project_uid, phase_uid, payload)
  • updatePhaseItems(project_uid, phase_uid, payload)
  • getAllPhases(project_uid)
  • deletePhase(project_uid, phase_uid, detach)
  • deletePhaseItems(project_uid, phase_uid, payload)
  • createDependency(project_uid, payload)
  • updateDependency(project_uid, dependency_uid, payload)
  • deleteDependency(project_uid, dependency_uid)
  • get(transfer_order_uid)
  • getAll(options)
  • create(payload)
  • update(transfer_order_uid, payload)
  • updateStatus(transfer_order_uid, payload)
  • createAttachment(transfer_order_uid,payload)
  • deleteAttachment(transfer_order_uid,attachment_uid)

Click here for the full Documentation