@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/index.mjs CHANGED
@@ -422,10 +422,12 @@ var ChatConfigGateway = class {
422
422
  return data;
423
423
  }
424
424
  /**
425
- * Retrieves configurations filtered by provider.
426
- * @param providerId - The unique identifier of the provider.
427
- * @param params - Optional query parameters for filtering configurations.
428
- * @returns The configurations for the given provider.
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.