Skip to content

Commit

Permalink
Merge pull request #70 from CrowdStrike/rlucha/mandatory-definitionID
Browse files Browse the repository at this point in the history
Make definitionID mandatory for API Integration calls
  • Loading branch information
rlucha-crowdstrike authored Oct 23, 2024
2 parents 53b3189 + 0550a4e commit f312798
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-tigers-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@crowdstrike/foundry-js': minor
---

Enforce mandatory definitionID for API Integration calls
4 changes: 2 additions & 2 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default class FalconApi<DATA extends LocalData = LocalData> {
operationId,
}: {
operationId: string;
definitionId?: string;
definitionId: string;
}) {
assertConnection(this);

Expand All @@ -194,7 +194,7 @@ export default class FalconApi<DATA extends LocalData = LocalData> {

const apiIntegration = new ApiIntegration(this, {
operationId,
definitionId: definitionId ?? this.data?.app.id,
definitionId: definitionId,
});

this.apiIntegrations.push(apiIntegration);
Expand Down

0 comments on commit f312798

Please sign in to comment.