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

feat(alpha): simulator integration API #1035

Merged
merged 13 commits into from
Nov 9, 2023
Merged

Conversation

lpereiracgn
Copy link
Contributor

No description provided.

@lpereiracgn lpereiracgn requested a review from a team as a code owner November 9, 2023 01:24
@lpereiracgn lpereiracgn marked this pull request as draft November 9, 2023 01:24
@polomani polomani changed the title feat(alpha): SimInt API feat(alpha): simulator integration API Nov 9, 2023
packages/beta/src/types.ts Outdated Show resolved Hide resolved
packages/beta/src/types.ts Outdated Show resolved Hide resolved
packages/beta/src/types.ts Outdated Show resolved Hide resolved
Comment on lines 53 to 55
public deleteIntegrations = async (ids: IdEither[]) => {
return this.integrationsApi.delete(ids);
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't think we have delete integrations (yet), are you suggesting on making it future proof? :)

packages/beta/src/types.ts Outdated Show resolved Hide resolved
Comment on lines 434 to 436
export interface SimulatorResourceChange
extends SimulatorResourcePatch,
InternalId { }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export interface SimulatorResourceChange
extends SimulatorResourcePatch,
InternalId { }
export interface SimulatorChangeById extends SimulatorPatch, InternalId {}
export interface SimulatorChange = SimulatorChangeById;

Let's make it two step, in case we need to extend with SimulatorChangeByExternalId (easily)

packages/beta/src/types.ts Outdated Show resolved Hide resolved
@@ -55,6 +61,7 @@ export default class CogniteClient extends CogniteClientCleaned {

this.httpClient.setDefaultHeader('cdf-version', 'beta');

this.simulatorsApi = this.apiFactory(SimulatorsAPI, 'simulators');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this API beta?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, it's alpha, we'll move it to alpha for now.

@polomani polomani marked this pull request as ready for review November 9, 2023 15:30
@polomani polomani requested a review from a team as a code owner November 9, 2023 15:30
Copy link
Collaborator

@polomani polomani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, need to merge this so we can iterate further

@lpereiracgn lpereiracgn merged commit 010e5f1 into master Nov 9, 2023
10 checks passed
@lpereiracgn lpereiracgn deleted the onboard-simint-api branch November 9, 2023 15:37
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