-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add users step #1
Conversation
generateRelationshipType, | ||
} from '@jupiterone/integration-sdk-core'; | ||
|
||
export const createEntityKey = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for improving this 🎉
return `${entityMetadata._type}:${id}`; | ||
}; | ||
|
||
export const generateRelationshipMetadata = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a really nifty helper!
ORGANIZATION: 'fetch-organization', | ||
TEAM: 'fetch-teams', | ||
PROJECT: 'fetch-projects', | ||
}; | ||
USERS: 'fetch-users', | ||
} satisfies Record<string, `fetch-${string}`>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧠
@@ -29,19 +33,22 @@ export const Entities: Record< | |||
_type: 'linear_project', | |||
_class: ['Project'], | |||
}, | |||
}; | |||
} satisfies Record<string, StepEntityMetadata>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to figure out if we could make this stricter so it would check for the keys from Steps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 nothing blocking, just a couple curiosity questions
@jzolo22 All addressed |
No description provided.