@opens/gateways 1.16.17 → 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
@@ -488,6 +488,28 @@ var ChatConfigGateway = class {
488
488
  });
489
489
  return data;
490
490
  }
491
+ /**
492
+ * Retrieves paginated rules with dynamic filters.
493
+ * @param params - Query parameters for filtering and pagination.
494
+ * @returns The paginated rules matching the given filters.
495
+ */
496
+ async getRules(params) {
497
+ const { data } = await this.httpClient.get(`${this.baseUrl}/rules/paginated`, {
498
+ params
499
+ });
500
+ return data;
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
+ }
491
513
  };
492
514
 
493
515
  // src/campaigns/index.ts