@oculushealth/utils

Oculushealth Utils Package

Usage no npm install needed!

<script type="module">
  import oculushealthUtils from 'https://cdn.skypack.dev/@oculushealth/utils';
</script>

README

@oculushealth/utils

Utils package that is used in the Oculushealth projects.

Environment Variables

Following environment variables are needed

    PLIVO_AUTH_ID
    PLIVO_AUTH_TOKEN
    PLIVO_PHLO_ID
    PLIVO_SOURCE_NUMBER
    ENC_ALGO
    ENC_SALT
    AWS_REGION_NAME
    MAILGUN_API_KEY

Example usage

import {
  invokeLambda
} from "@oculushealth/utils";

(async function() {
  const response = await invokeLambda( {
    functionNme: "oh-lambda-function",
    invocationType: "RequestResponse",
    params: { organizationId: "", updatedAt: "" }
  });
})();