1.0.0-main.6 • Published 3 years ago
xero-invoice-worker v1.0.0-main.6
Xero Invoice Worker
npm commands
- npm start, start the invoice work server
- npm run start:dev, run dev server with the source code
- npm run build, build the server and output the files to dist folder
- clean, remove the dist folder
- npm run doc, to build and documentation page
Server Options
- feed-url, sepecifies the endpoint url to retrieve that invoices events data. Default value: http://localhost:9001/invoices/events. Override by calling "npm start -- --feed-url=http://test.com/".
- invoice-dir, folder path to save the generated PDF files. Default value: ./invoiceDir. Override by calling "npm start -- --invoice-dir=./invoices".
- port, server port number. Default value: 9000. Override by calling npm start -- --port=8080
- useLocalMockServer, a flag indicates if a local mock invoices server need to be started for feeding the invoices events. Default value: true
- mockServerPort, mock server port number. Default value: 9001
- fetchFrequence, cron time string. Default to 10 seconds: 10 * * * * *
- pageSize, page size used when fetching the events. Default value: 10.
- afterEventId, initial event id to start fetching from. Default value: 0.
Default Local Mock Server
A mock server for feeding the stub invoices events and can be used for local development.
Endpoint url: http://localhost:9001/invoices/events?pageSize=10&afterEventId=0
1.0.0-main.18
3 years ago
1.0.0-main.19
3 years ago
1.0.0-main.17
3 years ago
1.0.0-main.16
3 years ago
1.0.0-main.14
3 years ago
1.0.0-main.15
3 years ago
1.0.0-main.13
3 years ago
1.0.0-main.12
3 years ago
1.0.0-main.11
3 years ago
1.0.0-main.10
3 years ago
1.0.0-main.9
3 years ago
1.0.0-main.6
3 years ago