0.2.6 • Published 2 years ago
@boozt/sis-tools v0.2.6
SIS Tools
The package of tools that can come in handy for developing Google Cloud Function as part of the SIS project (Salesforce integration service)
A tree of components
- requestAssistant - Retrieve and handle requests
- customError - Handle errors
- Warning
- CustomError
- ReportError
- logger - Instead of using
console.log
- helpers - Some useful functions
- memoryUsage - Measure memory usage
- client - The client can be used as an alternative of sfmc-modules
- bin/inquire.js - Allows you to inquire if there have been errors as a result of an asynchronous request.
- api - The API client
Settings
To use the client and inquire.js you should set up the following ENV variables:
- SFMC_BASE_URL
- SFMC_TOKEN_URL
- SFMC_CLIENT_ID
- SFMC_CLIENT_SECRET
You can use .env file to set up these variables
Example to run without using .env:
export SFMC_BASE_URL=""; export SFMC_TOKEN_URL=""; export SFMC_CLIENT_ID=""; export SFMC_CLIENT_SECRET=""; npm run inquire
Changelog
See: CHANGELOG.MD