UNPKG

@fastintegration/controller

Version:

BIPBOP integration services, backend client.

75 lines (61 loc) 3.13 kB
# fastintegration-controller@1.2.3 BIPBOP integration services, backend client. ## TL;DR ```html <script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script> <script src="https://www.gstatic.com/firebasejs/4.9.0/firebase.js"></script> <script src="/node_modules/@fastintegration/controller/browser.js"></script> ``` ```js document.body.addEventListener('fastintegration.authentication'); // Pedido de autenticação /** global firebase */ document.body.dispatchEvent(new CustomEvent('fastintegration.authentication.required' { detail : { firebase.auth().currentUser } })); ``` ```js var fast = new FastintegrationController.JuristekIntegration({ token: "token", username: "username" }); fast.authentication().then(function () { return fast.cnjPromise('10879641520178260100'); }); ``` ## Installation Download node at [nodejs.org](http://nodejs.org) and install it, if you haven't already. ```sh npm install fastintegration-controller --save --registry https://npm.bipbop.com.br/ ``` This package is provided in these module formats: - CommonJS ## Dependencies - [es6-error](https://github.com/bjyoungblood/es6-error): Easily-extendable error for use with ES6 classes - [firebase](https://igithub.com/firebase/firebase-js-sdk): Firebase JavaScript library for web and Node.js - [human-interval](https://github.com/rschmukler/human-interval): Human readable time measurements - [superoverload](https://github.com/verkholantsev/superoverload): Function overload for JavaScript - lodash - escape-firebase - p-timeout - unfetch ## Dev Dependencies - [eslint-config-airbnb-base](https://github.com/airbnb/javascript): Airbnb's base JS ESLint config, following our styleguide - [eslint-config-airbnb-es5](https://github.com/1hella/eslint-config-airbnb-es5): Unofficial Airbnb ESLint config, following their ES5 style guide - [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import): Import with sanity. - [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react): React specific linting rules for ESLint - [gulp-jsdoc3](https://github.com/mlucool/gulp-jsdoc3): gulp integration for jsdoc3 cli - [karma](https://github.com/karma-runner/karma): Spectacular Test Runner for JavaScript. - [karma-mocha](https://github.com/karma-runner/karma-mocha): A Karma plugin. Adapter for Mocha testing framework. - [karma-phantomjs2-launcher](https://github.com/gskachkov/karma-phantomjs2-launcher): A Karma plugin. Launcher for PhantomJS 2. Slightly changed karma-phantomjs-launcher plugin.ß - [mocha](https://github.com/mochajs/mocha): simple, flexible, fun test framework - [rollup-plugin-istanbul](https://github.com/artberri/rollup-plugin-istanbul): Seamless integration between Rollup and Istanbul. - [rollup-plugin-license](https://github.com/mjeanroy/rollup-plugin-license): Rollup plugin to add license banner to the final bundle and output third party licenses - rollup-plugin-buble - rollup-plugin-commonjs - rollup-plugin-json - rollup-plugin-node-resolve - rollup - uglify-js - eslint - gulp - gulp-gh-pages ## License [GPL-2.0](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html)