Skip to content

Update createIntegrationHelpers.md #1131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ const [MACHINE_ENTITY, createComputerEntity] = createMultiClassEntityMetadata({

# How to use it in a current graph integration

1. Create a file named helpers.ts in the src folder of your integration
1. Create a file named entity-defintions.ts in the src folder of your integration

2. Add the following code to the file:

```typescript
Expand All @@ -111,9 +112,7 @@ export const { createEntityType, createEntityMetadata } =
```

3. Replace INTEGRATION_NAME with the name of your integration
4. Create a file named entities.ts in the src folder of your integration and add
all entities as the following EXAMPLE code:

4. Add all entities as the following EXAMPLE code:
```typescript
import { SchemaType } from '@jupiterone/integration-sdk-core';
import { createEntityType, createEntityMetadata } from './helpers';
Expand Down
Loading