@crowdstrike/foundry-js 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -115,6 +115,7 @@ To call API Integration, App should be initially provisioned, and configuration
115
115
  // we assume, that API Integration was created and operation Get Cities exists
116
116
 
117
117
  const apiIntegration = falcon.apiIntegration({
118
+ definitionId: '<api-integration-id from manifest.yml>',
118
119
  operationId: 'Get Cities',
119
120
  });
120
121
 
@@ -128,6 +129,7 @@ To call API Integration, App should be initially provisioned, and configuration
128
129
  }
129
130
  });
130
131
  // response.resources?.[0]?.status_code === 200
132
+ // date is at response.resources[0].response_body
131
133
  });
132
134
  ```
133
135
 
package/dist/api.d.ts CHANGED
@@ -106,7 +106,7 @@ export default class FalconApi<DATA extends LocalData = LocalData> {
106
106
  */
107
107
  apiIntegration({ definitionId, operationId, }: {
108
108
  operationId: string;
109
- definitionId?: string;
109
+ definitionId: string;
110
110
  }): ApiIntegration<DATA>;
111
111
  /**
112
112
  * Create a {@link Collection} to write to and query Falcon's custom storage service.
package/dist/index.js CHANGED
@@ -3070,7 +3070,7 @@ class FalconApi {
3070
3070
  }
3071
3071
  const apiIntegration = new ApiIntegration(this, {
3072
3072
  operationId,
3073
- definitionId: definitionId ?? this.data?.app.id,
3073
+ definitionId: definitionId,
3074
3074
  });
3075
3075
  this.apiIntegrations.push(apiIntegration);
3076
3076
  return apiIntegration;