@baasix/types 1.0.3 → 1.0.4

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.mts CHANGED
@@ -749,9 +749,13 @@ interface QueryContext {
749
749
  */
750
750
  interface ReportConfig {
751
751
  collection: string;
752
+ fields?: string[];
752
753
  filter?: Record<string, unknown>;
753
- groupBy?: string;
754
+ groupBy?: string[];
755
+ sort?: string[] | Record<string, 'asc' | 'desc'>;
754
756
  aggregate?: Record<string, unknown>;
757
+ limit?: number;
758
+ page?: number;
755
759
  dateRange?: {
756
760
  start: string;
757
761
  end: string;
@@ -763,6 +767,7 @@ interface ReportConfig {
763
767
  */
764
768
  interface ReportResult {
765
769
  data: Record<string, unknown>[];
770
+ totalCount?: number;
766
771
  summary?: Record<string, unknown>;
767
772
  }
768
773
  /**
package/dist/index.d.ts CHANGED
@@ -749,9 +749,13 @@ interface QueryContext {
749
749
  */
750
750
  interface ReportConfig {
751
751
  collection: string;
752
+ fields?: string[];
752
753
  filter?: Record<string, unknown>;
753
- groupBy?: string;
754
+ groupBy?: string[];
755
+ sort?: string[] | Record<string, 'asc' | 'desc'>;
754
756
  aggregate?: Record<string, unknown>;
757
+ limit?: number;
758
+ page?: number;
755
759
  dateRange?: {
756
760
  start: string;
757
761
  end: string;
@@ -763,6 +767,7 @@ interface ReportConfig {
763
767
  */
764
768
  interface ReportResult {
765
769
  data: Record<string, unknown>[];
770
+ totalCount?: number;
766
771
  summary?: Record<string, unknown>;
767
772
  }
768
773
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baasix/types",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Shared TypeScript types for Baasix packages",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
package/src/query.ts CHANGED
@@ -389,9 +389,13 @@ export interface QueryContext {
389
389
  */
390
390
  export interface ReportConfig {
391
391
  collection: string;
392
+ fields?: string[];
392
393
  filter?: Record<string, unknown>;
393
- groupBy?: string;
394
+ groupBy?: string[];
395
+ sort?: string[] | Record<string, 'asc' | 'desc'>;
394
396
  aggregate?: Record<string, unknown>;
397
+ limit?: number;
398
+ page?: number;
395
399
  dateRange?: {
396
400
  start: string;
397
401
  end: string;
@@ -404,6 +408,7 @@ export interface ReportConfig {
404
408
  */
405
409
  export interface ReportResult {
406
410
  data: Record<string, unknown>[];
411
+ totalCount?: number;
407
412
  summary?: Record<string, unknown>;
408
413
  }
409
414