1.0.52 • Published 5 months ago

zuper-sdk v1.0.52

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

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:

ModulePermitted Operations
Jobsget, getAll, create, update, updateStatus, delete, updateSchedule, updateAssignment, getJobTimelogs, rollbackStatus, getAllRecurringJobs, getAssistedScheduling
Propertyget, getAll, create, update, updateStatus, delete
Customersget, getAll, create, update, sendEmail, delete
Organizationsget, getAll, create, update, delete
Usersget, getAll, create, update, delete, getWorkHours, getUserTeams
Assetsget, getAll, create, update, getHistory, getInspectionForm, updateStatus, getPPM, delete
Quotesget, getAll, create, update, delete, updateStatus
Invoicesget, getAll, create, update, delete, updateStatus
Parts & Servicesget, getAll, create, update, createTranscation, getTranscations, delete
Activityget, create
Miscnotify ( Send Email / SMS )
Service Taksget, getAll, create, update, delete, bulkAction, updateStatus, assignUsers, reorder
Proposalget, getAll, create, update, delete, updateStatus
Requestsget, getAll, create, update, updateStatus, delete, rollbackStatus, createAssignment, createAttachment, updateAttachment, 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(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)

Click here for the full Documentation

1.0.52

5 months ago

1.0.51

5 months ago

1.0.5

5 months ago

1.0.41

7 months ago

1.0.4

7 months ago

1.0.31

10 months ago

1.0.3

1 year ago

1.0.21

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago