@boomi/embedkit-sdk 1.0.3 → 1.0.5

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.
Files changed (2) hide show
  1. package/README.md +14 -13
  2. 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
- const boomi = new Boomi({
25
- BASE: process.env.API_URL, // Example: https://api.boomi.com/api/rest/v1/YOUR_BOOMI_ACCOUNT_ID
26
- USERNAME: process.env.API_USERNAME, // Example: BOOMI_TOKEN.some_user@domain.com
27
- PASSWORD: process.env.API_TOKEN, // Example: 123abc456def789ghi
28
- WITH_CREDENTIALS: true, // Set to true
29
- OVERRIDE_ACCOUNT: false, // Set to true
30
- OVERRIDE_ACCOUNT_ID: process.env.API_AUTH_USER, // Example: Auth user BOOMI_ACCOUNT_ID
31
- CREDENTIALS: 'include',
32
- });
33
- } catch (error) {
34
- console.error('Error:', error);
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",
3
+ "version": "1.0.5",
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
- "./embed-js-node.js": "./dist/index.js"
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"