The pocl-job package handles processing of Post Office Counter Licence sales files.
The job will retrieve POCL XML files from the configured FTP server and download these into AWS S3.
Each XML file is subsequently parsed and the payload is transformed into the required JSON format to be passed to the Sales API. DynamoDB is used to maintain state during the import process.
name | description | required | default | valid | notes |
---|---|---|---|---|---|
NODE_ENV | Node environment | no | development, test, production | ||
POCL_FILE_STAGING_TABLE | The DynamoDB table used for staging POCL files | yes | |||
POCL_RECORD_STAGING_TABLE | The DynamoDB table used for staging POCL records | yes | |||
POCL_STAGING_TTL | The time to live for records in either staging table | no | 168 hours | ||
POCL_S3_BUCKET | The name of the AWS S3 bucket in which to stage pocl data | yes | |||
DEBUG | Use to enable output of debug information to the console | yes | pocl:*, pocl:staging, pocl:transport, pocl:ftp | ||
AIRBRAKE_HOST | URL of airbrake host | no | |||
AIRBRAKE_PROJECT_KEY | Project key for airbrake logging | no |
- Environment variables required by the connectors-lib package.