@jupiterone/integration-sdk-cli 8.4.0 → 8.4.3

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 (36) hide show
  1. package/dist/src/commands/document.js.map +1 -1
  2. package/dist/src/commands/neo4j.js +4 -2
  3. package/dist/src/commands/neo4j.js.map +1 -1
  4. package/dist/src/commands/visualize-types.js +1 -1
  5. package/dist/src/commands/visualize-types.js.map +1 -1
  6. package/dist/src/config.js +2 -1
  7. package/dist/src/config.js.map +1 -1
  8. package/dist/src/neo4j/neo4jGraphStore.js +25 -9
  9. package/dist/src/neo4j/neo4jGraphStore.js.map +1 -1
  10. package/dist/src/neo4j/uploadToNeo4j.js.map +1 -1
  11. package/dist/src/neo4j/wipeNeo4j.js.map +1 -1
  12. package/dist/src/visualization/generateVisualization.js +2 -2
  13. package/dist/src/visualization/generateVisualization.js.map +1 -1
  14. package/dist/src/visualization/retrieveIntegrationData.js.map +1 -1
  15. package/dist/src/visualization/utils.d.ts +1 -1
  16. package/dist/src/visualization/utils.js.map +1 -1
  17. package/dist/tsconfig.dist.tsbuildinfo +1 -1
  18. package/package.json +4 -4
  19. package/src/commands/document.ts +10 -9
  20. package/src/commands/neo4j.ts +16 -10
  21. package/src/commands/visualize-types.ts +7 -9
  22. package/src/config.ts +2 -1
  23. package/src/neo4j/README.md +15 -18
  24. package/src/neo4j/__tests__/neo4jGraphStore.test.ts +55 -53
  25. package/src/neo4j/__tests__/neo4jUtilities.test.ts +27 -9
  26. package/src/neo4j/index.ts +1 -1
  27. package/src/neo4j/neo4jGraphStore.ts +64 -29
  28. package/src/neo4j/uploadToNeo4j.ts +5 -2
  29. package/src/neo4j/wipeNeo4j.ts +15 -11
  30. package/src/visualization/__tests__/createMappedRelationshipNodesAndEdges.test.ts +35 -49
  31. package/src/visualization/generateVisualization.ts +7 -12
  32. package/src/visualization/retrieveIntegrationData.ts +3 -5
  33. package/src/visualization/types/IntegrationData.ts +5 -1
  34. package/src/visualization/utils.ts +7 -4
  35. package/tsconfig.dist.json +1 -3
  36. package/tsconfig.json +1 -3
@@ -1,18 +1,21 @@
1
1
  import { v4 as uuid } from 'uuid';
2
- import { Entity } from "@jupiterone/integration-sdk-core";
2
+ import { Entity } from '@jupiterone/integration-sdk-core';
3
3
 
4
4
  export type NodeEntity = Partial<Entity> & { nodeId: string };
5
5
 
6
6
  /**
7
7
  * The nodeId should map back to _key, which ought to be globally unique.
8
8
  * Entities set their node ID once, and return if available.
9
- *
9
+ *
10
10
  * If nodeId is not set, first check that the _key isn't already a nodeId for another entity.
11
11
  * Duplicates will break vis.js, so we will set nodeId to a UUID (this makes isNodeDuplicate(nodeEntity) === true)
12
- *
12
+ *
13
13
  * If node is not a duplicate, return either the entity _key, or, if unavailable, return a new UUID.
14
14
  */
15
- export function getNodeIdFromEntity(entity: Partial<NodeEntity>, existingEntities: NodeEntity[]): string {
15
+ export function getNodeIdFromEntity(
16
+ entity: Partial<NodeEntity>,
17
+ existingEntities: NodeEntity[],
18
+ ): string {
16
19
  if (entity.nodeId !== undefined) {
17
20
  return entity.nodeId;
18
21
  }
@@ -3,9 +3,7 @@
3
3
  "compilerOptions": {
4
4
  "sourceMap": true
5
5
  },
6
- "include": [
7
- "src"
8
- ],
6
+ "include": ["src"],
9
7
  "exclude": [
10
8
  "**/dist/*",
11
9
  "**/*.test.ts",
package/tsconfig.json CHANGED
@@ -3,9 +3,7 @@
3
3
  "compilerOptions": {
4
4
  "outDir": "dist"
5
5
  },
6
- "exclude": [
7
- "**/dist/*"
8
- ],
6
+ "exclude": ["**/dist/*"],
9
7
  "references": [
10
8
  { "path": "../integration-sdk-core" },
11
9
  { "path": "../integration-sdk-runtime" },