@baasix/types 1.0.13 → 1.1.0

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
@@ -218,6 +218,7 @@ interface MagicLinkOptions {
218
218
  interface PasswordResetOptions {
219
219
  email: string;
220
220
  redirectUrl?: string;
221
+ mode?: "link" | "code";
221
222
  }
222
223
  /**
223
224
  * Authentication mode for the SDK/app
@@ -738,6 +739,10 @@ interface QueryParams<T = unknown> {
738
739
  * Fields to search in
739
740
  */
740
741
  searchFields?: string[];
742
+ /**
743
+ * Fields to leave out of the search (applies to searchFields or the default set)
744
+ */
745
+ excludeSearchFields?: string[];
741
746
  /**
742
747
  * Sort results by search relevance
743
748
  * @default false
package/dist/index.d.ts CHANGED
@@ -218,6 +218,7 @@ interface MagicLinkOptions {
218
218
  interface PasswordResetOptions {
219
219
  email: string;
220
220
  redirectUrl?: string;
221
+ mode?: "link" | "code";
221
222
  }
222
223
  /**
223
224
  * Authentication mode for the SDK/app
@@ -738,6 +739,10 @@ interface QueryParams<T = unknown> {
738
739
  * Fields to search in
739
740
  */
740
741
  searchFields?: string[];
742
+ /**
743
+ * Fields to leave out of the search (applies to searchFields or the default set)
744
+ */
745
+ excludeSearchFields?: string[];
741
746
  /**
742
747
  * Sort results by search relevance
743
748
  * @default false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baasix/types",
3
- "version": "1.0.13",
3
+ "version": "1.1.0",
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
@@ -256,6 +256,7 @@ export interface MagicLinkOptions {
256
256
  export interface PasswordResetOptions {
257
257
  email: string;
258
258
  redirectUrl?: string;
259
+ mode?: "link" | "code";
259
260
  }
260
261
 
261
262
  // ============================================================================
package/src/query.ts CHANGED
@@ -326,6 +326,11 @@ export interface QueryParams<T = unknown> {
326
326
  */
327
327
  searchFields?: string[];
328
328
 
329
+ /**
330
+ * Fields to leave out of the search (applies to searchFields or the default set)
331
+ */
332
+ excludeSearchFields?: string[];
333
+
329
334
  /**
330
335
  * Sort results by search relevance
331
336
  * @default false