-
Notifications
You must be signed in to change notification settings - Fork 20
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 interface support for foundry-sdk-generator #484
Conversation
packages/foundry-sdk-generator/src/generate/betaClient/generatePackageJson.ts
Show resolved
Hide resolved
exports: { | ||
".": { | ||
types: "./index.d.ts", | ||
script: { |
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 removed types from the script block based on conversation with @ericanderson
@@ -32,6 +32,7 @@ | |||
"dependencies": { | |||
"@osdk/api": "workspace:~", | |||
"@osdk/client": "workspace:~", | |||
"@osdk/client.api": "workspace:~", |
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.
Added this so that the generated packages from tests would correctly populate client.api version in the package.jsons
default: "./ontology/objects/index.js", | ||
dependencies: packageDeps, | ||
} | ||
: { |
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.
The fallback block is unchanged right?
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.
Yes, besides me pulling out the dependencies into that helper function
@@ -51,6 +52,12 @@ export class OntologyMetadataResolver { | |||
) => expectedEntities.objectTypes.has(objectTypeApiName.toLowerCase())), | |||
); | |||
|
|||
const filteredInterfaceTypes = Object.fromEntries( |
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.
Can we only add these for 2.x? That way you have to get all the way to 2.0 to use them and we can reduce 1.x support burden.
No description provided.