-
Notifications
You must be signed in to change notification settings - Fork 16
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
Export data model FirewallRuleProperties
and INTERNET
from @jupiterone/integration-sdk-core
#315
Comments
Should we export those properties from the SDK in a sub-property? This type of import doesn't feel natural import { INTERNET } from '@jupiterone/integration-sdk-core'; |
I agree, I really don't like that export. How about |
|
I may contradict something I said just a few short days ago, but I am now thinking that this would be most appropriately handled by namespacing the data model as an export: import { DataModel } from '@jupiterone/integration-sdk-core';
const someConst = DataModel.INTERNET; It maybe still makes sense to import certain objects, such as import { DataModel, RelationshipClass } from '@jupiterone/integration-sdk-core';
const HAS = RelationshipClass.HAS;
const USES = DataModel.RelationshipClass.USES; I don't particularly like namespacing the |
Fwiw, I'm not a fan of it being exported from the data-model like that either. I think it should have been under a sub-property like import { INTERNET } from '@jupiterone/data-model'; vs. import { GlobalEntities } from '@jupiterone/data-model'; I think we should consider fixing this in the data-model package. Every change to the data-model is technically a breaking change since it's pre-1.0.0 right now. |
@austinkelleher I agree that if anything, the way that I'm still leaning towards exporting everything in |
Oh, yeah, definitely would not do |
As of v3.0.0, we export
RelationshipClass
from@jupiterone/integration-sdk-core
for consistency. Projects that also referenceFirewallRuleProperties
andINTERNET
from the data model still need the@jupiterone/data-model
dependency until those get exported from the sdk.The text was updated successfully, but these errors were encountered: