Package Exports
- loopback-connector-quickbooks
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (loopback-connector-quickbooks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
loopback-connector-quickbooks
This connector is currently under development and should not be used in production, get involved and help us speed up development by taking a look at the TODO section
The purpose of this connector is to act as the middle and end man in the process of communication to QuickBooks Web Connector used to communicate to QuickBooks Desktop software. Traditionally QuickBooks Web Connector requires a SOAP server to send and receive XML requests to view, create or update QuickBooks data. This connector has a built in SOAP server built in. The connector itself is responsible intaking a traditional RESTful API request, and using the SOAP service to communicate it to the QuickBooks Web Connector.
Thank you
Big thanks to johnballantyne. The built in SOAP service is based upon his implementation of Node.js QBWebConnector service with modifications to support dynamic queries.
Another big thanks goes to the creator of the project quickbooks-php,
Keith Palmer from ConsoliBYTE, LLC. Without his guidance on an issue i had when implementing the Mod and Add
operations i would have pulled my hair out and OD'd on coffee. The project quickbooks-php and their usage of schema
files for validation was a key part to this connector
How it Works
Once you have installed the connector and added the datasource the rest is magic. Since QuickBooks data is not
schemaless the connector is in charge of automatically building all required Loopback Models, meaning right out of
the box once you serve up your API you will have access to Customers, UnitOfMeasureSets, Employees and many more
(full list bellow). Upon serving your API all the data from QuickBooks will be available to query. You can use the
reSync() method to ask QuickBooks for updated data.
Install connector from NPM
npm install loopback-connector-quickbooks --saveConfiguring QuickBooks connector
Edit datasources.json and add:
"quickbooksService": {
"name": "quickbooksService",
"connector": "loopback-connector-quickbooks",
"username": "qbuser",
"password": "pas***rd1234"
"companyFile": "C:\\Users\\Public\\Documents\\Intuit\\QuickBooks\\Company Files\\NodeGeeks LLC.qbw",
"enableServiceLog": true,
"config": {
"verbosity": 2
}
}Settings:
- name: The name of the datasource must be
quickbooksService - username: Username used in the .QWC file created for your server
- password: Password set in QuickBooks Web Connector
- companyFile: Directory on your local machine where your QuickBooks company file is located
- enableServiceLog: Enabled debug logging, this coupled with the config.verbosity determines how deep logging is enabled
TODO
- Finish implementing POST(Add) and UPDATE(Mod) operations
- Add maxLength[ ], datatype[√], order[√], required[ ] and a custom[ ] validation.
customvalidation should be a function that would return true or false. Each validation should be defined within its appropriate schema (model) file