@opens/gateways 1.16.23 → 1.16.25
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/chat-config/contracts/index.d.mts +46 -5
- package/dist/chat-config/contracts/index.d.ts +46 -5
- package/dist/index.d.mts +16 -7
- package/dist/index.d.ts +16 -7
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -4
- package/dist/index.mjs.map +1 -1
- package/dist/integrations/contracts/index.d.mts +6 -1
- package/dist/integrations/contracts/index.d.ts +6 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -422,10 +422,12 @@ var ChatConfigGateway = class {
|
|
|
422
422
|
return data;
|
|
423
423
|
}
|
|
424
424
|
/**
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
*
|
|
428
|
-
* @
|
|
425
|
+
* Lists configurations for a provider (`GET /config/provider/:providerId`).
|
|
426
|
+
* Scoped to the authenticated company's `companyId` from the token.
|
|
427
|
+
* Each item includes the nested `providers` association.
|
|
428
|
+
* @param providerId - Provider primary key (`Providers.id`, e.g. `1` for WhatsApp).
|
|
429
|
+
* @param params - Optional filters on config columns and nested provider fields.
|
|
430
|
+
* @returns `{ configurations }` for the given provider (empty array when none match).
|
|
429
431
|
*/
|
|
430
432
|
async getConfigsByProvider(providerId, params) {
|
|
431
433
|
const { data } = await this.httpClient.get(
|
|
@@ -957,6 +959,16 @@ var IntegrationsGateway = class {
|
|
|
957
959
|
);
|
|
958
960
|
return data;
|
|
959
961
|
}
|
|
962
|
+
/**
|
|
963
|
+
* Submits an app using the supplied context.
|
|
964
|
+
* @param appId - The app identifier.
|
|
965
|
+
* @param context - The JSON context submitted to the app.
|
|
966
|
+
* @returns The response produced by the app submission.
|
|
967
|
+
*/
|
|
968
|
+
async submitApp({ appId, context }) {
|
|
969
|
+
const { data } = await this.httpClient.post(`${this.baseUrl}/apps/${appId}/submit`, { context });
|
|
970
|
+
return data;
|
|
971
|
+
}
|
|
960
972
|
/**
|
|
961
973
|
* Retrieves all integration partners configured for a company.
|
|
962
974
|
* @param companyId - The company identifier.
|