Skip to content

Commit

Permalink
Merge branch 'master' into feature/uploadEncryption
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoler committed Apr 18, 2018
2 parents 3d1b517 + 42eb73f commit 236e8cd
Show file tree
Hide file tree
Showing 23 changed files with 6,081 additions and 466 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules
.vscode
.DS_Store
.idea

30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
<a name="1.4.1"></a>
## [1.4.1](https://github.com/Availity/sdk-js/compare/v1.4.0...v1.4.1) (2018-04-18)


### Bug Fixes

* **upload:** replace object.values usage ([8967629](https://github.com/Availity/sdk-js/commit/8967629))



<a name="1.4.0"></a>
# [1.4.0](https://github.com/Availity/sdk-js/compare/v1.3.0...v1.4.0) (2018-04-17)


### Features

* **upload-core:** modify file figerprint to use metadata ([d45ac0c](https://github.com/Availity/sdk-js/commit/d45ac0c))



<a name="1.3.0"></a>
# [1.3.0](https://github.com/Availity/sdk-js/compare/v1.2.0...v1.3.0) (2018-04-13)


### Bug Fixes

* **api-angular:** fix MS extends ([24544cc](https://github.com/Availity/sdk-js/commit/24544cc))



<a name="1.2.0"></a>
# [1.2.0](https://github.com/Availity/sdk-js/compare/v1.1.4...v1.2.0) (2018-04-12)

Expand Down
45 changes: 24 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# sdk-js

> Javascript SDK for Availity
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square&label=license)](http://opensource.org/licenses/MIT)
Expand All @@ -7,33 +8,35 @@

## Supported Browsers

* Internet Explorer 11 and newer
* Google Chrome
* Mozilla Firefox
* Internet Explorer 11 and newer
* Google Chrome
* Mozilla Firefox

## Documentation

- [api-core](packages/api-core/README.md) - Base API definitions used by [api-axios](packages/api-axios/README.md) and [api-angular](api-angular/README.md) for the Availity REST API.
* [AvUser](packages/api-core/src/resources/README.md#avuser)
* [AvRegions](packages/api-core/src/resources/README.md#avregions)
* [AvPermissions](packages/api-core/src/resources/README.md#avpermissions)
* [AvUserPermissions](packages/api-core/src/resources/README.md#avuserpermissions)
* [AvNavigation](packages/api-core/src/resources/README.md#avnavigation)
* [AvSpaces](packages/api-core/src/resources/README.md#avspaces)
* [AvOrganizations](packages/api-core/src/resources/README.md#avorganizations)
* [AvProviders](packages/api-core/src/resources/README.md#avproviders)
* [AvLogMessage](packages/api-core/src/resources/README.md#avlogmessage)
* [AvProxy](packages/api-core/src/resources/README.md#avproxy)
- [api-axios](packages/api-axios/README.md) - A package wrapping [@av/api-core](../api-core/README.md) with [axios](https://github.com/axios/axios) and native ES6 Promise.
- [api-angular](packages/api-angular/README.md) - A package wrapping [@av/api-core](../api-core/README.md) with Angular `$http`.
- [localalstorage-core](packages/localstorage-core/README.md) - Wraps localStorage with utility functions.
- [message-core](packages/message-core/README.md) - Wraps postMessage function with helper functions and security checks.
* [api-core](packages/api-core/README.md) - Base API definitions used by [api-axios](packages/api-axios/README.md) and [api-angular](api-angular/README.md) for the Availity REST API.
* [AvUser](packages/api-core/src/resources/README.md#avuser)
* [AvRegions](packages/api-core/src/resources/README.md#avregions)
* [AvPermissions](packages/api-core/src/resources/README.md#avpermissions)
* [AvUserPermissions](packages/api-core/src/resources/README.md#avuserpermissions)
* [AvNavigation](packages/api-core/src/resources/README.md#avnavigation)
* [AvSpaces](packages/api-core/src/resources/README.md#avspaces)
* [AvOrganizations](packages/api-core/src/resources/README.md#avorganizations)
* [AvProviders](packages/api-core/src/resources/README.md#avproviders)
* [AvLogMessage](packages/api-core/src/resources/README.md#avlogmessage)
* [AvProxy](packages/api-core/src/resources/README.md#avproxy)
* [api-axios](packages/api-axios/README.md) - A package wrapping [@av/api-core](../api-core/README.md) with [axios](https://github.com/axios/axios) and native ES6 Promise.
* [api-angular](packages/api-angular/README.md) - A package wrapping [@av/api-core](../api-core/README.md) with Angular `$http`.
* [localalstorage-core](packages/localstorage-core/README.md) - Wraps localStorage with utility functions.
* [message-core](packages/message-core/README.md) - Wraps postMessage function with helper functions and security checks.
* [upload-core](packages/message-core/README.md) - > Wrapper for tus-js-client

## Contribute

- Run `npm install`
- Commits should use the [Angular Commit Format](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#type). Scope should one of packages under `./packages/`. If a commit applys to multiple packages, leave out the scope.
- Release versions with Semantic version and `npm run release`. The version is determined by analyzing the commit messaging. To use a custom version, run `npm run release <VERSION>`.
* Run `npm install`
* Commits should use the [Angular Commit Format](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#type). Scope should one of packages under `./packages/`. If a commit applys to multiple packages, leave out the scope.
* Release versions with Semantic version and `npm run release`. The version is determined by analyzing the commit messaging. To use a custom version, run `npm run release <VERSION>`.

## License

[MIT](./LICENSE)
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"packages/*"
],
"message": "chore: publish %s",
"version": "1.2.0"
"version": "1.4.1"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@
"url": "https://github.com/robmcguinness"
}
],
"version": "1.2.0"
"version": "1.4.1"
}
4 changes: 2 additions & 2 deletions packages/analytics-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@availity/analytics-angular",
"private": true,
"version": "1.2.0",
"version": "1.4.0",
"description": "availity analytics class for setting up and using plugins",
"main": "src/index.js",
"author": "Kasey Powers <kasey.powers@availity.com>",
Expand All @@ -13,7 +13,7 @@
},
"devDependencies": {
"@availity/analytics-core": "^1.0.1",
"@availity/api-angular": "^1.2.0",
"@availity/api-angular": "^1.4.0",
"angular": "^1.6.4",
"angular-mocks": "^1.6.4"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/api-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@availity/api-angular",
"version": "1.2.0",
"version": "1.4.0",
"description": "Wraps @availity/api-core with Angular $http",
"main": "src/index.js",
"author": "",
Expand All @@ -10,7 +10,7 @@
"angular": "^1.6.0"
},
"devDependencies": {
"@availity/api-core": "^1.2.0",
"@availity/api-core": "^1.4.0",
"angular": "^1.6.0",
"angular-mocks": "^1.6.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/api-angular/src/ms.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import angular from 'angular';

import Api from '@availity/api-core';
import { AvMicroservice } from '@availity/api-core';

function factory($http, $q, avApiOptions) {
class AvMicroservice extends Api {
class AvMicroserviceApi extends AvMicroservice {
constructor(options) {
if (!options) {
throw new Error('[options] cannot be null or undefined');
Expand All @@ -18,7 +18,7 @@ function factory($http, $q, avApiOptions) {
});
}
}
return AvMicroservice;
return AvMicroserviceApi;
}

export default factory;
7 changes: 5 additions & 2 deletions packages/api-angular/src/tests/ms.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@ import angular from 'angular';
import 'angular-mocks';
import avModule from '../';

describe('Api Definitions Angular', () => {
describe('MicroserviceApi Definitions Angular', () => {
beforeEach(() => {
angular.mock.module(avModule);
});

describe('AvMicroservice', () => {
test('should initialize with constructor', () => {
test('should initialize AvMicroserviceApi', () => {
angular.mock.inject(_AvMicroserviceApi_ => {
const AvMicroserviceApi = _AvMicroserviceApi_;
expect(AvMicroserviceApi).toBeDefined();
expect(() => {
// eslint-disable-next-line
new AvMicroserviceApi({ path: '/a/b', name: 'foo' });
}).not.toThrow();

const testMsApi = new AvMicroserviceApi({ path: '/a/b', name: 'foo' });
expect(testMsApi.defaultConfig.pollingMethod).toEqual('POST');
});
});
});
Expand Down
4 changes: 2 additions & 2 deletions packages/api-axios/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@availity/api-axios",
"version": "1.2.0",
"version": "1.4.0",
"description": "Wraps @availity/api-core with Axios",
"main": "src/index.js",
"author": "Kasey Powers <kasey.powers@availity.com>",
Expand All @@ -10,7 +10,7 @@
"axios": "^0.16.0 || ^0.17.0"
},
"devDependencies": {
"@availity/api-core": "^1.2.0",
"@availity/api-core": "^1.4.0",
"axios": "^0.16.0 || ^0.17.0"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/api-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@availity/api-core",
"version": "1.2.0",
"version": "1.4.0",
"description": "Base API definitions for the Availity REST API",
"keywords": [
"availity",
Expand All @@ -17,7 +17,7 @@
"@availity/localstorage-core": "^1.0.0-alpha.17"
},
"devDependencies": {
"@availity/localstorage-core": "^1.0.1"
"@availity/localstorage-core": "^1.4.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/authorizations-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@availity/authorizations-angular",
"private": true,
"version": "1.2.0",
"version": "1.4.0",
"description": "Availity authorizations angular logic",
"main": "src/index.js",
"author": "Kasey Powers <kasey.powers@availity.com>",
Expand All @@ -12,7 +12,7 @@
"angular": "^1.6.4"
},
"devDependencies": {
"@availity/api-angular": "^1.2.0",
"@availity/api-angular": "^1.4.0",
"@availity/authorizations-core": "^1.0.1",
"angular": "^1.6.4",
"angular-mocks": "^1.6.4"
Expand Down
8 changes: 4 additions & 4 deletions packages/authorizations-axios/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@availity/authorizations-axios",
"private": true,
"version": "1.2.0",
"version": "1.4.0",
"description": "Availity authorizations react logic",
"main": "src/index.js",
"author": "Kasey Powers <kasey.powers@availity.com>",
Expand All @@ -14,10 +14,10 @@
"axios": "^0.16.0 || ^0.17.0"
},
"devDependencies": {
"@availity/api-axios": "^1.2.0",
"@availity/api-core": "^1.2.0",
"@availity/api-axios": "^1.4.0",
"@availity/api-core": "^1.4.0",
"@availity/authorizations-core": "^1.0.1",
"@availity/localstorage-core": "^1.0.1",
"@availity/localstorage-core": "^1.4.0",
"axios": "^0.16.0 || ^0.17.0"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/exceptions-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@availity/exceptions-angular",
"private": true,
"version": "1.2.0",
"version": "1.4.0",
"description": "Availity class to log exceptions",
"main": "src/index.js",
"author": "Kasey Powers <kasey.powers@availity.com>",
Expand All @@ -12,7 +12,7 @@
"angular": "^1.6.4"
},
"devDependencies": {
"@availity/api-angular": "^1.2.0",
"@availity/api-angular": "^1.4.0",
"@availity/exceptions-core": "^1.0.1",
"angular": "^1.6.4",
"angular-mocks": "^1.6.4"
Expand Down
Loading

0 comments on commit 236e8cd

Please sign in to comment.