@xapp/stentor-service-boberdoo 1.88.6 → 1.88.8
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/README.md +26 -0
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
## @xapp/stentor-service-boberdoo
|
|
2
|
+
|
|
3
|
+
`stentor-models` `CrmService` implementation that posts leads to a LeadPortal/Boberdoo lead-distribution platform using the `pingPostLead` action in full mode. It maps an `ExternalLead` (plus optional TrustedForm/UTM extras) onto the Boberdoo wire format, posts it, and parses the `Matched` / `Unmatched` / `Error` response back into a `CrmResponse`. Since Boberdoo is a lead-distribution service rather than a true CRM, `getAvailability` and `getJobType` are stubbed to keep the interface consistent with other CRM integrations.
|
|
4
|
+
|
|
5
|
+
### Usage
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { BoberdooIntegration, PCM_GROWTH_LEADPORTAL_ENDPOINT } from "@xapp/stentor-service-boberdoo";
|
|
9
|
+
|
|
10
|
+
const crmService = new BoberdooIntegration({
|
|
11
|
+
apiKey: "...",
|
|
12
|
+
leadType: "33",
|
|
13
|
+
src: "Xapp",
|
|
14
|
+
landingPage: "https://example.com/contact",
|
|
15
|
+
apiEndpoint: PCM_GROWTH_LEADPORTAL_ENDPOINT,
|
|
16
|
+
testMode: false
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const response = await crmService.send(externalLead, extras);
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
For callers that need to execute the HTTP request themselves (e.g. to capture it for audit logging), the stateless `buildBoberdooRequest()` and `parseBoberdooResponse()` helpers are also exported.
|
|
23
|
+
|
|
24
|
+
### Documentation
|
|
25
|
+
|
|
26
|
+
- [Boberdoo pingPostLead API reference](https://pcmgrowth.leadportal.com/new_api/index.php?action=detail&func=pingPostLead&TYPE=33)
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.88.
|
|
7
|
+
"version": "1.88.8",
|
|
8
8
|
"description": "Service to integrate with Boberdoo lead distribution",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"dotenv": "17.4.2",
|
|
24
24
|
"mocha": "11.8.0",
|
|
25
25
|
"sinon": "21.0.0",
|
|
26
|
-
"stentor-logger": "1.74.
|
|
27
|
-
"stentor-models": "1.
|
|
26
|
+
"stentor-logger": "1.74.12",
|
|
27
|
+
"stentor-models": "1.81.0",
|
|
28
28
|
"ts-node": "10.9.2",
|
|
29
29
|
"typescript": "5.9.3"
|
|
30
30
|
},
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
"test:f": "mocha --recursive --timeout 30000 -r ts-node/register \"./src/**/*.ftest.ts\""
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"axios": "1.
|
|
43
|
+
"axios": "1.20.0"
|
|
44
44
|
}
|
|
45
45
|
}
|