@boozt/sis-tools

0.2.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @boozt/sis-tools

Weekly Downloads

10

Version

0.2.6

License

ISC

Unpacked Size

30.1 kB

Total Files

20

Last publish

Collaborators

  • misoboozt
  • mgro
  • bang.boozt
  • mykr
  • boozt-platform
  • yebl