@opens/gateways 1.16.21 → 1.16.22
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.d.mts +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -0
- package/dist/index.mjs.map +1 -1
- package/dist/integrations/contracts/index.d.mts +49 -1
- package/dist/integrations/contracts/index.d.ts +49 -1
- package/dist/integrations/contracts/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -922,6 +922,23 @@ var IntegrationsGateway = class {
|
|
|
922
922
|
}
|
|
923
923
|
httpClient;
|
|
924
924
|
baseUrl;
|
|
925
|
+
/**
|
|
926
|
+
* Retrieves the apps available to the authenticated company.
|
|
927
|
+
* @returns The available apps and their total count.
|
|
928
|
+
*/
|
|
929
|
+
async getAppList() {
|
|
930
|
+
const { data } = await this.httpClient.get(`${this.baseUrl}/apps`);
|
|
931
|
+
return data;
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* Retrieves an app and its form definition.
|
|
935
|
+
* @param appId - The app identifier.
|
|
936
|
+
* @returns The app details.
|
|
937
|
+
*/
|
|
938
|
+
async getApp({ appId }) {
|
|
939
|
+
const { data } = await this.httpClient.get(`${this.baseUrl}/apps/${appId}`);
|
|
940
|
+
return data;
|
|
941
|
+
}
|
|
925
942
|
/**
|
|
926
943
|
* Retrieves all integration partners configured for a company.
|
|
927
944
|
* @param companyId - The company identifier.
|