File tree Expand file tree Collapse file tree 15 files changed +186
-44
lines changed
integration-sdk-benchmark
integration-sdk-dev-tools
integration-sdk-http-client
integration-sdk-private-test-utils Expand file tree Collapse file tree 15 files changed +186
-44
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ and this project adheres to
99
1010## Unreleased
1111
12+ ## 8.22.0 - 2021-07-20
13+
14+ - Support async ` beforeAddRelationship ` hook in ` IntegrationInvocationConfig ` .
15+ See the development documentation for more information on its usage.
16+
1217## 8.21.0 - 2021-07-20
1318
1419### Added
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ data retrieved in the step as a partial dataset. See the
286286[ Failure handling] ( #failure-handling ) section below for more information on
287287partial datasets.
288288
289- #### ` beforeAddEntity `
289+ #### ` beforeAddEntity(context: IntegrationExecutionContext<IntegrationConfig>, e: Entity): Entity `
290290
291291` beforeAddEntity ` is an optional hook function that can be provided. The
292292function is called before an entity is added to the job state internally and the
@@ -323,7 +323,7 @@ export const invocationConfig: IntegrationInvocationConfig<IntegrationConfig> =
323323 };
324324```
325325
326- #### ` beforeAddRelationship `
326+ #### ` beforeAddRelationship(context: IntegrationExecutionContext<IntegrationConfig>, r: Relationship): Promise<Relationship> | Relationship `
327327
328328` beforeAddRelationship ` is an optional hook function that can be provided. The
329329function is called before a relationship is added to the job state internally
Original file line number Diff line number Diff line change 11{
22 "name" : " @jupiterone/cli" ,
3- "version" : " 8.21 .0" ,
3+ "version" : " 8.22 .0" ,
44 "description" : " The JupiterOne cli" ,
55 "main" : " dist/src/index.js" ,
66 "types" : " dist/src/index.d.ts" ,
2424 "test" : " jest"
2525 },
2626 "dependencies" : {
27- "@jupiterone/integration-sdk-core" : " ^8.21 .0" ,
28- "@jupiterone/integration-sdk-runtime" : " ^8.21 .0" ,
27+ "@jupiterone/integration-sdk-core" : " ^8.22 .0" ,
28+ "@jupiterone/integration-sdk-runtime" : " ^8.22 .0" ,
2929 "@lifeomic/attempt" : " ^3.0.3" ,
3030 "commander" : " ^5.0.0" ,
3131 "globby" : " ^11.0.1" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @jupiterone/integration-sdk-benchmark" ,
3- "version" : " 8.21 .0" ,
3+ "version" : " 8.22 .0" ,
44 "private" : true ,
55 "description" : " SDK benchmarking scripts" ,
66 "main" : " ./src/index.js" ,
1515 "benchmark" : " for file in ./src/benchmarks/*; do yarn prebenchmark && node $file; done"
1616 },
1717 "dependencies" : {
18- "@jupiterone/integration-sdk-core" : " ^8.21 .0" ,
19- "@jupiterone/integration-sdk-runtime" : " ^8.21 .0" ,
18+ "@jupiterone/integration-sdk-core" : " ^8.22 .0" ,
19+ "@jupiterone/integration-sdk-runtime" : " ^8.22 .0" ,
2020 "benchmark" : " ^2.1.4"
2121 }
2222}
Original file line number Diff line number Diff line change 11{
22 "name" : " @jupiterone/integration-sdk-cli" ,
3- "version" : " 8.21 .0" ,
3+ "version" : " 8.22 .0" ,
44 "description" : " The SDK for developing JupiterOne integrations" ,
55 "main" : " dist/src/index.js" ,
66 "types" : " dist/src/index.d.ts" ,
2222 "prepack" : " yarn build:dist"
2323 },
2424 "dependencies" : {
25- "@jupiterone/integration-sdk-runtime" : " ^8.21 .0" ,
25+ "@jupiterone/integration-sdk-runtime" : " ^8.22 .0" ,
2626 "chalk" : " ^4" ,
2727 "commander" : " ^5.0.0" ,
2828 "fs-extra" : " ^10.1.0" ,
3737 "vis" : " ^4.21.0-EOL"
3838 },
3939 "devDependencies" : {
40- "@jupiterone/integration-sdk-private-test-utils" : " ^8.21 .0" ,
40+ "@jupiterone/integration-sdk-private-test-utils" : " ^8.22 .0" ,
4141 "@pollyjs/adapter-node-http" : " ^6.0.5" ,
4242 "@pollyjs/core" : " ^6.0.5" ,
4343 "@pollyjs/persister-fs" : " ^6.0.5" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @jupiterone/integration-sdk-core" ,
3- "version" : " 8.21 .0" ,
3+ "version" : " 8.22 .0" ,
44 "description" : " The SDK for developing JupiterOne integrations" ,
55 "main" : " dist/src/index.js" ,
66 "types" : " dist/src/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ export type BeforeAddEntityHookFunction<
2828
2929export type BeforeAddRelationshipHookFunction <
3030 TExecutionContext extends ExecutionContext ,
31- > = ( context : TExecutionContext , relationship : Relationship ) => Relationship ;
31+ > = (
32+ context : TExecutionContext ,
33+ relationship : Relationship ,
34+ ) => Promise < Relationship > | Relationship ;
3235
3336export type LoadExecutionConfigFunction <
3437 TInstanceConfig extends IntegrationInstanceConfig = IntegrationInstanceConfig ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @jupiterone/integration-sdk-dev-tools" ,
3- "version" : " 8.21 .0" ,
3+ "version" : " 8.22 .0" ,
44 "description" : " A collection of developer tools that will assist with building integrations." ,
55 "repository" : " git@github.com:JupiterOne/sdk.git" ,
66 "author" : " JupiterOne <dev@jupiterone.io>" ,
1515 "access" : " public"
1616 },
1717 "dependencies" : {
18- "@jupiterone/integration-sdk-cli" : " ^8.21 .0" ,
19- "@jupiterone/integration-sdk-testing" : " ^8.21 .0" ,
18+ "@jupiterone/integration-sdk-cli" : " ^8.22 .0" ,
19+ "@jupiterone/integration-sdk-testing" : " ^8.22 .0" ,
2020 "@types/jest" : " ^27.1.0" ,
2121 "@types/node" : " ^14.0.5" ,
2222 "@typescript-eslint/eslint-plugin" : " ^4.22.0" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @jupiterone/integration-sdk-http-client" ,
3- "version" : " 8.21 .0" ,
3+ "version" : " 8.22 .0" ,
44 "description" : " The HTTP client for use in JupiterOne integrations" ,
55 "main" : " dist/src/index.js" ,
66 "types" : " dist/src/index.d.ts" ,
2727 "node-fetch" : " ^2.6.0"
2828 },
2929 "devDependencies" : {
30- "@jupiterone/integration-sdk-dev-tools" : " ^8.21 .0" ,
31- "@jupiterone/integration-sdk-private-test-utils" : " ^8.21 .0" ,
30+ "@jupiterone/integration-sdk-dev-tools" : " ^8.22 .0" ,
31+ "@jupiterone/integration-sdk-private-test-utils" : " ^8.22 .0" ,
3232 "fetch-mock-jest" : " ^1.5.1"
3333 },
3434 "bugs" : {
Original file line number Diff line number Diff line change 11{
22 "name" : " @jupiterone/integration-sdk-private-test-utils" ,
33 "private" : true ,
4- "version" : " 8.21 .0" ,
4+ "version" : " 8.22 .0" ,
55 "description" : " The SDK for developing JupiterOne integrations" ,
66 "main" : " dist/index.js" ,
77 "types" : " dist/index.d.ts" ,
1515 "build:dist" : " tsc -p tsconfig.json --declaration"
1616 },
1717 "dependencies" : {
18- "@jupiterone/integration-sdk-core" : " ^8.21 .0" ,
18+ "@jupiterone/integration-sdk-core" : " ^8.22 .0" ,
1919 "lodash" : " ^4.17.15" ,
2020 "uuid" : " ^7.0.3"
2121 },
You can’t perform that action at this time.
0 commit comments