@baasix/types 1.0.2 → 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
@@ -152,6 +152,10 @@ interface LoginCredentials {
152
152
  email: string;
153
153
  password: string;
154
154
  tenantId?: string;
155
+ /** Authentication mode: 'jwt' for token-based or 'cookie' for cookie-based auth */
156
+ authMode?: "jwt" | "cookie";
157
+ /** Authentication type for session management (e.g., 'web', 'mobile', 'default') */
158
+ authType?: string;
155
159
  }
156
160
  /**
157
161
  * Registration data
@@ -745,9 +749,13 @@ interface QueryContext {
745
749
  */
746
750
  interface ReportConfig {
747
751
  collection: string;
752
+ fields?: string[];
748
753
  filter?: Record<string, unknown>;
749
- groupBy?: string;
754
+ groupBy?: string[];
755
+ sort?: string[] | Record<string, 'asc' | 'desc'>;
750
756
  aggregate?: Record<string, unknown>;
757
+ limit?: number;
758
+ page?: number;
751
759
  dateRange?: {
752
760
  start: string;
753
761
  end: string;
@@ -759,6 +767,7 @@ interface ReportConfig {
759
767
  */
760
768
  interface ReportResult {
761
769
  data: Record<string, unknown>[];
770
+ totalCount?: number;
762
771
  summary?: Record<string, unknown>;
763
772
  }
764
773
  /**
package/dist/index.d.ts CHANGED
@@ -152,6 +152,10 @@ interface LoginCredentials {
152
152
  email: string;
153
153
  password: string;
154
154
  tenantId?: string;
155
+ /** Authentication mode: 'jwt' for token-based or 'cookie' for cookie-based auth */
156
+ authMode?: "jwt" | "cookie";
157
+ /** Authentication type for session management (e.g., 'web', 'mobile', 'default') */
158
+ authType?: string;
155
159
  }
156
160
  /**
157
161
  * Registration data
@@ -745,9 +749,13 @@ interface QueryContext {
745
749
  */
746
750
  interface ReportConfig {
747
751
  collection: string;
752
+ fields?: string[];
748
753
  filter?: Record<string, unknown>;
749
- groupBy?: string;
754
+ groupBy?: string[];
755
+ sort?: string[] | Record<string, 'asc' | 'desc'>;
750
756
  aggregate?: Record<string, unknown>;
757
+ limit?: number;
758
+ page?: number;
751
759
  dateRange?: {
752
760
  start: string;
753
761
  end: string;
@@ -759,6 +767,7 @@ interface ReportConfig {
759
767
  */
760
768
  interface ReportResult {
761
769
  data: Record<string, unknown>[];
770
+ totalCount?: number;
762
771
  summary?: Record<string, unknown>;
763
772
  }
764
773
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baasix/types",
3
- "version": "1.0.2",
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/auth.ts CHANGED
@@ -179,6 +179,10 @@ export interface LoginCredentials {
179
179
  email: string;
180
180
  password: string;
181
181
  tenantId?: string;
182
+ /** Authentication mode: 'jwt' for token-based or 'cookie' for cookie-based auth */
183
+ authMode?: "jwt" | "cookie";
184
+ /** Authentication type for session management (e.g., 'web', 'mobile', 'default') */
185
+ authType?: string;
182
186
  }
183
187
 
184
188
  /**
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