Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@availity/api-core

Package Overview
Dependencies
Maintainers
14
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@availity/api-core - npm Package Compare versions

Comparing version 6.2.3 to 6.2.4

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## 6.2.4 (2020-04-22)
**Note:** Version bump only for package @availity/api-core
## 6.2.3 (2020-04-08)

@@ -8,0 +16,0 @@

4

lib/api.js

@@ -24,5 +24,3 @@ "use strict";

var AvApi =
/*#__PURE__*/
function () {
var AvApi = /*#__PURE__*/function () {
function AvApi(_ref) {

@@ -29,0 +27,0 @@ var http = _ref.http,

@@ -14,8 +14,6 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("./api"));

@@ -25,7 +23,7 @@

var AvMicroservice =
/*#__PURE__*/
function (_AvApi) {
var AvMicroservice = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvMicroservice, _AvApi);
var _super = (0, _createSuper2["default"])(AvMicroservice);
function AvMicroservice(_ref) {

@@ -39,3 +37,3 @@ var _this;

(0, _classCallCheck2["default"])(this, AvMicroservice);
_this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvMicroservice).call(this, {
_this = _super.call(this, {
http: http,

@@ -45,3 +43,3 @@ promise: promise,

config: config
}));
});
_this.defaultConfig = _this.merge({}, _options["default"].MS, config);

@@ -48,0 +46,0 @@ return _this;

@@ -14,15 +14,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("../api"));
var AvCodes =
/*#__PURE__*/
function (_AvApi) {
var AvCodes = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvCodes, _AvApi);
var _super = (0, _createSuper2["default"])(AvCodes);
function AvCodes(_ref) {

@@ -37,3 +35,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvCodes).call(this, {
return _super.call(this, {
http: http,

@@ -43,3 +41,3 @@ promise: promise,

config: options
}));
});
}

@@ -46,0 +44,0 @@

@@ -16,15 +16,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("../api"));
var AvDisclaimers =
/*#__PURE__*/
function (_AvApi) {
var AvDisclaimers = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvDisclaimers, _AvApi);
var _super = (0, _createSuper2["default"])(AvDisclaimers);
function AvDisclaimers(_ref) {

@@ -40,3 +38,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvDisclaimers).call(this, {
return _super.call(this, {
http: http,

@@ -46,3 +44,3 @@ promise: promise,

config: options
}));
});
}

@@ -49,0 +47,0 @@

