leadconduit-trustedform 2.3.6 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/lib/trustedform.js +2 -1
- package/lib/ui/public/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org)
|
|
4
4
|
|
|
5
|
+
## [2.4.0] - 2024-04-10
|
|
6
|
+
### Added
|
|
7
|
+
- v4 integration now supports optional api key mapping
|
|
8
|
+
|
|
5
9
|
## [2.3.6] - 2024-03-12
|
|
6
10
|
### Fixed
|
|
7
11
|
- v4 integration now appends `masked_cert_url` when present
|
package/lib/trustedform.js
CHANGED
|
@@ -39,7 +39,7 @@ const request = (vars) => {
|
|
|
39
39
|
headers: {
|
|
40
40
|
'Content-Type': 'application/json',
|
|
41
41
|
'api-version': '4.0',
|
|
42
|
-
Authorization: `Basic ${Buffer.from(`X:${vars.activeprospect.api_key}`).toString('base64')}`
|
|
42
|
+
Authorization: `Basic ${Buffer.from(`X:${trustedform.api_key || vars.activeprospect.api_key}`).toString('base64')}`
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
};
|
|
@@ -77,6 +77,7 @@ request.variables = () => [
|
|
|
77
77
|
{ name: 'lead.trustedform_cert_url', type: 'trustedform_url', required: true, description: 'TrustedForm Certificate URL' },
|
|
78
78
|
{ name: 'lead.email', type: 'string', required: false, description: `The email of the consumer you believe was recorded in the certificate; defaults to the lead's "Email" field.` },
|
|
79
79
|
{ name: 'lead.phone_1', type: 'string', required: false, description: `The phone number of the consumer you believe was recorded in the certificate; defaults to the lead's "Phone 1" field.`},
|
|
80
|
+
{ name: 'trustedform.api_key', type: 'string', required: false, description: 'Optional TrustedForm API key. Used for claiming certs that belong to another account' },
|
|
80
81
|
|
|
81
82
|
{ name: 'trustedform.retain', type: 'boolean', required: true, description: 'If true, a request to the Retain product will be made' },
|
|
82
83
|
{ name: 'trustedform.custom_reference', type: 'string', required: false, description: `Any text that may help you identify the lead associated with the certificate, such as a unique lead identifier or URL pointing to the lead in another system; defaults to the lead's url.` },
|