@opens/gateways 1.16.22 → 1.16.23

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/dist/index.mjs CHANGED
@@ -939,6 +939,24 @@ var IntegrationsGateway = class {
939
939
  const { data } = await this.httpClient.get(`${this.baseUrl}/apps/${appId}`);
940
940
  return data;
941
941
  }
942
+ /**
943
+ * Resolves the available items for an app datasource using the supplied context.
944
+ * @param appId - The app identifier.
945
+ * @param datasourceId - The datasource identifier.
946
+ * @param context - The JSON context used to resolve the datasource.
947
+ * @returns The resolved datasource items.
948
+ */
949
+ async resolveAppDatasource({
950
+ appId,
951
+ datasourceId,
952
+ context
953
+ }) {
954
+ const { data } = await this.httpClient.post(
955
+ `${this.baseUrl}/apps/${appId}/datasources/${datasourceId}`,
956
+ { context }
957
+ );
958
+ return data;
959
+ }
942
960
  /**
943
961
  * Retrieves all integration partners configured for a company.
944
962
  * @param companyId - The company identifier.