@base44-preview/sdk 0.8.19-pr.128.524a3e0 → 0.8.19-pr.129.4c7e3bb

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.ts CHANGED
@@ -4,7 +4,7 @@ import { getAccessToken, saveAccessToken, removeAccessToken, getLoginUrl } from
4
4
  export { createClient, createClientFromRequest, Base44Error, getAccessToken, saveAccessToken, removeAccessToken, getLoginUrl, };
5
5
  export type { Base44Client, CreateClientConfig, CreateClientOptions, Base44ErrorJSON, };
6
6
  export * from "./types.js";
7
- export type { DeleteManyResult, DeleteResult, EntitiesModule, EntityHandler, EntityRecord, EntityTypeRegistry, ImportResult, RealtimeEventType, RealtimeEvent, RealtimeCallback, } from "./modules/entities.types.js";
7
+ export type { DeleteManyResult, DeleteResult, EntitiesModule, EntityHandler, EntityRecord, EntityTypeRegistry, ImportResult, RealtimeEventType, RealtimeEvent, RealtimeCallback, SortField, } from "./modules/entities.types.js";
8
8
  export type { AuthModule, LoginResponse, RegisterParams, VerifyOtpParams, ChangePasswordParams, ResetPasswordParams, User, } from "./modules/auth.types.js";
9
9
  export type { IntegrationsModule, IntegrationPackage, IntegrationEndpointFunction, CoreIntegrations, InvokeLLMParams, GenerateImageParams, GenerateImageResult, UploadFileParams, UploadFileResult, SendEmailParams, SendEmailResult, ExtractDataFromUploadedFileParams, ExtractDataFromUploadedFileResult, UploadPrivateFileParams, UploadPrivateFileResult, CreateFileSignedUrlParams, CreateFileSignedUrlResult, } from "./modules/integrations.types.js";
10
10
  export type { FunctionsModule, FunctionName, FunctionNameRegistry, } from "./modules/functions.types.js";
@@ -55,13 +55,16 @@ export interface ImportResult<T = any> {
55
55
  /**
56
56
  * Sort field type for entity queries.
57
57
  *
58
- * Supports ascending (no prefix or `'+'`) and descending (`'-'`) sorting.
58
+ * Accepts any field name from the entity type with an optional prefix:
59
+ * - `'+'` prefix or no prefix: ascending sort
60
+ * - `'-'` prefix: descending sort
59
61
  *
60
62
  * @typeParam T - The entity type to derive sortable fields from.
61
63
  *
62
64
  * @example
63
65
  * ```typescript
64
- * // Ascending sort (default)
66
+ * // Specify sort direction by prefixing field names with + or -
67
+ * // Ascending sort
65
68
  * 'created_date'
66
69
  * '+created_date'
67
70
  *
@@ -71,7 +74,7 @@ export interface ImportResult<T = any> {
71
74
  */
72
75
  export type SortField<T> = (keyof T & string) | `+${keyof T & string}` | `-${keyof T & string}`;
73
76
  /**
74
- * Fields added by the server to every entity record (id, dates, created_by, etc.).
77
+ * Fields added by the server to every entity record, such as `id`, `created_date`, `updated_date`, and `created_by`.
75
78
  */
76
79
  interface ServerEntityFields {
77
80
  /** Unique identifier of the record */
@@ -97,8 +100,7 @@ export interface EntityTypeRegistry {
97
100
  *
98
101
  * @example
99
102
  * ```typescript
100
- * import type { EntityRecord } from '@base44/sdk';
101
- *
103
+ * // Using EntityRecord to get the complete type for an entity
102
104
  * // Combine your schema with server fields (id, created_date, etc.)
103
105
  * type TaskRecord = EntityRecord['Task'];
104
106
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.19-pr.128.524a3e0",
3
+ "version": "0.8.19-pr.129.4c7e3bb",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",