@jupiterone/integration-sdk-core
Advanced tools
Changelog
2.11.0 - 2020-08-20
@jupiterone/data-model
to latest version (0.8.1
).Changelog
2.10.1 - 2020-08-18
sourceEntityType
from RelationshipMapping
interfaceChangelog
2.10.0 - 2020-08-06
#279 - Update .eslintrc
to include eslint rules that will help catch async
errors
Updated root .eslintrc
to use
@jupiterone/integration-sdk-dev-tools/config/eslint.json
directly with
specific overrides.
jobState.addRelationships
floating promise in
@jupiterone/integration-sdk-testing
Changelog
2.9.2 - 2020-08-06
jobState.getEntity()
threw error saying entity not found
even though it was added to the job state.Changelog
2.9.1 - 2020-08-06
deepmerge
dependency into
@jupiterone/integration-sdk-testing
package.Changelog
2.9.0 - 2020-08-05
jobState.addEntity
and jobState.addEntities
Example:
const entity = await jobState.addEntity(convertToEntity(data));
const entity2 = await jobState.addEntity(convertToOtherEntity(entity2));
await jobState.addRelationship(
convertToRelationship(entity, entity2)
);
// Or this:
await jobState.addRelationship(
convertToRelationship(
await jobState.addEntity(convertToEntity(data))
await jobState.addEntity(convertToOtherEntity(entity2))
)
);
visualize
cmd where mapped relationships did not consider
targetFilterKey
when matching entitiesvisualize
cmd where multiple nodes with the same nodeId could be
created, which causes rendering to failChangelog
2.8.0 - 2020-08-3
@jupiterone/integration-sdk-dev-tools
. See:
https://github.com/JupiterOne/sdk/issues/265Changelog
2.7.0 - 2020-08-2
Example:
expect(context.jobState.collectedEntities).toMatchGraphObjectSchema({
_class: ['Service'],
schema: {
additionalProperties: false,
properties: {
_type: { const: 'google_cloud_api_service' },
category: { const: ['infrastructure'] },
state: {
type: 'string',
enum: ['STATE_UNSPECIFIED', 'DISABLED', 'ENABLED'],
},
enabled: { type: 'boolean' },
usageRequirements: {
type: 'array',
items: { type: 'string' },
},
_rawData: {
type: 'array',
items: { type: 'object' },
}
}
});
Changelog
2.6.0 - 2020-07-28
getEntity({ _type, _key })
functionsourceEntityType
property on RelationshipMapping
createIntegrationRelationship
. Developers should use the exported
createDirectRelationship
or createMappedRelationship
functions.Changelog
2.5.0 - 2020-07-28
j1-integration visualize
added mapped relationships as dashed lines.j1-integration visualize
entities are colored by _type
.IntegrationConfig
to support asynchronous getStepStartStates
. See
#254 for more information.Example:
export const invocationConfig: IntegrationInvocationConfig<IntegrationConfig> = {
async getStepStartStates(ctx) {
return {
'fetch-users': { disabled: await checkFetchUsersStepDisabled(ctx) }
};
},
...
};