Socket
Socket
Sign inDemoInstall

@availity/api-core

Package Overview
Dependencies
Maintainers
8
Versions
120
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 3.0.0 to 3.0.1-alpha.454

LICENSE

314

CHANGELOG.md

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

## 3.0.1-canary.0 (2019-02-12)
### Bug Fixes
* **api-core:** Allow array for permissions ([#67](https://github.com/Availity/sdk-js/issues/67)) ([98adf76](https://github.com/Availity/sdk-js/commit/98adf76))
* **api-core:** http should throw errors ([#83](https://github.com/Availity/sdk-js/issues/83)) ([868aa8f](https://github.com/Availity/sdk-js/commit/868aa8f))
* **api-core:** rename error object ([460fc9d](https://github.com/Availity/sdk-js/commit/460fc9d))
* **api-core:** return error from async/await ([06c35fe](https://github.com/Availity/sdk-js/commit/06c35fe))
* **api-core:** typo fix ([f543296](https://github.com/Availity/sdk-js/commit/f543296))
### Features
* **api-core:** add example response for file delivery ([edc4df5](https://github.com/Availity/sdk-js/commit/edc4df5))
* **api-core:** add file upload delivery batch api ([eff0a3c](https://github.com/Availity/sdk-js/commit/eff0a3c))
* **api-core:** added graphql resource for slotmachine ([356a686](https://github.com/Availity/sdk-js/commit/356a686))
### BREAKING CHANGES
* **api-core:** The httpp error is no longer caught by api-core. Also, the error object is no longer manipulated. Developers must handle the http error by catching the error when using async/await or by leveraging the error callback in the promise chain. The callback `afterResponse` is not called when and error is thrown from http call.
* **api-core:** The query to the API has been changed. To get the previous behavior, supply a custom paramSerializer.
# 2.6.0 (2018-08-23)
### Features
* **api-core:** helper function for settings api ([4d405a7](https://github.com/Availity/sdk-js/commit/4d405a7))
* **api-core:** helper function for settings api ([#64](https://github.com/Availity/sdk-js/issues/64)) ([f247235](https://github.com/Availity/sdk-js/commit/f247235))
# 2.5.0 (2018-08-20)
## 2.4.8 (2018-08-06)
### Bug Fixes
* **api-core:** spread args for aliases ([5c7516b](https://github.com/Availity/sdk-js/commit/5c7516b))
## 2.4.7 (2018-08-02)
### Bug Fixes
* **api-core:** check for lowercase location as well ([4a4a9a0](https://github.com/Availity/sdk-js/commit/4a4a9a0))
## 2.4.6 (2018-08-02)
### Bug Fixes
* **analytics-core:** fix non-click events ([fce9b26](https://github.com/Availity/sdk-js/commit/fce9b26))
# 2.4.0 (2018-07-12)
# 2.2.0 (2018-06-29)
### Bug Fixes
* **api-core:** format postGet payload to standard ([5b885cf](https://github.com/Availity/sdk-js/commit/5b885cf))
## 2.1.2 (2018-06-13)
### Bug Fixes
* **api-core:** attempts count not increasing ([2e414a3](https://github.com/Availity/sdk-js/commit/2e414a3))
## 2.1.1 (2018-05-25)
### Bug Fixes
* **api-core:** fix usage of Promise ([8fb3de8](https://github.com/Availity/sdk-js/commit/8fb3de8))
# 2.1.0 (2018-05-24)
### Features
* **api-core:** add all method to get all the data from all of the pages ([114519d](https://github.com/Availity/sdk-js/commit/114519d))
## 2.0.3 (2018-05-10)
### Bug Fixes
* **api-core:** allow id to be in the config ([55b55af](https://github.com/Availity/sdk-js/commit/55b55af))
## 2.0.1 (2018-05-04)
### Bug Fixes
* **api-core:** get id out of arguments ([3e525c2](https://github.com/Availity/sdk-js/commit/3e525c2))
# 2.0.0 (2018-05-04)
### Bug Fixes
* **api-core:** avSpaces - throw error when no spaceId given ([7c47280](https://github.com/Availity/sdk-js/commit/7c47280))
# 1.4.0 (2018-04-17)
# 1.2.0 (2018-04-12)
### Features
* **api-core:** refactor polling for extending MS ([04c1474](https://github.com/Availity/sdk-js/commit/04c1474))
## 1.1.1 (2018-03-28)
## 1.0.1 (2018-03-26)
### Bug Fixes
* **api-core:** avFiles error handling ([3dd5392](https://github.com/Availity/sdk-js/commit/3dd5392))
# 1.0.0-alpha.17 (2018-01-18)
# 1.0.0-alpha.16 (2018-01-17)
# 1.0.0-alpha.15 (2018-01-12)
# 1.0.0-alpha.14 (2018-01-11)
# 1.0.0-alpha.13 (2018-01-10)
### Features
* **api-core:** add helper function adds name attribute to providers collection ([3b24341](https://github.com/Availity/sdk-js/commit/3b24341))
# 1.0.0-alpha.12 (2018-01-09)
# 1.0.0-alpha.11 (2018-01-06)
### Bug Fixes
* **api-core:** resources incorrectly handling config ([9a5de1c](https://github.com/Availity/sdk-js/commit/9a5de1c))
### Code Refactoring
* **api-core:** pass config object to core classes ([d7b859c](https://github.com/Availity/sdk-js/commit/d7b859c))
### BREAKING CHANGES
* **api-core:** Options to core classes are being passed in as config object instead of parameters.
# 1.0.0-alpha.10 (2018-01-04)
### Bug Fixes
* **api-core:** remove/delete should not assume data payloads ([e45a9f6](https://github.com/Availity/sdk-js/commit/e45a9f6))
### BREAKING CHANGES
* **api-core:** previously remove/delete would assume that data was being passed in the body of the request if the first param of the message signature was NOT a string or number. Now, the method assumes a config object is passed in instead of data. This allows the developers to pass in params or data as they see fit.
# 1.0.0-alpha.9 (2018-01-03)
### Bug Fixes
* **api-core:** provides api param not properly merged with defaults ([5f53e3d](https://github.com/Availity/sdk-js/commit/5f53e3d))
# 1.0.0-alpha.8 (2018-01-03)
# 1.0.0-alpha.7 (2018-01-03)
### Bug Fixes
* **api-core:** use get instead of query for space name ([84dd26a](https://github.com/Availity/sdk-js/commit/84dd26a))
# 1.0.0-alpha.6 (2017-12-20)
# 1.0.0-alpha.5 (2017-12-20)
### Bug Fixes
* **api-core:** wrong url for notifcations api ([acafc97](https://github.com/Availity/sdk-js/commit/acafc97))
# 1.0.0-alpha.4 (2017-12-20)
### Bug Fixes
* **api-core:** wrong url for pdf api ([9f4af1c](https://github.com/Availity/sdk-js/commit/9f4af1c))
# 1.0.0-alpha.3 (2017-12-19)
### Bug Fixes
* **api-core:** user.me() should return user object ([715c616](https://github.com/Availity/sdk-js/commit/715c616))
# 1.0.0-alpha.2 (2017-12-19)
# 1.0.0-alpha.1 (2017-12-19)
### Bug Fixes
* **api-core:** remove default after* response transformations ([6f17d3a](https://github.com/Availity/sdk-js/commit/6f17d3a))
### BREAKING CHANGES
* **api-core:** The core API classes no longer apply after* transformations on the response. Previously, only the collection data was being returned when making API calls which made it difficult to react to the metadata around the response (e.g. pagination). Developers will have to unwrap the response manually.
Example response callback:
```
onResponse(response) {
response && response.data && response.data.user|| {};
}
```
# 1.0.0-alpha.0 (2017-12-05)
### Features
* **api-core:** add post and delete as synonyms for create and update ([0150680](https://github.com/Availity/sdk-js/commit/0150680))
* **api-core:** add spaces helper methods ([72de394](https://github.com/Availity/sdk-js/commit/72de394))
* **api-core, api-angular api-react:** add pdf api ([b84a16f](https://github.com/Availity/sdk-js/commit/b84a16f))
<a name="3.0.0"></a>

@@ -8,0 +322,0 @@ # 3.0.0 (2018-11-20)

7

package.json
{
"name": "@availity/api-core",
"version": "3.0.0",
"version": "3.0.1-alpha.454+2255d11",
"description": "Base API definitions for the Availity REST API",

@@ -20,3 +20,3 @@ "keywords": [

"devDependencies": {
"@availity/localstorage-core": "^2.5.0"
"@availity/localstorage-core": "^2.5.1-alpha.454+2255d11"
},

@@ -28,3 +28,4 @@ "publishConfig": {

"qs": "^6.5.2"
}
},
"gitHead": "2255d115555d91ec7e6ec787844590d288034976"
}

@@ -0,0 +0,0 @@ # api-core

@@ -65,3 +65,3 @@ import AvLocalStorage from '@availity/localstorage-core';

if (!cacheBust) {
return;
return undefined;
}

@@ -163,10 +163,2 @@

getError(error) {
let response;
if (error.response) {
response = { error };
}
return response;
}
// make request to http

@@ -179,8 +171,5 @@ request(config, afterResponse) {

return this.http(config)
.then(response => this.onResponse(response, afterResponse))
.catch(error => {
const response = this.getError(error);
return afterResponse ? afterResponse(response) : response;
});
return this.http(config).then(response =>
this.onResponse(response, afterResponse)
);
}

@@ -187,0 +176,0 @@

@@ -18,2 +18,3 @@ import AvApi from './api';

import AvSettings from './resources/settings';
import AvSlotMachine from './resources/slotmachine';

@@ -39,2 +40,3 @@ export default AvApi;

AvSettings,
AvSlotMachine,
};

@@ -28,11 +28,2 @@ import AvApi from './api';

getError(error) {
let response;
if (error) {
response = error;
response.error = true;
}
return response;
}
// polling location is the same url

@@ -39,0 +30,0 @@ getLocation(response) {

@@ -0,0 +0,0 @@ const API_OPTIONS = {

@@ -24,3 +24,5 @@ import AvMicroservice from '../ms';

if (!config.customerId || !config.clientId) {
throw Error('[config.customerId] and [config.clientId] must be defined');
throw new Error(
'[config.customerId] and [config.clientId] must be defined'
);
}

@@ -27,0 +29,0 @@ config = this.config(config);

@@ -26,3 +26,5 @@ import AvMicroservice from '../ms';

if (!config.customerId || !config.clientId) {
throw Error('[config.customerId] and [config.clientId] must be defined');
throw new Error(
'[config.customerId] and [config.clientId] must be defined'
);
}

@@ -29,0 +31,0 @@ config = this.config(config);

@@ -0,0 +0,0 @@ import AvApi from '../api';

@@ -0,0 +0,0 @@ import AvApi from '../api';

@@ -0,0 +0,0 @@ import AvApi from '../api';

@@ -0,0 +0,0 @@ import AvApi from '../api';

@@ -0,0 +0,0 @@ import AvApi from '../api';

@@ -0,0 +0,0 @@ import AvApi from '../api';

@@ -6,3 +6,3 @@ import AvApi from '../api';

if (!config || !config.tenant) {
throw Error('Must specify tenant name for Proxy');
throw new Error('Must specify tenant name for Proxy');
}

@@ -9,0 +9,0 @@ const options = Object.assign(

@@ -175,1 +175,10 @@ # Availity API's

Use `update(data)` with at least an `applicationId` in the `scope` object, and key/value pairs of data
### `AvSlotMachine`
GraphQL Server containing different queries and mutation
#### methods
`query(data: string)`

@@ -39,3 +39,3 @@ import AvApi from '../api';

if (!spaceId) {
throw Error('[spaceId] must be defined');
throw new Error('[spaceId] must be defined');
}

@@ -42,0 +42,0 @@ return this.get(spaceId).then(response => response.data.name);

@@ -0,0 +0,0 @@ import AvApi from '../api';

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