Socket
Socket
Sign inDemoInstall

dispatch-node-sdk

Package Overview
Dependencies
Maintainers
3
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 1.7.0 to 1.7.1

6

dist/lib/entities/appointment.js

@@ -21,2 +21,8 @@ 'use strict';

return client.doAuthenticatedRequest('PATCH', endpoints.APPOINTMENTS + '/' + id + '/notify', appointmentProperties, headerOptions);
},
selectSuggestedTime: function selectSuggestedTime(appointmentProperties) {
var uuid = appointmentProperties.uuid;
return client.doAuthenticatedRequest('PATCH', endpoints.APPOINTMENTS + '/' + id + '/suggested_times/' + uuid);
}

@@ -23,0 +29,0 @@ };

@@ -10,3 +10,9 @@ import * as endpoints from '../endpoints';

},
selectSuggestedTime: (appointmentProperties) => {
const { uuid } = appointmentProperties;
return client
.doAuthenticatedRequest('PATCH', `${endpoints.APPOINTMENTS}/${id}/suggested_times/${uuid}`);
},
});
}

@@ -27,2 +27,19 @@ import expect from 'expect';

});
describe('suggested times', () => {
const client = new Dispatch(testClientID, testClientSecret);
const dispatchUrl = 'https://api.dispatch.me';
const properties = { uuid: 12345 };
it('should make a PATCH request with appointment ID and selected UUID', () => {
const scope = nock(dispatchUrl)
.patch(`${endpoints.APPOINTMENTS}/5555/suggested_times/12345`)
.reply(200);
client.setBearerToken(testBearerToken, testRefreshToken);
client.entities.appointment(5555).selectSuggestedTime(properties);
expect(scope.isDone()).toEqual(true);
});
});
});

2

package.json
{
"name": "dispatch-node-sdk",
"version": "1.7.0",
"version": "1.7.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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc