@base44-preview/sdk 0.8.18-pr.117.2b7242d → 0.8.18-pr.117.7c9cdfc

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.
@@ -3,7 +3,7 @@ import { RoomsSocket } from "../utils/socket-utils.js";
3
3
  import { ModelFilterParams } from "../types.js";
4
4
  /**
5
5
  * Registry of agent names.
6
- * Augmented by `base44 types generate` to enable autocomplete for agent names.
6
+ * Augment this interface to enable autocomplete for agent names.
7
7
  */
8
8
  export interface AgentNameRegistry {
9
9
  }
@@ -4,7 +4,7 @@
4
4
  export type RealtimeEventType = "create" | "update" | "delete";
5
5
  /**
6
6
  * Payload received when a realtime event occurs.
7
- g */
7
+ */
8
8
  export interface RealtimeEvent<T = any> {
9
9
  /** The type of change that occurred */
10
10
  type: RealtimeEventType;
@@ -47,12 +47,24 @@ export interface ImportResult<T = any> {
47
47
  output: T[] | null;
48
48
  }
49
49
  /**
50
- * Sort field for entity queries. Prefix with `-` for descending order.
50
+ * Sort field type for entity queries.
51
+ *
52
+ * Supports ascending (no prefix or `'+'`) and descending (`'-'`) sorting.
53
+ *
54
+ * @example
55
+ * ```typescript
56
+ * // Ascending sort (default)
57
+ * 'created_date'
58
+ * '+created_date'
59
+ *
60
+ * // Descending sort
61
+ * '-created_date'
62
+ * ```
51
63
  */
52
64
  export type SortField<T> = (keyof T & string) | `+${keyof T & string}` | `-${keyof T & string}`;
53
65
  /**
54
66
  * Registry mapping entity names to their TypeScript types.
55
- * Augmented by `base44 types generate` to enable type-safe entity access.
67
+ * Augment this interface to enable type-safe entity access.
56
68
  */
57
69
  export interface EntityTypeRegistry {
58
70
  }
@@ -354,9 +366,6 @@ type DynamicEntitiesModule = {
354
366
  * Entities are accessed dynamically using the pattern:
355
367
  * `base44.entities.EntityName.method()`
356
368
  *
357
- * When {@link EntityTypeRegistry} is augmented (via `base44 types generate`),
358
- * entity access becomes type-safe with autocomplete and type checking.
359
- *
360
369
  * This module is available to use with a client in all three authentication modes:
361
370
  *
362
371
  * - **Anonymous or User authentication** (`base44.entities`): Access is scoped to the current user's permissions. Anonymous users can only access public entities, while authenticated users can access entities they have permission to view or modify.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Registry of function names.
3
- * Augmented by `base44 types generate` to enable autocomplete for function names.
3
+ * Augment this interface to enable autocomplete for function names.
4
4
  */
5
5
  export interface FunctionNameRegistry {
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.18-pr.117.2b7242d",
3
+ "version": "0.8.18-pr.117.7c9cdfc",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",