Skip to content
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

Merged
merged 9 commits into from
Jul 18, 2024
Merged

Conversation

ssanjay1
Copy link
Contributor

No description provided.

@ssanjay1 ssanjay1 changed the base branch from main to ea.experiment-with-generate-beta July 14, 2024 19:38
Base automatically changed from ea.experiment-with-generate-beta to main July 15, 2024 21:09
exports: {
".": {
types: "./index.d.ts",
script: {
Copy link
Contributor Author

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:~",
Copy link
Contributor Author

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,
}
: {
Copy link
Member

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?

Copy link
Contributor Author

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(
Copy link
Member

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.

@ssanjay1 ssanjay1 merged commit fee51a3 into main Jul 18, 2024
7 checks passed
@ssanjay1 ssanjay1 deleted the ssanjay/restOfBeta branch July 18, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants