comprodls-sdk 2.77.0 → 2.77.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -923,9 +923,7 @@ function validateGenericAPICaller(apiName, method, url, params) {
923
923
  var ERROR_TYPES = {
924
924
  "API_ERROR": "API_ERROR",
925
925
  "SDK_ERROR": "SDK_ERROR",
926
- "CHANNEL_SUBSCRIPTION": "CHANNEL_SUBSCRIPTION",
927
- "UNEXPECTED_ERROR": "UNEXPECTED_ERROR",
928
- "POLLING_INITIATION": "POLLING_INITIATION"
926
+ "CHANNEL_SUBSCRIPTION": "CHANNEL_SUBSCRIPTION"
929
927
  };
930
928
 
931
929
  var ERROR_CATEGORY = {
@@ -13180,9 +13178,8 @@ module.exports = function () {
13180
13178
  if(status.operation === 'PNSubscribeOperation') {
13181
13179
  if(!options.accountId) {
13182
13180
  error = {
13183
- message: "Missing mandatory parameters to initiate polling operation - accountId",
13184
- status: status.statusCode,
13185
- type: helpers.errors.ERROR_TYPES.POLLING_INITIATION,
13181
+ message: "Polling initiation error: Missing mandatory parameters to initiate polling operation - accountId",
13182
+ status: status.statusCode
13186
13183
  };
13187
13184
  error = new PUSHXError(helpers.errors.ERROR_CATEGORY.PUSHX, error);
13188
13185
  _eventEmitter.emit('pushx_status', error);
@@ -13209,9 +13206,8 @@ module.exports = function () {
13209
13206
  default:
13210
13207
  // Emit error for other status-category received from pubnub
13211
13208
  error = {
13212
- message: "PushX Error",
13209
+ message: "PushX Error: unexpected error",
13213
13210
  status: status.statusCode,
13214
- type: helpers.errors.ERROR_TYPES.UNEXPECTED_ERROR,
13215
13211
  pushXError: status
13216
13212
  };
13217
13213
  error = new PUSHXError(helpers.errors.ERROR_CATEGORY.PUSHX, error);