@@ -16,16 +16,16 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _flattenObject = _interopRequireDefault(require("@availity/api-core/lib/flattenObject"));
var _ms = _interopRequireDefault(require("../ms"));
var AvLogMessages =
/*#__PURE__*/
function (_AvMicroservice) {
(0, _inherits2["default"])(AvLogMessages, _AvMicroservice);
var DmaLogMessages = /*#__PURE__*/function (_AvMicroservice) {
(0, _inherits2["default"])(DmaLogMessages, _AvMicroservice);
function AvLogMessages(_ref) {
var _super = (0, _createSuper2["default"])(DmaLogMessages);
function DmaLogMessages(_ref) {
var http = _ref.http,

@@ -35,9 +35,7 @@ promise = _ref.promise,

config = _ref.config;
(0, _classCallCheck2["default"])(this, AvLogMessages);
(0, _classCallCheck2["default"])(this, DmaLogMessages);
var options = (0, _objectSpread2["default"])({
path: '/ms/api/availity/internal/dma/log-message-service/portal',
name: 'log-messages',
version: '/v2'
name: 'spc/analytics/log'
}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvLogMessages).call(this, {
return _super.call(this, {
http: http,

@@ -47,14 +45,48 @@ promise: promise,

config: options
}));
});
}
(0, _createClass2["default"])(AvLogMessages, [{
(0, _createClass2["default"])(DmaLogMessages, [{
key: "send",
value: function send(entries) {
return this.create(entries);
value: function send(level, entries) {
delete entries.level;
var payload = {
level: level,
entries: entries
};
var flattened = (0, _flattenObject["default"])(payload);
flattened.X_Client_ID = 'smile';
flattened.X_XSRF_TOKEN = document.cookie.replace(/(?:(?:^|.*;\s*)XSRF-TOKEN\s*=\s*([^;]*).*$)|^.*$/, '$1');
var fields = Object.keys(flattened).map(function (key) {
var name = key.replace(/\[\d+\]/g, '[]');
var value = flattened[key];
return "".concat(name, "=").concat(encodeURIComponent(value));
}).join('&');
return fields;
}
}, {
key: "debug",
value: function debug(entries) {
return this.sendBeacon(this.send('debug', entries));
}
}, {
key: "info",
value: function info(entries) {
return this.sendBeacon(this.send('info', entries));
}
}, {
key: "warn",
value: function warn(entries) {
return this.sendBeacon(this.send('warn', entries));
}
}, {
key: "error",
value: function error(entries) {
return this.sendBeacon(this.send('error', entries));
}
}]);
return AvLogMessages;
return DmaLogMessages;
}(_ms["default"]);
exports["default"] = AvLogMessages;
var _default = DmaLogMessages;
exports["default"] = _default;

@@ -16,15 +16,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _ms = _interopRequireDefault(require("../ms"));
var AvFiles =
/*#__PURE__*/
function (_AvMicroservice) {
var AvFiles = /*#__PURE__*/function (_AvMicroservice) {
(0, _inherits2["default"])(AvFiles, _AvMicroservice);
var _super = (0, _createSuper2["default"])(AvFiles);
function AvFiles(_ref) {

@@ -42,3 +40,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvFiles).call(this, {
return _super.call(this, {
http: http,

@@ -48,3 +46,3 @@ promise: promise,

config: options
}));
});
}

@@ -51,0 +49,0 @@

@@ -16,4 +16,2 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));

@@ -25,9 +23,11 @@

var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _ms = _interopRequireDefault(require("../ms"));
var AvFilesDelivery =
/*#__PURE__*/
function (_AvMicroservice) {
var AvFilesDelivery = /*#__PURE__*/function (_AvMicroservice) {
(0, _inherits2["default"])(AvFilesDelivery, _AvMicroservice);
var _super = (0, _createSuper2["default"])(AvFilesDelivery);
function AvFilesDelivery(_ref) {

@@ -47,3 +47,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvFilesDelivery).call(this, {
return _super.call(this, {
http: http,

@@ -53,3 +53,3 @@ promise: promise,

config: options
}));
});
}

@@ -56,0 +56,0 @@

@@ -16,8 +16,6 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("../api"));

@@ -27,7 +25,7 @@

var AvLogMessages =
/*#__PURE__*/
function (_AvApi) {
var AvLogMessages = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvLogMessages, _AvApi);
var _super = (0, _createSuper2["default"])(AvLogMessages);
function AvLogMessages(_ref) {

@@ -42,3 +40,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvLogMessages).call(this, {
return _super.call(this, {
http: http,

@@ -48,3 +46,3 @@ promise: promise,

config: options
}));
});
}

@@ -51,0 +49,0 @@

@@ -14,15 +14,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("../api"));
var AvNavigation =
/*#__PURE__*/
function (_AvApi) {
var AvNavigation = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvNavigation, _AvApi);
var _super = (0, _createSuper2["default"])(AvNavigation);
function AvNavigation(_ref) {

@@ -38,3 +36,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvNavigation).call(this, {
return _super.call(this, {
http: http,

@@ -44,3 +42,3 @@ promise: promise,

config: options
}));
});
}

@@ -47,0 +45,0 @@

@@ -16,15 +16,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("../api"));
var AvNotifications =
/*#__PURE__*/
function (_AvApi) {
var AvNotifications = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvNotifications, _AvApi);
var _super = (0, _createSuper2["default"])(AvNotifications);
function AvNotifications(_ref) {

@@ -40,3 +38,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvNotifications).call(this, {
return _super.call(this, {
http: http,

@@ -46,3 +44,3 @@ promise: promise,

config: options
}));
});
}

@@ -49,0 +47,0 @@

@@ -16,15 +16,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("../api"));
var AvOrganizations =
/*#__PURE__*/
function (_AvApi) {
var AvOrganizations = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvOrganizations, _AvApi);
var _super = (0, _createSuper2["default"])(AvOrganizations);
function AvOrganizations(_ref) {

@@ -43,3 +41,3 @@ var _this;

}, config);
_this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvOrganizations).call(this, {
_this = _super.call(this, {
http: http,

@@ -49,3 +47,3 @@ promise: promise,

config: options
}));
});
_this.avUsers = avUsers;

