@opens/gateways 1.16.18 → 1.16.19

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
@@ -499,6 +499,17 @@ var ChatConfigGateway = class {
499
499
  });
500
500
  return data;
501
501
  }
502
+ /**
503
+ * Counts rules matching the given filters.
504
+ * @param params - Query parameters for filtering rules (same filters as `getRules`, without pagination/associations).
505
+ * @returns The total number of rules matching the filters.
506
+ */
507
+ async getRulesCount(params) {
508
+ const { data } = await this.httpClient.get(`${this.baseUrl}/rules/count`, {
509
+ params
510
+ });
511
+ return data;
512
+ }
502
513
  };
503
514
 
504
515
  // src/campaigns/index.ts