leadconduit-migration-tool
v0.1.0
Published
Flow Migration Tool for LeadConduit
Downloads
10
Maintainers
Keywords
Readme
migration-tool
A flow migration tool for LeadConduit.
This version is hardcoded to migrate from WhitePages's deprecated address_validation
endpoint to global_address_validation
.
It will find all the flows in an account that use address_validation
, and change their integration steps, mappings, and rules. It asks, for each flow it finds, if you're sure you want to update that one.
The tool also writes the original and updated flows to './<flow.id>.before.json' and './<flow.id>.after.json', respectively.
Though it updates flow
s, note that it does currently not "deploy" them. That must be done separately, via API or UI.
To use:
- install via clone of this repo, or
npm install leadconduit-migration-tool
- set and export your ActiveProspect API key as
$AP_STAGING
- to run against production instead of staging, set the value of
getUrl
in the script tohttps://X:${process.env.AP_STAGING}@next.leadconduit.com/flows
(and, possibly, change your API key environment variable, if it's different between staging and production). - run
node bin/migrate.js
.