@@ -52,0 +50,0 @@ return _this;

@@ -16,15 +16,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("../api"));
var AvPdfs =
/*#__PURE__*/
function (_AvApi) {
var AvPdfs = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvPdfs, _AvApi);
var _super = (0, _createSuper2["default"])(AvPdfs);
function AvPdfs(_ref) {

@@ -40,3 +38,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvPdfs).call(this, {
return _super.call(this, {
http: http,

@@ -46,3 +44,3 @@ promise: promise,

config: options
}));
});
}

@@ -49,0 +47,0 @@

@@ -16,15 +16,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("../api"));
var AvPermissions =
/*#__PURE__*/
function (_AvApi) {
var AvPermissions = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvPermissions, _AvApi);
var _super = (0, _createSuper2["default"])(AvPermissions);
function AvPermissions(_ref) {

@@ -40,3 +38,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvPermissions).call(this, {
return _super.call(this, {
http: http,

@@ -46,3 +44,3 @@ promise: promise,

config: options
}));
});
}

@@ -49,0 +47,0 @@

@@ -16,15 +16,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("../api"));
var AvProviders =
/*#__PURE__*/
function (_AvApi) {
var AvProviders = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvProviders, _AvApi);
var _super = (0, _createSuper2["default"])(AvProviders);
function AvProviders(_ref) {

@@ -40,3 +38,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvProviders).call(this, {
return _super.call(this, {
http: http,

@@ -46,3 +44,3 @@ promise: promise,

config: options
}));
});
}

@@ -49,0 +47,0 @@

@@ -14,15 +14,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("../api"));
var AvProxy =
/*#__PURE__*/
function (_AvApi) {
var AvProxy = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvProxy, _AvApi);
var _super = (0, _createSuper2["default"])(AvProxy);
function AvProxy(_ref) {

@@ -43,3 +41,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvProxy).call(this, {
return _super.call(this, {
http: http,

@@ -49,3 +47,3 @@ promise: promise,

config: options
}));
});
}

@@ -52,0 +50,0 @@

@@ -16,15 +16,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("../api"));
var AvRegions =
/*#__PURE__*/
function (_AvApi) {
var AvRegions = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvRegions, _AvApi);
var _super = (0, _createSuper2["default"])(AvRegions);
function AvRegions(_ref) {

@@ -45,3 +43,3 @@ var _this;

}, config);
_this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvRegions).call(this, {
_this = _super.call(this, {
http: http,

@@ -51,3 +49,3 @@ promise: promise,

config: options
}));
});
_this.avUsers = avUsers;

@@ -54,0 +52,0 @@ return _this;

@@ -16,15 +16,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("../api"));
var AvSettings =
/*#__PURE__*/
function (_AvApi) {
var AvSettings = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvSettings, _AvApi);
var _super = (0, _createSuper2["default"])(AvSettings);
function AvSettings(_ref) {

@@ -45,3 +43,3 @@ var _this;

}, config);
_this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvSettings).call(this, {
_this = _super.call(this, {
http: http,

@@ -51,3 +49,3 @@ promise: promise,

config: options
}));
});
_this.avUsers = avUsers;

@@ -54,0 +52,0 @@ return _this;

@@ -16,15 +16,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _ms = _interopRequireDefault(require("../ms"));
var AvSlotMachine =
/*#__PURE__*/
function (_AvMicroservice) {
var AvSlotMachine = /*#__PURE__*/function (_AvMicroservice) {
(0, _inherits2["default"])(AvSlotMachine, _AvMicroservice);
var _super = (0, _createSuper2["default"])(AvSlotMachine);
function AvSlotMachine(_ref) {

@@ -39,3 +37,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvSlotMachine).call(this, {
return _super.call(this, {
http: http,

@@ -45,3 +43,3 @@ promise: promise,

config: options
}));
});
}

@@ -48,0 +46,0 @@

@@ -16,15 +16,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("../api"));
var AvSpaces =
/*#__PURE__*/
function (_AvApi) {
var AvSpaces = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvSpaces, _AvApi);
var _super = (0, _createSuper2["default"])(AvSpaces);
function AvSpaces(_ref) {

@@ -40,3 +38,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvSpaces).call(this, {
return _super.call(this, {
http: http,

@@ -46,3 +44,3 @@ promise: promise,

config: options
}));
});
}

