leadconduit-trustedform 2.3.5 → 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
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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
|
+
|
|
9
|
+
## [2.3.6] - 2024-03-12
|
|
10
|
+
### Fixed
|
|
11
|
+
- v4 integration now appends `masked_cert_url` when present
|
|
12
|
+
|
|
5
13
|
## [2.3.5] - 2024-02-22
|
|
6
14
|
### Fixed
|
|
7
15
|
- fixed the loading screen an issue causing perpetual loading screens for old TF integrations ([sc-68876](https://app.shortcut.com/active-prospect/story/68876/leadconduit-trustedform-consent-integration-ui-issue))
|
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.` },
|
|
@@ -144,6 +145,7 @@ const response = (vars, req, res) => {
|
|
|
144
145
|
|
|
145
146
|
previously_retained: parsed.retain?.results?.previously_retained,
|
|
146
147
|
expires_at: parsed.retain?.results?.expires_at || parsed.insights?.properties?.expires_at,
|
|
148
|
+
masked_cert_url: parsed.retain?.results?.masked_cert_url,
|
|
147
149
|
|
|
148
150
|
scans_result: parsed.insights?.scans?.result?.success,
|
|
149
151
|
required_scans_found: parsed.insights?.scans?.result?.required?.found,
|
|
@@ -219,6 +221,7 @@ response.variables = () => [
|
|
|
219
221
|
{ name: 'vendor', type: 'string', description: 'The parameter provided in the request, intended to be the name of the company that provided the lead associated with the certificate.' },
|
|
220
222
|
{ name: 'previously_retained', type: 'boolean', description: 'A boolean indicating whether your account had already retained this certificate.' },
|
|
221
223
|
{ name: 'expires_at', type: 'time', description: 'The UTC ISO8601 formatted date and time when this certificate will no longer be available for API requests.' },
|
|
224
|
+
{ name: 'masked_cert_url', type: 'url', description: 'The certificate url that masks the lead source url and snapshot' },
|
|
222
225
|
{ name: 'scans_result', type: 'boolean', description: 'A boolean indicating if all required text was found and none of the forbidden text was found.' },
|
|
223
226
|
{ name: 'required_scans_found', type: 'array', description: 'A list of required scan terms that were found in the recorded content.' },
|
|
224
227
|
{ name: 'required_scans_not_found', type: 'array', description: 'A list of required scan terms that were not found in the recorded content.' },
|