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 2.2.1 to 2.3.0

6

dist/lib/analytics.js

@@ -10,2 +10,3 @@ 'use strict';

ADD_APPOINTMENT: 'appointment_created', // 'Appointment created',
APPOINTMENT_COMPLETED: 'appointment_completed', // Appointment completed
RESCHEDULE_APPOINTMENT: 'appointment_rescheduled', // 'Appointment rescheduled'

@@ -17,2 +18,3 @@ UNABLE_TO_ADD_TECH: 'add_tech_error', // 'Unable to add tech'

ADD_FILTER: 'filter_added', // 'Applied job filter',
ADD_LABEL: 'label_added', // Added a label
ADD_NOTE: 'note_added', // 'Added a note'

@@ -31,2 +33,4 @@ ADD_PHOTO: 'photo_added', // 'Added a photo'

FLOATING_ACTION_BUTTON: 'floating_action_clicked', // Tapped floating action button
JOB_CREATED: 'job_created', // Job created
REMOVE_LABEL: 'label_removed', // Removed a label
TEXT_CUSTOMER: 'text_customer_clicked', // 'Tapped text customer button'

@@ -38,3 +42,3 @@ VIEW_JOB_DETAILS_ACTIONS: 'view_job_details_actions_clicked', // 'Tapped Job Actions Button'

// General App
INTERCOM: 'intercom_chat_lint_clicked', // Tapped Intercom chat link
INTERCOM_LINK_CLICKED: 'intercom_chat_link_clicked', // Tapped Intercom chat link
INVALID_PHONE: 'invalid_phone_number_entered', // Invalid phone number entered

@@ -41,0 +45,0 @@ INVALID_USER_UPDATE: 'user_update_invalid', // Unable to perform user update

3

dist/lib/dispatch.js

@@ -222,3 +222,4 @@ 'use strict';

value: function determineAuxiliaryAPIHost(serviceName) {
return serviceMap[serviceName] ? serviceMap[serviceName][this.host] : this.host.replace('api', serviceName);
var replaceValue = this.host.includes('wfm') ? 'wfm-api' : 'api';
return serviceMap[serviceName] ? serviceMap[serviceName][this.host] : this.host.replace(replaceValue, serviceName);
}

@@ -225,0 +226,0 @@

@@ -5,2 +5,3 @@ const Analytics = {

ADD_APPOINTMENT: 'appointment_created', // 'Appointment created',
APPOINTMENT_COMPLETED: 'appointment_completed', // Appointment completed
RESCHEDULE_APPOINTMENT: 'appointment_rescheduled', // 'Appointment rescheduled'

@@ -12,2 +13,3 @@ UNABLE_TO_ADD_TECH: 'add_tech_error', // 'Unable to add tech'

ADD_FILTER: 'filter_added', // 'Applied job filter',
ADD_LABEL: 'label_added', // Added a label
ADD_NOTE: 'note_added', // 'Added a note'

@@ -26,2 +28,4 @@ ADD_PHOTO: 'photo_added', // 'Added a photo'

FLOATING_ACTION_BUTTON: 'floating_action_clicked', // Tapped floating action button
JOB_CREATED: 'job_created', // Job created
REMOVE_LABEL: 'label_removed', // Removed a label
TEXT_CUSTOMER: 'text_customer_clicked', // 'Tapped text customer button'

@@ -33,3 +37,3 @@ VIEW_JOB_DETAILS_ACTIONS: 'view_job_details_actions_clicked', // 'Tapped Job Actions Button'

// General App
INTERCOM: 'intercom_chat_lint_clicked', // Tapped Intercom chat link
INTERCOM_LINK_CLICKED: 'intercom_chat_link_clicked', // Tapped Intercom chat link
INVALID_PHONE: 'invalid_phone_number_entered', // Invalid phone number entered

@@ -36,0 +40,0 @@ INVALID_USER_UPDATE: 'user_update_invalid', // Unable to perform user update

@@ -130,3 +130,4 @@ import * as endpoints from './endpoints';

determineAuxiliaryAPIHost(serviceName) {
return serviceMap[serviceName] ? serviceMap[serviceName][this.host] : this.host.replace('api', serviceName);
const replaceValue = this.host.includes('wfm') ? 'wfm-api' : 'api';
return serviceMap[serviceName] ? serviceMap[serviceName][this.host] : this.host.replace(replaceValue, serviceName);
}

@@ -133,0 +134,0 @@

{
"name": "dispatch-node-sdk",
"version": "2.2.1",
"version": "2.3.0",
"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