@boomi/embedkit-sdk 1.0.3 → 1.0.4
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 +14 -13
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -20,19 +20,20 @@ The package needs to be configured with your Boomi Platform AccountID, API User
|
|
|
20
20
|
|
|
21
21
|
<!-- prettier-ignore -->
|
|
22
22
|
```js
|
|
23
|
-
try {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
try {
|
|
24
|
+
const accountId = process.env.API_ACCOUNT_ID!;
|
|
25
|
+
boomi = new Boomi({
|
|
26
|
+
BASE: `https://api.boomi.com/api/rest/v1/${accountId}`,
|
|
27
|
+
USERNAME: process.env.API_USERNAME,
|
|
28
|
+
PASSWORD: process.env.API_TOKEN,
|
|
29
|
+
WITH_CREDENTIALS: true, // Ensure credentials are included in requests
|
|
30
|
+
CREDENTIALS: 'include', // set to include
|
|
31
|
+
OVERRIDE_ACCOUNT: false, // Set to true to access data from child accounts
|
|
32
|
+
OVERRIDE_ACCOUNT_ID: process.env.API_AUTH_USER, // Example: Auth user BOOMI_ACCOUNT_ID
|
|
33
|
+
});
|
|
34
|
+
} catch (error) {
|
|
35
|
+
console.error('Error:', error);
|
|
36
|
+
}
|
|
36
37
|
```
|
|
37
38
|
|
|
38
39
|
To call and endpoint using the above:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boomi/embedkit-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Boomi EmbedKit SDK",
|
|
5
5
|
"author": "Boomi",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": "./dist/index.js",
|
|
12
|
-
"./
|
|
12
|
+
"./embedkit-sdk.js": "./dist/index.js"
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
15
|
"dist/**/*"
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
"gen": "npx openapi-typescript-codegen -i ./platformopenapi.json -o ./lib/types",
|
|
23
23
|
"test": "jest --config jest.config.ts --no-cache --detectOpenHandles --silent=false --forceExit"
|
|
24
24
|
},
|
|
25
|
+
"jest": {
|
|
26
|
+
"setupFiles": [
|
|
27
|
+
"./tests/config/setEnvVars.js"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
25
30
|
"devDependencies": {
|
|
26
31
|
"@types/jest": "^29.5.14",
|
|
27
32
|
"@types/node": "^22.14.0",
|
|
@@ -31,7 +36,6 @@
|
|
|
31
36
|
"nodemon": "^3.1.9",
|
|
32
37
|
"openapi-typescript": "^7.6.1",
|
|
33
38
|
"prettier": "^3.5.3",
|
|
34
|
-
"supertest": "^7.1.0",
|
|
35
39
|
"ts-jest": "^29.3.1",
|
|
36
40
|
"ts-node": "^10.9.2",
|
|
37
41
|
"typescript": "^5.8.2"
|