@@ -49,0 +47,0 @@

@@ -16,15 +16,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _api = _interopRequireDefault(require("../api"));
var AvUsers =
/*#__PURE__*/
function (_AvApi) {
var AvUsers = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvUsers, _AvApi);
var _super = (0, _createSuper2["default"])(AvUsers);
function AvUsers(_ref) {

@@ -40,3 +38,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvUsers).call(this, {
return _super.call(this, {
http: http,

@@ -46,3 +44,3 @@ promise: promise,

config: options
}));
});
}

@@ -49,0 +47,0 @@

@@ -16,8 +16,6 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _qs = _interopRequireDefault(require("qs"));

@@ -27,7 +25,7 @@

var AvUserPermissions =
/*#__PURE__*/
function (_AvApi) {
var AvUserPermissions = /*#__PURE__*/function (_AvApi) {
(0, _inherits2["default"])(AvUserPermissions, _AvApi);
var _super = (0, _createSuper2["default"])(AvUserPermissions);
function AvUserPermissions(_ref) {

@@ -48,3 +46,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvUserPermissions).call(this, {
return _super.call(this, {
http: http,

@@ -54,3 +52,3 @@ promise: promise,

config: options
}));
});
}

@@ -57,0 +55,0 @@

@@ -14,15 +14,13 @@ "use strict";

var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
var _ms = _interopRequireDefault(require("../ms"));
var AvWebQL =
/*#__PURE__*/
function (_AvMicroservice) {
var AvWebQL = /*#__PURE__*/function (_AvMicroservice) {
(0, _inherits2["default"])(AvWebQL, _AvMicroservice);
var _super = (0, _createSuper2["default"])(AvWebQL);
function AvWebQL(_ref) {

@@ -37,3 +35,3 @@ var http = _ref.http,

}, config);
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(AvWebQL).call(this, {
return _super.call(this, {
http: http,

@@ -43,3 +41,3 @@ promise: promise,

config: options
}));
});
}

@@ -46,0 +44,0 @@

{
"name": "@availity/api-core",
"version": "6.2.3",
"version": "6.2.4",
"description": "Base API definitions for the Availity REST API",

@@ -21,6 +21,6 @@ "keywords": [

"dependencies": {
"@availity/resolve-url": "^1.1.16",
"@availity/resolve-url": "^1.1.17",
"qs": "^6.5.2"
},
"gitHead": "d068a6163383cf63e04b525bfa55a93b51164677"
"gitHead": "ed61d7eb1359be54d18c7ba0697a060cef5ee336"
}

@@ -0,9 +1,8 @@

import flattenObject from '@availity/api-core/lib/flattenObject';
import AvMicroservice from '../ms';
export default class AvLogMessages extends AvMicroservice {
class DmaLogMessages extends AvMicroservice {
constructor({ http, promise, merge, config }) {
const options = {
path: '/ms/api/availity/internal/dma/log-message-service/portal',
name: 'log-messages',
version: '/v2',
name: 'spc/analytics/log',
...config,

@@ -19,5 +18,41 @@ };

send(entries) {
return this.create(entries);
send(level, entries) {
delete entries.level;
const payload = { level, entries };
const flattened = flattenObject(payload);
flattened.X_Client_ID = 'smile';
flattened.X_XSRF_TOKEN = document.cookie.replace(
/(?:(?:^|.*;\s*)XSRF-TOKEN\s*=\s*([^;]*).*$)|^.*$/,
'$1'
);
const fields = Object.keys(flattened)
.map(key => {
const name = key.replace(/\[\d+\]/g, '[]');
const value = flattened[key];
return `${name}=${encodeURIComponent(value)}`;
})
.join('&');
return fields;
}
debug(entries) {
return this.sendBeacon(this.send('debug', entries));
}
info(entries) {
return this.sendBeacon(this.send('info', entries));
}
warn(entries) {
return this.sendBeacon(this.send('warn', entries));
}
error(entries) {
return this.sendBeacon(this.send('error', entries));
}
}
export default DmaLogMessages;
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