Socket
Socket
Sign inDemoInstall

dispatch-node-sdk

Package Overview
Dependencies
Maintainers
4
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dispatch-node-sdk - npm Package Compare versions

Comparing version 2.16.0 to 2.16.1

4

dist/lib/bookingService.js

@@ -21,4 +21,4 @@ 'use strict';

var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var accountId = offerData.accountId;
var data = offerData.data;
var accountId = offerData.accountId,
data = offerData.data;

@@ -25,0 +25,0 @@ var headers = _extends({}, options.headers, {

@@ -708,6 +708,6 @@ 'use strict';

var organizationID = _ref.organizationID;
var query = _ref.query;
var filter = _ref.filter;
var maxResultsPerModel = _ref.maxResultsPerModel;
var organizationID = _ref.organizationID,
query = _ref.query,
filter = _ref.filter,
maxResultsPerModel = _ref.maxResultsPerModel;

@@ -714,0 +714,0 @@ var customers = void 0;

@@ -108,4 +108,4 @@ 'use strict';

return this.getWithMeta(_extends({}, query, { limit: 0 })).then(function (_ref) {
var _ref$meta = _ref.meta;
var meta = _ref$meta === undefined ? {} : _ref$meta;
var _ref$meta = _ref.meta,
meta = _ref$meta === undefined ? {} : _ref$meta;

@@ -112,0 +112,0 @@ return meta.total;

@@ -13,4 +13,4 @@ 'use strict';

getConversation: function getConversation(_ref) {
var organizationID = _ref.organizationID;
var customerUserID = _ref.customerUserID;
var organizationID = _ref.organizationID,
customerUserID = _ref.customerUserID;

@@ -17,0 +17,0 @@ if (!organizationID || !customerUserID) {

@@ -20,5 +20,5 @@ 'use strict';

pay: function pay(_ref) {
var amount = _ref.amount;
var cardToken = _ref.cardToken;
var paymentMethod = _ref.paymentMethod;
var amount = _ref.amount,
cardToken = _ref.cardToken,
paymentMethod = _ref.paymentMethod;

@@ -25,0 +25,0 @@ if (cardToken) {

@@ -48,5 +48,5 @@ 'use strict';

return client.entities.jobs.getOne(id).then(function (_ref) {
var organization_id = _ref.organization_id;
var _ref$customer = _ref.customer;
var customer = _ref$customer === undefined ? {} : _ref$customer;
var organization_id = _ref.organization_id,
_ref$customer = _ref.customer,
customer = _ref$customer === undefined ? {} : _ref$customer;

@@ -80,16 +80,17 @@ return client.entities.billingDocuments.create({

if (!_underscore2.default.isEmpty(body)) {
var time = body.appointment_time;
var duration = body.appointment_duration;
var user_id = body.user_id;
var time = body.appointment_time,
duration = body.appointment_duration,
user_id = body.user_id;
if (time && duration) {
var apptBody = {
var appointmentBody = {
duration: duration,
job_id: id,
status: 'scheduled',
time: time,
duration: duration,
user_id: user_id,
status: 'scheduled'
user_id: user_id
};
return client.doAuthenticatedRequest('POST', endpoints.APPOINTMENTS, apptBody, options).then(function () {
return client.doAuthenticatedRequest('POST', endpoints.APPOINTMENTS, appointmentBody, options).then(function () {
return { status: 'scheduled' };

@@ -96,0 +97,0 @@ });

@@ -30,7 +30,7 @@ 'use strict';

function getAuthHeaders(_ref) {
var path = _ref.path;
var body = _ref.body;
var userID = _ref.userID;
var userType = _ref.userType;
var secret = _ref.secret;
var path = _ref.path,
body = _ref.body,
userID = _ref.userID,
userType = _ref.userType,
secret = _ref.secret;

@@ -37,0 +37,0 @@ // Date must be formatted like this:

@@ -58,10 +58,11 @@ import _ from 'underscore';

if (time && duration) {
const apptBody = {
const appointmentBody = {
duration,
job_id: id,
status: 'scheduled',
time,
duration,
user_id,
status: 'scheduled',
};
return client.doAuthenticatedRequest('POST', endpoints.APPOINTMENTS, apptBody, options)
return client.doAuthenticatedRequest('POST', endpoints.APPOINTMENTS, appointmentBody, options)
.then(() => {

@@ -68,0 +69,0 @@ return { status: 'scheduled' };

{
"name": "dispatch-node-sdk",
"version": "2.16.0",
"version": "2.16.1",
"description": "High- and low-level libraries for interacting with the Dispatch API",

@@ -5,0 +5,0 @@ "main": "dist/lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc