@baasix/sdk 0.1.13 → 0.1.15

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.cts CHANGED
@@ -523,6 +523,10 @@ declare class SettingsModule {
523
523
  interface ReportsModuleConfig {
524
524
  client: HttpClient;
525
525
  }
526
+ /**
527
+ * Sort direction type
528
+ */
529
+ type SortDirection = 'asc' | 'desc';
526
530
  /**
527
531
  * Stats query for the stats endpoint
528
532
  */
@@ -610,6 +614,9 @@ declare class ReportsModule {
610
614
  groupBy?: string[];
611
615
  filter?: Filter;
612
616
  fields?: string[];
617
+ sort?: string[] | Record<string, SortDirection>;
618
+ limit?: number;
619
+ page?: number;
613
620
  }): Promise<ReportResult>;
614
621
  /**
615
622
  * Get statistics for multiple collections in a single request
@@ -660,6 +667,9 @@ declare class ReportsModule {
660
667
  aggregate: Aggregate;
661
668
  groupBy?: string[];
662
669
  filter?: Filter;
670
+ sort?: string[] | Record<string, SortDirection>;
671
+ limit?: number;
672
+ page?: number;
663
673
  }): Promise<Record<string, unknown>[]>;
664
674
  /**
665
675
  * Count items matching a filter
package/dist/index.d.ts CHANGED
@@ -523,6 +523,10 @@ declare class SettingsModule {
523
523
  interface ReportsModuleConfig {
524
524
  client: HttpClient;
525
525
  }
526
+ /**
527
+ * Sort direction type
528
+ */
529
+ type SortDirection = 'asc' | 'desc';
526
530
  /**
527
531
  * Stats query for the stats endpoint
528
532
  */
@@ -610,6 +614,9 @@ declare class ReportsModule {
610
614
  groupBy?: string[];
611
615
  filter?: Filter;
612
616
  fields?: string[];
617
+ sort?: string[] | Record<string, SortDirection>;
618
+ limit?: number;
619
+ page?: number;
613
620
  }): Promise<ReportResult>;
614
621
  /**
615
622
  * Get statistics for multiple collections in a single request
@@ -660,6 +667,9 @@ declare class ReportsModule {
660
667
  aggregate: Aggregate;
661
668
  groupBy?: string[];
662
669
  filter?: Filter;
670
+ sort?: string[] | Record<string, SortDirection>;
671
+ limit?: number;
672
+ page?: number;
663
673
  }): Promise<Record<string, unknown>[]>;
664
674
  /**
665
675
  * Count items matching a filter
package/dist/index.js CHANGED
@@ -2881,7 +2881,9 @@ var ReportsModule = class {
2881
2881
  aggregate: options.aggregate,
2882
2882
  groupBy: options.groupBy,
2883
2883
  filter: options.filter,
2884
- limit: -1
2884
+ sort: options.sort,
2885
+ limit: options.limit ?? -1,
2886
+ page: options.page
2885
2887
  }
2886
2888
  }
2887
2889
  );