@jupiterone/cli
Advanced tools
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
11.3.0 - 2023-11-28
Changelog
1.1.0 - 2020-06-04
@jupiterone/integration-sdk-dev-tools
package which contains some
shared development dependencies and configuration files.createIntegrationRelationship
made _key
optional for relationship
mappings, a fine thing to do because specifying the _key
for those insn't
necessary. However, the function was changed at the same time to stop
generating a _key
, which is required to ensure the collected relationships
are unique. This fixes things so the _key
remains an optional argument, and
improves the generation of the _key
to ensure better uniqueness.Changelog
1.0.1 - 2020-06-03
dist
files.